@import url("/letterhead-generator/assets/css/letterhead-studio.v1.0.0.css");

:root {
  --brand: #0b7373;
  --brand-dark: #075a5b;
  --navy: #142b3a;
}

.studio-shell { grid-template-columns: 250px minmax(500px, 1fr) 370px; }
.inspector-panel { padding-bottom: 42px; }
.toolbar-group select#currencySelect { max-width: 98px; }
.canvas-stage { min-height: 720px; }
.canvas-paper::after { border-color: rgba(11, 115, 115, .42); }

.item-editor { display: grid; gap: 11px; margin-top: 16px; }
.item-card { position: relative; padding: 13px; border: 1px solid #dce4ea; border-radius: 12px; background: #fbfcfd; }
.item-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.item-card-head strong { color: #344054; font-size: .76rem; }
.item-card-actions { display: flex; gap: 3px; }
.item-action { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #667085; background: transparent; font-weight: 850; }
.item-action:hover { color: var(--ink); background: #eef2f6; }
.item-action.danger:hover { color: #b42318; background: #fff0ee; }
.item-action svg { width: 16px; height: 16px; }
.item-card .field { margin-bottom: 8px; }
.item-card .field:last-child { margin-bottom: 0; }
.item-numbers { display: grid; grid-template-columns: .8fr .8fr 1.1fr; gap: 7px; }
.item-amount { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #e5eaef; color: #667085; font-size: .69rem; }
.item-amount strong { color: var(--brand-dark); font-size: .78rem; }
.totals-editor { margin-top: 20px; }
.live-total-card { display: grid; gap: 3px; margin-top: 16px; padding: 16px; border-radius: 13px; color: #d9fbf7; background: linear-gradient(145deg, #123c44, #0a6767); box-shadow: 0 8px 22px rgba(8, 76, 78, .17); }
.live-total-card span { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.live-total-card strong { color: #fff; font-size: 1.48rem; line-height: 1.2; }
.live-total-card small { color: #bfe7e4; font-size: .67rem; }
.research-card { margin-top: 18px; padding: 14px; border-left: 4px solid #c9811e; border-radius: 10px; color: #65410f; background: #fff8e9; }
.research-card strong { display: block; font-size: .76rem; }
.research-card p { margin: 4px 0 0; font-size: .7rem; }
.upload-row { margin-bottom: 11px; }

.template-card canvas { aspect-ratio: 1 / 1.414; }
.template-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.guide-hero { background: linear-gradient(135deg, #f3fbfa, #f8fafc 53%, #fff7e8); }
.answer-grid article > span { color: #075a5b; background: #e1f4f2; }
.responsible-note { background: #eef8f7; }

@media (max-width: 1360px) {
  .studio-shell { grid-template-columns: 220px minmax(460px, 1fr) 340px; }
}

@media (max-width: 1120px) {
  .studio-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .inspector { grid-column: 1 / -1; max-height: none; position: static; border-top: 1px solid var(--line); border-left: 0; }
  .inspector-body { height: auto; max-height: 760px; }
  .inspector-panel { max-width: 800px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .studio-shell { display: block; }
  .canvas-stage { min-height: 520px; }
  .toolbar-group:first-child { gap: 5px; }
  .toolbar-group:first-child > label { display: none; }
  .toolbar-group select { max-width: 95px; padding-right: 21px; }
  .item-numbers { grid-template-columns: 1fr 1fr; }
  .item-numbers .field:last-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .toolbar-group select#currencySelect { max-width: 82px; }
  .item-numbers { grid-template-columns: 1fr; }
  .item-numbers .field:last-child { grid-column: auto; }
}
