:root {
  color-scheme: light;
  --bg: #f5efe3;
  --panel: #fffcf6;
  --accent: #1e1a15;
  --text: #1e1a15;
  --panel-ink: #1e1a15;
  --accent-ink: #fff;
  --field: #f5efe3;
  --line: #e2d8c5;
  --surface: #ece4d3;
  --shadow: 0 10px 26px #271d181b;
  --pjh: #243162;
  --sol: #f4b115;
  --ladrillo: #c44333;
  --nina: #1f4733;
  --amarillo-postit: #ffe98f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, sans-serif;
}

button, input, select, textarea { font: inherit; color: inherit; }
button, a.action {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .62rem .9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--panel-ink);
  background: var(--panel);
  text-decoration: none;
}
button:hover:not(:disabled), a.action:hover { background: var(--surface); }
button.primary, a.primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 750; }
button.primary:hover:not(:disabled), a.primary:hover { background: var(--accent); filter: brightness(1.07); }
button:disabled { opacity: .5; cursor: default; }
:where(button, a, input, textarea, select, summary):focus-visible { outline: 2px solid #221b17; outline-offset: 2px; box-shadow: 0 0 0 2px #fffcf6; }

header { background: var(--bg); color: var(--text); }
.header {
  max-width: 1330px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 58px;
  margin: auto;
  padding: .62rem clamp(1rem, 4vw, 2.6rem) .28rem;
}
.header-tools { display: flex; gap: .65rem; align-items: center; }
.header-tools button { min-height: 40px; border-radius: 8px; font-size: .79rem; }
.header-tools button[aria-pressed=true] { background: var(--panel-ink); color: var(--panel); }
.icon { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account { font-size: .76rem; color: inherit; }
.section-nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.section-nav button { min-height: 41px; border-radius: 9px 9px 3px 3px; padding: .4rem .8rem; font-family: Georgia, Cambria, serif; font-weight: 700; }
.section-nav button::before { content: ''; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #a36b34; }
.section-nav button[aria-pressed=true] { background: var(--panel-ink); color: var(--panel); }
.section-nav button[aria-pressed=true]::before { background: var(--sol); }

main { max-width: 1330px; margin: auto; padding: clamp(1.1rem, 2.5vw, 2.2rem) clamp(1rem, 4vw, 2.6rem) 4rem; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1 { font-size: clamp(2.15rem, 5vw, 3.45rem); line-height: 1.03; letter-spacing: -.043em; }
h2 { font-size: 1.24rem; line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 1.03rem; margin-bottom: .35rem; }
h1, h2 { font-family: Georgia, Cambria, serif; }
p, .muted { color: inherit; }
.bar, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.bar { justify-content: space-between; margin-bottom: 1.35rem; }
.bar h1 { margin-bottom: 0; }
.view-title { padding: .25rem 0 .8rem; }
.view-title p { margin: 0 0 .25rem; font-size: .87rem; font-weight: 650; }
.box { background: var(--panel); color: var(--panel-ink); border: 1px solid var(--line); border-radius: 14px; padding: clamp(.95rem, 2vw, 1.35rem); }
.box + .box { margin-top: .9rem; }
.gate { max-width: 465px; margin: clamp(1rem, 7vh, 5rem) auto; box-shadow: var(--shadow); }
.gate h1 { margin-bottom: 1rem; }
label { display: block; margin: .72rem 0 .27rem; font-weight: 650; }
input:not([type=range], [type=checkbox], [type=radio]), select, textarea {
  width: 100%;
  padding: .62rem .75rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--panel-ink);
}
textarea { resize: vertical; min-height: 84px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
form .actions { margin-top: .8rem; }
summary { cursor: pointer; font-weight: 650; }
.error { width: fit-content; color: #872a21; background: #fff0df; padding: .3rem .55rem; border-radius: 5px; margin-top: .45rem; }
.error:empty { display: none; }
.notice {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .36rem .8rem;
  color: var(--panel-ink);
  background: var(--panel);
  font-size: .85rem;
}
.thin { font-size: .9rem; }
.spaced { margin-top: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.desk-toolbar { margin-bottom: .75rem; }
.desk-toolbar .view-switch, .desk-toolbar .house-filters { margin: 0; }
.house-filters { display: flex; flex-wrap: wrap; gap: .28rem; margin-bottom: .72rem; }
.house-filters button { min-height: 36px; padding: .24rem .6rem; border-radius: 999px; gap: .32rem; font-size: .76rem; }
.house-filters button[aria-pressed=true] { color: var(--panel); background: var(--panel-ink); }
.house-dot { width: .6rem; height: .6rem; flex: 0 0 .6rem; border-radius: 50%; background: var(--brand-color); border: 1px solid #ffffff4a; }
.filter-count { font: .7rem ui-monospace, monospace; }
.production-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(176px, 1fr));
  gap: .62rem;
  overflow-x: auto;
  padding: 0 0 .55rem;
  align-items: stretch;
}
.production-lane {
  color: var(--panel-ink);
  min-width: 0;
  min-height: 390px;
  padding: .72rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.lane-head { padding: .18rem .05rem .55rem; }
.lane-heading { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.lane-heading h2 { margin: 0; font-size: 1.12rem; }
.lane-count { text-align: center; font: .72rem ui-monospace, monospace; }
.lane-description { min-height: 2.6em; font-size: .75rem; margin: .36rem 0 0; }
.lane-cards { display: grid; gap: .54rem; }
.lane-empty { padding: .65rem .1rem; font-size: .82rem; }
.piece-card {
  width: 100%;
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .28rem;
  padding: .58rem;
  text-align: left;
  border-radius: 12px;
  border-color: var(--line);
  border-left: 3px solid var(--brand-color, var(--accent));
  background: var(--panel);
  box-shadow: 0 2px 3px #34271811;
}
.piece-card-info { display: grid; gap: .14rem; min-width: 0; }
.piece-card-info strong { font-size: .94rem; overflow-wrap: anywhere; }
.piece-card-info small { font-size: .77rem; color: var(--panel-ink); }
.house-tag, .piece-card-info .house-tag { width: fit-content; display: inline-block; border-radius: 999px; padding: .1rem .45rem; color: #271d18; background: color-mix(in srgb, var(--brand-color, #a36c39) 17%, #fffcf6); font: .66rem/1.45 ui-monospace, monospace; letter-spacing: .055em; }
.piece-card-info .piece-next { color: var(--panel-ink); font-size: .74rem; }
[data-brand=pjh] { --brand-color: var(--pjh); }
[data-brand=nina] { --brand-color: var(--nina); }
.piece-card-info .ready-stamp { width: fit-content; margin-top: .18rem; padding: 0 .36rem; border: 1px solid currentColor; border-radius: 3px; color: #21543c; background: #edf7ec; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; transform: rotate(-5deg); }
.piece-card > .icon { width: 15px; opacity: .7; }

.view-switch { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .8rem; }
.view-switch button { min-height: 44px; padding: .38rem .82rem; border-radius: 8px; }
.view-switch button[aria-pressed=true] { background: var(--panel-ink); color: var(--panel); }
.task-list { display: grid; gap: .6rem; max-width: 760px; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .8rem; overflow-wrap: anywhere; }
.task-row.box { margin: 0; border-left: 4px solid var(--brand-color, var(--sol)); }
.task-title { color: var(--panel-ink); }

.look-casa { margin-top: .85rem; }
.house-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(75px, .6fr); gap: .55rem; margin-bottom: .9rem; }
.house-form .actions { grid-column: 1 / -1; }
.house-directory { display: grid; gap: .35rem; }
.house-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.house-row button { min-height: 36px; font-size: .78rem; }
.house-name { display: inline-flex; align-items: center; gap: .42rem; flex: 1 1 120px; font-weight: 650; overflow-wrap: anywhere; }
#casa-estado:empty { display: none; }
.brand-palettes { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.35rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.brand-palettes > div { flex: 1 1 150px; }
.brand-swatches { display: flex; gap: .28rem; margin-top: .28rem; }
.brand-swatches span { width: 1.6rem; height: 1.6rem; border: 1px solid #271d1833; border-radius: 5px; }
.look-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 34%); gap: 1rem; align-items: start; }
.color-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.color-fields label { font-size: .86rem; overflow-wrap: anywhere; }
.color-fields input { display: block; margin-top: .23rem; padding: .2rem; cursor: pointer; }
.look-preview { display: grid; place-items: center; padding: .8rem; min-height: 150px; border-radius: 11px; background: var(--bg); }
.look-sample { width: min(100%, 13rem); padding: .65rem; color: var(--panel-ink); background: var(--panel); border-radius: 8px; box-shadow: var(--shadow); }
.look-sample div { display: grid; gap: .5rem; }
.look-sample strong { font: bold 1rem Georgia, Cambria, serif; }
.look-sample span { width: fit-content; border-radius: 5px; padding: .3rem .52rem; color: var(--accent-ink); background: var(--accent); font-size: .76rem; }
[data-detalle=papel] .look-sample,
:root:not([data-detalle=liso]) .piece-card,
:root:not([data-detalle=liso]) .look-casa {
  background-image: repeating-linear-gradient(-6deg, transparent 0 5px, #80604309 5px 6px, transparent 6px 9px);
}
.look-reel { width: min(100%, 150px); aspect-ratio: 9 / 16; display: grid; align-items: end; padding: .5rem .35rem 34px; overflow: hidden; border-radius: 11px; background: linear-gradient(150deg, #64534a, #302821 56%, #5a493d); box-shadow: var(--shadow); }
.look-reel div { display: grid; text-align: center; padding: .5rem .2rem; background: var(--reel-placa); border-radius: 9px; font-size: .73rem; }
.look-reel strong { color: var(--reel-titulo); line-height: 1.08; text-transform: uppercase; }
.look-reel span { color: var(--reel-segundo); margin-top: .19rem; line-height: 1.08; }
.look-preview[data-size=grande] .look-reel strong { font-size: 1.2em; }
.look-preview[data-size=discreto] .look-reel strong { font-size: .83em; }
.look-preview[data-shape=recta] .look-reel div { border-radius: 0; }
#look-estado:empty { display: none; }

.layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(330px, 1fr); gap: clamp(.85rem, 2vw, 1.4rem); align-items: start; }
.piece-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(690px, 100vw); height: 100dvh; max-width: none; max-height: none; padding: .95rem clamp(.85rem, 3vw, 1.55rem) 2rem; border: 0; border-left: 1px solid var(--line); color: var(--text); background: var(--bg); box-shadow: -12px 0 44px #271d1833; overflow-y: auto; }
.piece-drawer::backdrop { background: #1e1a157a; }
.drawer-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: start; justify-content: space-between; gap: .6rem; padding-top: .45rem; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.drawer-header h1 { font-size: clamp(1.6rem, 3.4vw, 2.45rem); overflow-wrap: anywhere; }
.drawer-header .view-title p { font: .72rem/1.35 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
#volver { flex: 0 0 40px; padding: .24rem; min-height: 40px; border-radius: 8px; }
.piece-stages { display: flex; flex-wrap: wrap; list-style: none; gap: .28rem; margin: 0 0 .72rem; padding: .48rem; border-radius: 10px; color: var(--panel-ink); background: var(--surface); }
.piece-stages li { padding: .28rem .4rem; border-radius: 6px; font-size: .72rem; }
.piece-stages li[aria-current=step] { color: var(--panel); background: var(--panel-ink); font-weight: 750; }
#ver-origen { margin-bottom: .7rem; min-height: 40px; color: #271d18; background: #fff0bf; border-color: #d9bb75; }
.piece-drawer .notice { width: 100%; margin-bottom: .72rem; border-radius: 10px; }
.piece-drawer .layout { grid-template-columns: minmax(160px, .78fr) minmax(230px, 1fr); gap: .72rem; }
.piece-drawer .preview-card { padding: .55rem; }
.preview-card { box-shadow: var(--shadow); }
.preview-surface {
  display: grid;
  place-items: center;
  padding: .65rem;
  background: radial-gradient(ellipse, #4c3b31 0, #29221e 76%);
  border-radius: 12px;
}
.phone {
  width: min(100%, 282px, calc(59vh * 9 / 16));
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0b1528;
  border: 1px solid #77675c;
  box-shadow: 0 12px 25px #1b110e97;
}
.phone video { display: block; width: 100%; height: 100%; object-fit: contain; }
.phone canvas { position: absolute; pointer-events: none; }
.phone canvas.drawing { pointer-events: auto; touch-action: none; cursor: crosshair; }
.safe { position: absolute; left: 0; right: 0; top: 0; height: 13.02%; display: none; pointer-events: none; background: #10132381; border-bottom: 1px dashed #ffffff9c; }
.safe.bottom { top: auto; bottom: 0; border-top: 1px dashed #ffffff9c; border-bottom: 0; }
.safe.side { left: auto; right: 0; width: 11%; height: 37%; top: 50%; border: 0; border-left: 1px dashed #ffffff9c; }
.show-safe .safe { display: block; }
.switch { display: flex; align-items: center; gap: .48rem; font-weight: 500; margin: .62rem 0; }
.switch input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.edit-panel { box-shadow: var(--shadow); }
.note-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .18rem; padding: .28rem; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.note-tools button { min-width: 32px; min-height: 38px; padding: .3rem; border: 1px solid transparent; border-radius: 6px; background: var(--field); }
.note-tools button:hover:not(:disabled) { background: var(--surface); }
.note-tools button[aria-pressed=true] { border-color: #8b5d15; background: var(--amarillo-postit); color: #1e1a15; box-shadow: inset 0 -3px #f4b115; }
.note-tools .icon { width: 17px; height: 17px; }
.note-colors { display: flex; align-items: center; border-inline: 1px solid var(--line); padding: 0 .12rem; }
.note-tools .note-colors button { padding: .13rem; min-width: 24px; min-height: 38px; background: transparent; border-color: transparent; box-shadow: none; }
.note-colors button::before { content: ''; width: 15px; height: 15px; border-radius: 50%; background: var(--mark-color); border: 1px solid #96846b; }
.note-colors button[aria-pressed=true]::before { outline: 2px solid var(--panel-ink); outline-offset: 1px; }
.note-colors [data-ink='#ffcc00'] { --mark-color: #ffcc00; }
.note-colors [data-ink='#e34348'] { --mark-color: #e34348; }
.note-colors [data-ink='#ffffff'] { --mark-color: #fff; }
.note-range { display: flex; flex-wrap: wrap; margin-top: .55rem; gap: .25rem; }
.note-range button { font-size: .74rem; padding: .25rem .49rem; min-height: 36px; }
.note-range button[aria-pressed=true] { background: var(--amarillo-postit); color: #271d18; border-color: #9e7629; }
.note-actions { justify-content: end; }
.note-actions button { min-height: 38px; font-size: .79rem; }
.quick-tools .icon { width: 24px; height: 24px; }
.quick-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: .42rem; margin-top: .8rem; }
.quick-tools button { display: grid; justify-items: center; gap: .3rem; min-height: 72px; padding: .36rem; border-radius: 8px; background: var(--field); font-size: .82rem; line-height: 1.2; }
.note-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.notes { padding: 0; margin: .7rem 0; list-style: none; }
.notes li { border-top: 1px solid var(--line); padding: .55rem 0; }
.notes button { min-height: 38px; padding: .28rem .58rem; margin-right: .28rem; }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.progress { height: 10px; width: 100%; accent-color: var(--accent); margin: .5rem 0; }

.cork-scroll { overflow-x: auto; border-radius: 18px; }
.cork-frame {
  position: relative;
  min-width: 580px;
  border: 14px solid transparent;
  border-top-width: 27px;
  border-radius: 16px;
  box-shadow: inset 0 2px 14px #47240de0;
  background: url('/corcho-textura.jpg') left top / 480px 480px repeat padding-box,
    repeating-linear-gradient(96deg, #996a40 4px, #b58a5b 8px, #a77b4e 15px) border-box;
}
.cork-sign { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); background: linear-gradient(#fae7a1,#d59e43); color: #3b2711; box-shadow: 0 2px 4px #36200f77; border-radius: 3px; padding: .17rem .85rem; font: bold .63rem Georgia, serif; letter-spacing: .18em; text-transform: uppercase; }
.idea-board { --note-width: 174px; --note-height: 148px; position: relative; min-height: 544px; }
.idea-board.drop-target { outline: 3px solid #ffe0a3; outline-offset: -16px; }
.postit {
  --paper: var(--casa-postit, #fff5cc);
  position: relative;
  z-index: 1;
  width: var(--note-width, 168px);
  height: var(--note-height, 144px);
  color: #382c26;
  border-radius: 2px 3px 7px 2px;
  border: 1px solid #2715052e;
  background: linear-gradient(155deg, #ffffff18, #95549e08), var(--paper);
  box-shadow: 2px 5px 8px #40261262;
}
.postit[data-brand=pjh] { --paper: var(--amarillo-postit); }
.postit[data-brand=nina] { --paper: #f8c3ba; }
.postit[data-brand=tregua] { --paper: #d4e9ef; }
.idea-board .postit { position: absolute; }
.postit-new { --paper: var(--amarillo-postit); margin: 0; padding: .7rem; color: #271d18; font: bold italic 1.16rem Georgia, Cambria, serif; transform: rotate(-2deg); }
.postit-new:hover:not(:disabled) { background: #fff0ae; transform: rotate(0); }
.postit-new::after, .postit-compose::after { content: ''; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; pointer-events: none; background: linear-gradient(135deg, transparent 50%, #c8ab54 51%, #fff2b7 69%); }
.tendedero { display: flex; align-items: flex-start; gap: .65rem; flex-wrap: wrap; padding: .95rem 1.12rem 0; }
.tendedero h2 { position: relative; flex-basis: 100%; margin: 0 0 .6rem; padding-bottom: .55rem; border-bottom: 2px solid #f6de9b; color: #22160c; font: bold italic 1.08rem Georgia, Cambria, serif; }
.tendedero .postit { --note-width: 148px; --note-height: 110px; }
.tendedero .postit-copy { -webkit-line-clamp: 3; }
.tendedero .pin span { width: 10px; height: 18px; border-radius: 3px; }
.postit:focus-within { z-index: 2; }
.postit-body {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 0;
  border-radius: inherit;
  background: transparent;
  color: #30271b;
  text-align: left;
  padding: 1.23rem .76rem .72rem;
}
.postit-body:hover:not(:disabled) { background: #fff2; }
.postit-body:focus-visible, .pin:focus-visible { outline-color: #293e63; outline-offset: -2px; }
.postit-copy { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.28; font: 700 .9rem/1.28 'Segoe Print', 'Bradley Hand', Georgia, serif; }
.postit-brand { display: block; color: #5c452e; font-size: .69rem; margin-top: .25rem; }
.pin {
  position: absolute;
  top: -.43rem;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 37px;
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: grab;
  touch-action: none;
}
.pin:hover:not(:disabled) { background: transparent; }
.pin span {
  width: 14px;
  height: 14px;
  margin-top: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffc4ab, #e5755a 34%, #a53e36 76%);
  border: 1px solid #993b32;
  box-shadow: 2px 4px 5px #52301ba3;
}
.postit[data-brand=pjh] .pin span { background: radial-gradient(circle at 33% 27%, #8aa4ce, #355789 53%, #293e66); border-color: #293e66; }
.postit[data-brand=nina] .pin span { background: radial-gradient(circle at 33% 27%, #a5c6a5, #3e6f53 53%, #1d4030); border-color: #1d4030; }
.tendedero .postit .pin span { background: linear-gradient(90deg, #7d4f26, #dfa566 45%, #916338); border-color: #81603a; }
.drag-original { opacity: .38; }
.postit.drag-ghost { position: fixed; margin: 0; transform: rotate(5deg) scale(1.055); z-index: 20; pointer-events: none; box-shadow: 6px 10px 18px #20110390; }
.freezer {
  position: relative;
  margin-top: 1.1rem;
  padding: 1.05rem;
  border: 1px solid #95bddb;
  border-radius: 17px;
  color: #193248;
  background: radial-gradient(ellipse at 50% 0, #f9fcff 0%, #e9f5fb 64%);
  box-shadow: inset 0 0 16px #8fb9cd40;
}
.freezer::before { content: ''; position: absolute; inset: 0 0 auto; height: 9px; border-radius: 16px 16px 0 0; pointer-events: none; background: radial-gradient(ellipse 4px 8px at 6px 0, #fcffff 99%, transparent) left top / 13px 9px repeat-x; }
.freezer.drop-target { outline: 3px solid #6596b4; outline-offset: 2px; }
.freezer h2 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.freezer p { margin-top: .24rem; font-size: .87rem; color: #38576d; }
.freeze-cards { min-height: 46px; display: flex; gap: .65rem; flex-wrap: wrap; align-items: flex-start; }
.freeze-cards .postit { opacity: .9; --paper: #e5eef6; }
.freeze-cards .postit::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 7px 2px #eaffff; }
.idea-dialog {
  width: min(94vw, 580px);
  max-height: 85dvh;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: var(--panel-ink);
  background: var(--panel);
  box-shadow: 0 26px 90px #25170daf;
}
.idea-dialog::backdrop { background: #261a12aa; }
#idea-composer { width: min(93vw, 470px); max-height: 90dvh; padding: 0; overflow: auto; color: #271d18; border: 0; border-radius: 3px 4px 9px 3px; background: var(--amarillo-postit); box-shadow: 0 16px 48px #271d186b, 3px 4px #d9bc5c; }
#idea-composer::backdrop { background: #271d1866; }
.postit-compose { position: relative; padding: 1.55rem clamp(.9rem, 4vw, 1.6rem) 1.25rem; }
.postit-compose::before { content: ''; position: absolute; top: .5rem; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #f7ae95, var(--ladrillo) 60%, #8d3127); box-shadow: 2px 2px 4px #5c2c1d64; }
.postit-compose h2 { font-size: 1.55rem; }
.postit-compose h2 label { margin-bottom: .7rem; }
.postit-compose textarea { min-height: 8.25rem; padding: .2rem .22rem; border: 0; border-radius: 0; background: repeating-linear-gradient(transparent 0 calc(1.8rem - 1px), #8d743b40 calc(1.8rem - 1px) 1.8rem) left .2rem top .2rem; color: #271d18; font: 1.13rem/1.8rem Georgia, Cambria, serif; }
.postit-compose textarea::placeholder { color: #604827; }
.postit-compose select, .postit-compose input { margin-top: .25rem; border-color: #a58642; background: #fff5cc; color: #271d18; }
.postit-compose button:not(.primary) { border-color: #a58642; background: #fff5cc; color: #271d18; }
.idea-dialog .bar { margin-bottom: .65rem; }
.idea-text { white-space: pre-wrap; overflow-wrap: anywhere; color: inherit; }
.idea-pictures { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.idea-pictures img { width: 94px; height: 94px; object-fit: cover; border-radius: 9px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: .5rem; }
#publicaciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: .75rem; align-items: start; }
.published-card.box { margin: 0; border-left: 4px solid var(--brand-color, var(--sol)); }
.metrics div { border: 1px solid var(--line); border-radius: 8px; padding: .55rem; background: var(--field); }
.metrics strong { display: block; font: bold 1.28rem Georgia, Cambria, serif; }

@media (max-width: 720px) {
  .header { gap: .38rem; }
  .header-tools button { min-width: 40px; padding-inline: .35rem; }
  .header-tools button span, .account { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(100%, 230px, calc(46vh * 9 / 16)); }
  .production-board { grid-template-columns: repeat(6, minmax(208px, 69vw)); scroll-snap-type: x proximity; }
  .production-lane { min-height: 265px; scroll-snap-align: start; }
  .idea-board { --note-width: 140px; --note-height: 124px; min-height: 500px; }
  .postit-copy { font-size: .88rem; -webkit-line-clamp: 3; }
  .freeze-cards .postit { --note-width: 139px; --note-height: 118px; }
}
@media (max-width: 530px) {
  .piece-drawer .layout { grid-template-columns: minmax(0, 1fr); }
  .note-tools button { min-width: 42px; min-height: 44px; }
}
@media (max-width: 520px) {
  .task-row, .look-layout { grid-template-columns: minmax(0, 1fr); }
  .task-row button { justify-self: start; }
  .section-nav button { padding-inline: .5rem; gap: .28rem; }
  .section-nav button { font-size: .84rem; }
  .section-nav button::before { width: 6px; height: 6px; flex-basis: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a.action { transition: background-color .15s ease, border-color .15s ease; }
  .fresh-ready { animation: ready-glow 1.15s ease-out; }
  .freeze-cards .newly-frozen::after { animation: frost 750ms ease-out; }
  .newly-pinned { animation: pin-paper 420ms ease-out; }
  .piece-drawer[open] { animation: drawer-in 180ms ease-out; }
  @keyframes ready-glow { 30% { box-shadow: 0 0 0 4px #e0a14677; } }
  @keyframes frost { from { background: #eaffff; } to { background: transparent; } }
  @keyframes pin-paper { from { transform: rotate(6deg) scale(1.085); } 70% { transform: rotate(-2deg); } }
  @keyframes drawer-in { from { transform: translateX(24px); opacity: .84; } }
}
