:root {
    --ink: #1c1915;
    --muted: #6f675e;
    --line: #e4dfd6;
    --paper: #f6f3ee;
    --card: #fffcf8;
    --side: #161814;
    --side-text: #f3efe7;
    --accent: #0e6b52;
    --accent-ink: #f4fff9;
    --danger: #8d2f2a;
    --ok: #0e6b52;
    --shadow: 0 18px 50px rgba(28, 25, 21, .06);
    --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Outfit, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-weight: 340;
    letter-spacing: -.01em;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; transition: grid-template-columns .18s ease; }
.side {
    background: var(--side);
    color: var(--side-text);
    padding: 22px 14px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.brand-mark {
    width: 32px; height: 36px; flex: 0 0 32px;
    display: block;
    background: #f3efe7;
    -webkit-mask: url("brand-rocket.png?v=20261005n") center / contain no-repeat;
    mask: url("brand-rocket.png?v=20261005n") center / contain no-repeat;
}
.brand strong { display: block; font-weight: 560; }
.brand em { font-style: normal; color: #b7b1a6; font-size: 13px; }
.side-fold {
    width: 32px; height: 32px; flex: 0 0 32px;
    display: grid; place-items: center;
    border: 0; border-radius: 10px;
    background: transparent; color: #d9d3c8; cursor: pointer;
}
.side-fold:hover { background: rgba(255,255,255,.08); color: white; }
.side-fold .nav-ico { width: 18px; height: 18px; }
.side nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 239, 231, .28) transparent;
}
.side nav::-webkit-scrollbar { width: 6px; }
.side nav::-webkit-scrollbar-track { background: transparent; }
.side nav::-webkit-scrollbar-thumb { background: rgba(243, 239, 231, .28); border-radius: 99px; }
.side nav::-webkit-scrollbar-thumb:hover { background: rgba(243, 239, 231, .48); }
.nav-group {
    margin: 14px 0 4px;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a847a;
}
.nav-group:first-child { margin-top: 0; }
.side nav a, .side-old, .side-out {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.side nav a {
    padding: 8px 12px;
    border-radius: 12px;
    color: #d9d3c8;
}
.nav-ico { width: 18px; height: 18px; flex: 0 0 18px; }
.side nav a.is-on, .side nav a:hover { background: rgba(255,255,255,.08); color: white; }
.side-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.side-user { margin: 0; }
.side-user strong { display: block; font-weight: 560; font-size: 15px; }
.side-user span { display: block; color: #b7b1a6; font-size: 13px; margin-top: 2px; }
.side-avatar { display: none; }
.side-out {
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 460;
}
.side-out:hover { filter: brightness(1.08); }
.side-old { color: #b7b1a6; font-size: 13px; padding: 4px 2px; }
.side-old:hover { color: white; }
html.side-icons .shell { grid-template-columns: 76px 1fr; }
html.side-icons .side { padding-left: 10px; padding-right: 10px; }
html.side-icons .brand-row { flex-direction: column; }
html.side-icons .brand-copy,
html.side-icons .nav-label,
html.side-icons .nav-group,
html.side-icons .side-user,
html.side-icons .side-out span,
html.side-icons .side-old span { display: none; }
html.side-icons .side-avatar {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 12px;
    background: rgba(255,255,255,.08); font-weight: 560;
}
html.side-icons .side nav a,
html.side-icons .side-old,
html.side-icons .side-out { justify-content: center; padding-left: 0; padding-right: 0; }
html.side-icons .side-out { width: 36px; height: 36px; border-radius: 12px; }
html.side-icons .side-foot { align-items: center; }
html.side-icons .side-fold .nav-ico { transform: rotate(180deg); }
.side-tip {
    position: fixed;
    z-index: 30;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}
.side-tip.is-on { opacity: 1; }
.main { min-width: 0; }
.top {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; padding: 28px 36px 8px;
}
.top h1 {
    font-family: Fraunces, serif;
    font-weight: 560;
    font-size: 40px;
    margin: 0;
    letter-spacing: -.03em;
}
.eyebrow { margin: 0 0 4px; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--muted); }
.eyebrow.light { color: #d7c7a4; }
.content { padding: 12px 36px 48px; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.stat, .card, .pcard, .login-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.stat { text-decoration: none; padding: 16px 18px; display: block; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 8px; font-family: Fraunces, serif; font-size: 32px; font-weight: 560; }
.webcards { grid-template-columns: repeat(3, 1fr); }
.webcard strong { margin-top: 0; font-size: 22px; }
.webcard span { display: block; margin-top: 6px; line-height: 1.45; }
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; }
.card { padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card h2, .empty h2 { font-family: Fraunces, serif; font-size: 26px; margin: 0 0 8px; font-weight: 560; }
.muted, .count-line { color: var(--muted); }
.actions, .filters, .savebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters { margin-bottom: 14px; }
.pub-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pub-switch a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--ink); background: #fff; }
.pub-switch a span { color: var(--muted); font-size: 12px; }
.pub-switch a.is-on { background: var(--side); color: #f3efe7; border-color: var(--side); }
.pub-switch a.is-on span { color: #d9d3c8; }
.filters input, .filters select, .field input, .field select, .field textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}
.filters input { min-width: 260px; width: auto; flex: 1; }
.filters select { width: auto; }
.field textarea { min-height: 120px; resize: vertical; }
.btn {
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 11px 16px;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 12px; }
.list-bar .count-line { margin: 0; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.view-switch button { border: 0; background: transparent; padding: 7px 14px; cursor: pointer; color: var(--muted); font: inherit; font-size: 13px; }
.view-switch button.is-on { background: var(--side); color: #f3efe7; }
html.stock-list .cards { display: flex; flex-direction: column; gap: 10px; }
html.stock-list .pcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
html.stock-list .pcard:hover { transform: none; }
html.stock-list .pcard-link { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; min-width: 0; }
html.stock-list .pthumb { height: 108px; }
html.stock-list .pbody { padding: 12px 16px; min-width: 0; }
html.stock-list .pbody h3, html.stock-list .pbody p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.stock-list .pbody h3 { margin: 4px 0; font-size: 17px; }
html.stock-list .pbody p { margin: 0 0 6px; }
html.stock-list .pactions { padding: 0 16px 0 0; flex-wrap: nowrap; }
.pcard { text-decoration: none; overflow: hidden; display: block; }
.pcard-link { display: block; text-decoration: none; color: inherit; }
.pcard:hover { transform: translateY(-2px); }
.pactions, .row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pactions { padding: 0 16px 14px; }
.pactions a, .row-actions a { color: var(--accent); text-decoration: none; }
.pactions button, .row-actions button, form.inline button {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--accent);
    cursor: pointer;
}
.pactions .is-danger, .pactions button.is-danger { color: var(--danger); }
.row-actions .is-danger { color: var(--danger); }
.doc-list .row-actions { white-space: nowrap; }
.btn-danger { color: var(--danger); border-color: #e7c8c6; background: white; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkline { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.pbody em { display: block; margin-top: 8px; color: var(--muted); font-style: normal; font-size: 13px; }
form.inline { display: inline; }
td form { display: inline; }
.pthumb { height: 170px; background: #ece7df center/cover no-repeat; }
.pbody { padding: 14px 16px 16px; }
.pmeta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pub { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; letter-spacing: .03em; text-transform: none; white-space: nowrap; }
.pub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pub-on, .ficha-bar .pub-on { color: #0e6b52; }
.pub-off, .ficha-bar .pub-off { color: #9a4a32; }
.ficha-bar .pub { cursor: default; font-weight: 650; }
.pbody h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 560; }
.pbody p { margin: 0 0 10px; color: var(--muted); min-height: 1.2em; }
.doc-list td { vertical-align: middle; }
.doc-title { display: block; }
.doc-slug { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; word-break: break-word; }
.doc-photo { width: 88px; }
.doc-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: #ece7df; display: block; }
.doc-thumb.is-empty { display: block; }
.state { display: inline-block; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.state.is-on { color: var(--ok); background: #e7f5ef; }
.state.is-off { color: var(--muted); background: #f0ece6; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 460; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.photo { border: 1px dashed var(--line); border-radius: 14px; padding: 10px; }
.photo img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 8px; }
details.card summary { cursor: pointer; font-family: Fraunces, serif; font-size: 22px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; align-items: center; }
.pager a { text-decoration: none; padding: 8px 11px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pager a:hover { border-color: var(--ink); }
.pager a.is-on { background: var(--ink); color: white; border-color: var(--ink); }
.pager-gap { color: var(--muted); padding: 0 2px; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); background: transparent; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.meta dt { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.meta dd { margin: 4px 0 0; }
.toasts {
    position: fixed;
    z-index: 3500;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(440px, calc(100vw - 36px));
    margin: 0;
    pointer-events: none;
}
.toast { padding: 14px 16px; border-radius: 12px; pointer-events: auto; box-shadow: 0 16px 40px rgba(22, 24, 20, .2); }
.toast-ok { background: #e7f4ee; color: #0d4d3b; }
.toast-error { background: #fdeceb; color: var(--danger); }
.form-error { color: var(--danger); }
.login-body { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-hero {
    background: #141613;
    color: #f6f1e7;
    padding: 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.login-hero h1 { font-family: Fraunces, serif; font-size: 68px; line-height: .95; font-weight: 560; margin: 0 0 16px; }
.login-hero p { max-width: 420px; color: #d9d1c4; }
.login-card { display: grid; place-items: center; padding: 32px; }
.login-card form { width: min(380px, 100%); }
.brand-inline { display: flex; align-items: center; gap: 10px; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.login-card .brand-mark { width: 26px; height: 30px; flex-basis: 26px; background: var(--ink); }
.login-card h2 { font-family: Fraunces, serif; font-size: 42px; margin: 0 0 18px; }
.login-card label { display: block; margin-bottom: 12px; }
.login-card input { width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: white; }
.ficha-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 2px 0 6px;
}
.ficha-move, .ficha-acts { display: flex; align-items: center; gap: 18px; }
.ficha-bar a, .ficha-bar button, .ficha-bar span {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
}
.ficha-move .prev::before { content: "‹ "; }
.ficha-move .next::after { content: " ›"; }
.ficha-acts a, .ficha-acts button { color: var(--ink); }
.ficha-bar .is-off { color: #cfc6ba; cursor: default; }
.ficha-bar .is-danger { color: var(--danger); }
.ficha-acts form { margin: 0; }
.tabs {
    display: flex;
    gap: 0;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.tabs a, .tabs span, .tabs label {
    flex: 0 0 auto;
    text-decoration: none;
    padding: 14px 18px 12px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
    color: var(--muted);
    font-size: 15px;
    white-space: nowrap;
}
.tabs a:hover, .tabs label:hover { color: var(--ink); }
.tabs a.is-on { color: var(--ink); font-weight: 560; border-bottom-color: var(--ink); background: transparent; }
.tabs span.is-off { color: #cfc6ba; }
.tab-note { margin: 8px 0 0; }
.langbar {
    display: flex;
    gap: 0;
    margin: 4px 0 16px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}
.langbar .lang {
    flex: 0 0 auto;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
    background: transparent;
    padding: 10px 14px;
    color: var(--muted);
    cursor: pointer;
}
.langbar a.lang { text-decoration: none; }
.langbar .lang.is-on { color: var(--ink); font-weight: 560; border-bottom-color: var(--accent); background: transparent; }
.page-editor { max-width: 1240px; }
.page-editor h2 { font-family: Fraunces, serif; font-size: 32px; font-weight: 560; margin: 0 0 8px; }
.page-url { margin: 0 0 14px; color: var(--muted); }
.page-editor .mce-tinymce, .page-editor .tox-tinymce { border-radius: 14px; margin-top: 8px; }
.image-loader { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 10px; }
.image-loader .muted { margin: 0; }
.js .langpane { display: none; }
.js .langpane.is-on { display: block; }
.rte-source, .field textarea { width: 100%; min-height: 280px; }
.field textarea.field-short { min-height: 72px; }
.field textarea.field-schema { min-height: 160px; font-family: Consolas, ui-monospace, monospace; font-size: 13px; }
.schema-auto {
    margin: 0 0 12px;
    padding: 12px 14px;
    max-height: 180px;
    overflow: auto;
    background: #f7f4ee;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
}
.has-rte .rte-source { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; opacity: 0; }
.rte-box { background: white; border-radius: 14px; margin-top: 8px; }
.rte-box .ql-toolbar { border: 1px solid var(--line); border-radius: 14px 14px 0 0; background: #faf8f4; }
.rte-box .ql-container { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; font-family: Outfit, sans-serif; font-size: 16px; min-height: 280px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shot {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #ece7df;
    cursor: grab;
}
.shot img { width: 100%; height: 160px; object-fit: cover; display: block; }
.shot-badge {
    position: absolute; left: 8px; top: 8px;
    background: rgba(22, 24, 20, .82); color: white;
    border-radius: 999px; padding: 4px 8px; font-size: 12px;
}
.shot-x {
    position: absolute; right: 8px; bottom: 8px;
    border: 0; border-radius: 999px; padding: 6px 10px;
    background: white; color: var(--danger); cursor: pointer;
}
.dropzone {
    position: relative;
    display: grid;
    gap: 4px;
    place-items: center;
    text-align: center;
    min-height: 140px;
    margin-top: 14px;
    padding: 22px;
    border: 1.5px dashed #cfc6ba;
    border-radius: 18px;
    background: #fbf9f6;
    cursor: pointer;
}
.dropzone.is-over { border-color: var(--accent); background: #f3faf7; }
.dropzone strong { font-weight: 560; }
.dropzone span { color: var(--muted); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pending { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pending figure { width: 120px; margin: 0; }
.pending img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.pending figcaption { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-lead { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 0 0 16px; }
.dash-lead p { margin: 0; color: var(--muted); }
.dash .stats { grid-template-columns: repeat(4, 1fr); }
.dash .stat { position: relative; overflow: hidden; padding: 18px 18px 16px 20px; }
.dash .stat i { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pip, var(--accent)); }
.dash .stat:hover { border-color: #cfc6ba; }
.dash-charts { display: grid; grid-template-columns: .9fr 1.15fr .95fr; gap: 14px; margin-bottom: 14px; }
.dash-lower { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.dash-charts .card, .dash-lower .card { margin-bottom: 0; }
.dash .card h2 { font-size: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head a { color: var(--accent); text-decoration: none; font-size: 14px; }
.donut-wrap { display: flex; align-items: center; gap: 18px; min-height: 168px; }
.donut { width: 148px; height: 148px; flex: 0 0 148px; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.donut-wrap:hover .donut { transform: scale(1.06) rotate(-8deg); }
.donut .seg {
    stroke-dashoffset: var(--off);
    animation: ring 1.05s cubic-bezier(.16, 1, .3, 1) backwards;
    animation-delay: calc(var(--i) * .28s);
}
@keyframes ring { from { stroke-dashoffset: calc(var(--off) + var(--len)); } }
.donut-n { font-family: Fraunces, serif; font-size: 22px; fill: var(--ink); opacity: 0; animation: num-in .45s ease .55s forwards; }
.donut-l { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); opacity: 0; animation: num-in .45s ease .7s forwards; }
@keyframes num-in { from { opacity: 0; } to { opacity: 1; } }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); animation: row-in .5s ease backwards; }
.legend li:nth-child(1) { animation-delay: .4s; }
.legend li:nth-child(2) { animation-delay: .55s; }
.legend li:nth-child(3) { animation-delay: .7s; }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
.legend i { width: 9px; height: 9px; border-radius: 99px; flex: 0 0 9px; }
.legend b { margin-left: auto; font-weight: 560; }
.legend em { font-style: normal; color: var(--muted); font-size: 12px; width: 36px; text-align: right; }
.hbar { display: grid; grid-template-columns: minmax(0, 108px) 1fr 28px; gap: 8px; align-items: center; margin: 9px 0; }
.hbar span { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar b { font-weight: 560; text-align: right; }
.track { height: 8px; background: #efeae2; border-radius: 99px; overflow: hidden; }
.track em {
    display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px;
    transform-origin: left center;
    animation: bar-in .85s cubic-bezier(.16, 1, .3, 1) backwards;
}
.hbar:nth-child(1) .track em { animation-delay: .08s; }
.hbar:nth-child(2) .track em { animation-delay: .16s; }
.hbar:nth-child(3) .track em { animation-delay: .24s; }
.hbar:nth-child(4) .track em { animation-delay: .32s; }
.hbar:nth-child(5) .track em { animation-delay: .4s; }
.hbar:nth-child(6) .track em { animation-delay: .48s; }
.hbar:hover .track em { filter: brightness(1.15); }
@keyframes bar-in { from { transform: scaleX(0); } }
.months { display: flex; align-items: flex-end; gap: 8px; height: 168px; }
.month { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.month em { font-style: normal; font-size: 12px; font-weight: 560; height: 16px; }
.month-col { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.month-bar {
    display: block; width: 100%; height: 0; background: #8fbfae; border-radius: 8px 8px 3px 3px;
    transform-origin: center bottom;
    animation: col-in .8s cubic-bezier(.16, 1, .3, 1) backwards;
    animation-delay: var(--d, 0s);
}
.month:nth-child(1) { --d: .05s; }
.month:nth-child(2) { --d: .12s; }
.month:nth-child(3) { --d: .19s; }
.month:nth-child(4) { --d: .26s; }
.month:nth-child(5) { --d: .33s; }
.month:nth-child(6) { --d: .4s; }
.month.is-now .month-bar {
    background: var(--accent);
    animation-name: col-in, glow;
    animation-duration: .8s, 1.6s;
    animation-delay: var(--d, .4s), calc(var(--d, .4s) + .75s);
    animation-timing-function: cubic-bezier(.16, 1, .3, 1), ease;
    animation-fill-mode: backwards, none;
    animation-iteration-count: 1, 1;
}
.month:hover .month-bar { filter: brightness(1.12); }
@keyframes col-in { from { transform: scaleY(0); } }
@keyframes glow { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.35); } }
.month small { color: var(--muted); font-size: 12px; margin-top: 6px; }
.feed a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.feed a strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 460; }
.feed a span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed a:hover strong { color: var(--accent); }
.op { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #e7f5ef; color: var(--accent); }
.op.is-rent { background: #f0ece6; color: var(--ink); }
.mod-line { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
    .donut .seg, .donut-n, .donut-l, .legend li, .track em, .month-bar { animation: none; opacity: 1; }
    .donut-wrap:hover .donut { transform: none; }
}
@media (max-width: 1100px) {
    .stats, .cards, .dash .stats { grid-template-columns: 1fr 1fr; }
    .dash-charts, .dash-lower, .split, .login-body, .grid, .photos, .meta, .checks { grid-template-columns: 1fr; }
    .dash-lead { flex-direction: column; align-items: flex-start; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .login-hero h1 { font-size: 48px; }
}
@media (max-width: 800px) {
    .shell, html.side-icons .shell { grid-template-columns: 1fr; }
    .side { position: fixed; z-index: 5; transform: translateX(-105%); width: 260px; transition: transform .2s ease; }
    .side.is-open { transform: none; }
    .menu-btn { display: inline-flex; }
    .side-fold { display: none; }
    html.side-icons .side { width: 260px; padding: 22px 14px 16px; }
    html.side-icons .brand-row { flex-direction: row; }
    html.side-icons .brand-copy,
    html.side-icons .nav-label,
    html.side-icons .nav-group,
    html.side-icons .side-user,
    html.side-icons .side-out span,
    html.side-icons .side-old span { display: block; }
    html.side-icons .side-out span,
    html.side-icons .side-old span,
    html.side-icons .nav-label { display: inline; }
    html.side-icons .side-avatar { display: none; }
    html.side-icons .side nav a,
    html.side-icons .side-old,
    html.side-icons .side-out { justify-content: flex-start; padding: 8px 12px; }
    html.side-icons .side-out { width: auto; height: auto; border-radius: 999px; }
    html.side-icons .side-foot { align-items: flex-start; }
    .top, .content, .login-hero { padding-left: 18px; padding-right: 18px; }
    .top h1 { font-size: 32px; }
    .stats, .cards { grid-template-columns: 1fr; }
    html.stock-list .pcard { grid-template-columns: 1fr; }
    html.stock-list .pactions { padding: 0 14px 12px; flex-wrap: wrap; }
    .dash .stats { grid-template-columns: 1fr 1fr; }
    .donut-wrap { flex-direction: column; align-items: flex-start; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .ficha-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-toolbar .pub-switch { margin: 0; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .82fr); gap: 16px; align-items: start; }
.cal-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cal-nav h2 { margin: 0; font-size: 34px; line-height: 1; }
.cal-nav .muted { margin: 4px 0 0; }
.cal-nav .btn { margin-left: auto; }
.cal-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: #fff; font-size: 24px; line-height: 1; }
.cal-arrow:hover { border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.cal-day { min-height: 104px; border-radius: 14px; background: #f6f3ee; padding: 6px; text-decoration: none; display: flex; flex-direction: column; gap: 3px; border: 1px solid transparent; }
.cal-day:hover { background: #fff; border-color: var(--line); }
.cal-day.is-on { background: #fff; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day.is-out { opacity: .4; }
.cal-num { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 560; }
.cal-day.is-today .cal-num { background: var(--accent); color: #f4fff9; }
.cal-pill { display: block; font-size: 11px; line-height: 1.3; padding: 2px 6px 2px 5px; border-radius: 7px; background: #fff; border-left: 3px solid var(--c, var(--accent)); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.cal-more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.cal-side { position: sticky; top: 16px; }
.cal-daytitle { font-size: 36px; line-height: 1; margin: 0 0 18px; }
.cal-empty { color: var(--muted); margin: 6px 0 16px; }
.cal-formtitle { margin: 0 0 12px; font-weight: 560; }
.cal-when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-find { margin-bottom: 8px; }
.cal-form .field textarea { min-height: 88px; }
.field-label { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.checkline { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.checkline input { width: auto; }
.cal-states { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.cal-states label { position: relative; cursor: pointer; }
.cal-states input { position: absolute; opacity: 0; }
.cal-states span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; }
.cal-states input:checked + span { background: var(--side); color: #f3efe7; border-color: var(--side); }
.cal-states input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-time { list-style: none; margin: 0; padding: 0; }
.cal-time li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.cal-time time { padding-top: 14px; color: var(--muted); font-size: 13px; font-weight: 560; font-variant-numeric: tabular-nums; }
.cal-event { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; text-decoration: none; background: #f6f3ee; border-left: 3px solid var(--c, var(--accent)); }
.cal-event:hover { background: #fff; }
.cal-event strong { font-weight: 560; }
.cal-kind { color: var(--c, var(--accent)); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cal-event > span { color: var(--muted); font-size: 13px; }
.cal-event.is-off strong { text-decoration: line-through; }
.cal-event.is-done { opacity: .72; }
.cal-delete { margin-top: 4px; }
.cal-pop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: rgba(22, 24, 20, .46); }
.cal-pop[hidden] { display: none; }
.cal-pop-card { position: relative; width: min(460px, 100%); max-height: min(86vh, 720px); overflow: auto; padding: 22px 22px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.cal-pop-card h2 { margin: 4px 0 8px; font-size: 28px; line-height: 1.15; }
.cal-pop-when { margin: 0 0 14px; color: var(--muted); }
.cal-pop-facts { margin: 0; }
.cal-pop-facts div { margin: 0 0 10px; }
.cal-pop-facts dt { font-size: 12px; color: var(--muted); }
.cal-pop-facts dd { margin: 2px 0 0; }
.cal-pop-notes { white-space: pre-wrap; margin: 4px 0 16px; }
.cal-pop-actions { display: flex; gap: 8px; }
.cal-pop-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.cal-pop-x:hover { background: #f3efe7; color: var(--ink); }
@media (max-width: 1100px) {
    .cal-layout { grid-template-columns: 1fr; }
    .cal-side { position: static; }
}
@media (max-width: 700px) {
    .cal-toolbar { flex-direction: column; align-items: stretch; }
    .cal-pill, .cal-more { display: none; }
    .cal-day { min-height: 44px; align-items: center; }
    .cal-nav h2, .cal-daytitle { font-size: 28px; }
}
.client-tabs { position: relative; }
.ctab-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.client-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--paper);
    padding-top: 4px;
}
.client-bar .tabs { flex: 1; min-width: 0; margin: 0; }
.client-bar .tabs label { cursor: pointer; }
.client-bar .btn { margin: 0 0 10px; }
.client-tabs .ctab { display: none; }
#ctab-ficha:checked ~ .ctab-ficha,
#ctab-busca:checked ~ .ctab-busca,
#ctab-eco:checked ~ .ctab-eco,
#ctab-mas:checked ~ .ctab-mas { display: block; }
#ctab-ficha:checked ~ .client-bar label[for="ctab-ficha"],
#ctab-busca:checked ~ .client-bar label[for="ctab-busca"],
#ctab-eco:checked ~ .client-bar label[for="ctab-eco"],
#ctab-mas:checked ~ .client-bar label[for="ctab-mas"] {
    color: var(--ink);
    font-weight: 560;
    border-bottom-color: var(--ink);
}
.client-hint { margin: 0 0 16px; }
.yesno {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.yesno > span { font-weight: 560; }
.yesno .cal-states { margin: 0; }
.yesno-row { margin-bottom: 8px; }
.pick { margin: 0 0 16px; }
.pick-filter { width: 100%; margin: 0 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pick[data-kind="search"] .pick-list {
    display: block;
    max-height: 220px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.pick-pill { position: relative; cursor: pointer; }
.pick-pill input { position: absolute; opacity: 0; }
.pick-pill span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: #fff; }
.pick-pill input:checked + span { background: var(--side); color: #f3efe7; border-color: var(--side); }
.pick-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; }
.pick-row input { width: auto; }
.pick-row:hover { background: #f6f3ee; }
.pick-row.is-dim { display: none; }
.people { display: flex; flex-direction: column; gap: 8px; }
.person {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.person-open {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1.4fr) minmax(140px, .8fr) auto;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 6px 8px;
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--side);
    color: #f3efe7;
    font-weight: 560;
}
.person-main strong { display: block; font-weight: 560; }
.person-main em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 13px; }
.person-contact { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.person-meta { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.person form { margin: 0; }
.person button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px 12px; }
.person button:hover { color: var(--danger); }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.match strong { font-weight: 560; }
.match strong a { color: inherit; text-decoration: none; }
.match strong a:hover { text-decoration: underline; }
.match p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.match-tier {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #f3efe7;
    color: #6a645c;
}
.match-tier.is-encaja { background: #e5f4ee; color: #0e6b52; }
.match-go form { margin: 0; }
@media (max-width: 800px) {
    .match { grid-template-columns: 1fr; }
}
.ia-status { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #0e6b52; font-size: 13px; }
.ia-dot { width: 8px; height: 8px; border-radius: 99px; background: #0e6b52; flex: 0 0 auto; }
.ia-links { list-style: none; margin: 0; padding: 0; }
.ia-links a { color: #0e6b52; }
.checkline { display: flex; gap: 8px; align-items: flex-start; }
.checkline input { margin-top: 3px; }
.ia-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #e5f4ee;
}
.ia-ready p { display: flex; align-items: center; gap: 8px; margin: 0; }
.ia-ready form { margin: 0; }
.ia-ask summary {
    cursor: pointer;
    font-weight: 560;
    list-style: none;
}
.ia-ask summary::-webkit-details-marker { display: none; }
.ia-ask form { margin-top: 14px; }
.ia-options { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checkline[hidden] { display: none !important; }
.ia-box .savebar form { margin: 0; }
@media (max-width: 800px) {
    .client-bar { align-items: stretch; flex-direction: column; }
    .client-bar .btn { margin: 0 0 12px; }
    .person-open { grid-template-columns: 44px minmax(0, 1fr); }
    .person-contact, .person-meta { grid-column: 2; text-align: left; }
}
.iq-wait {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(22, 24, 20, .55);
    backdrop-filter: blur(8px);
}
.iq-wait[hidden] { display: none; }
.iq-wait-card {
    width: min(420px, 100%);
    padding: 28px 28px 24px;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 28px 80px rgba(22, 24, 20, .28);
    text-align: center;
}
.iq-wait-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}
.iq-wait-brand .brand-mark {
    width: 34px;
    height: 40px;
    flex-basis: 34px;
    background: var(--ink);
    animation: iq-wait-mark 1.6s ease-in-out infinite;
}
.iq-wait-brand strong {
    font-family: Fraunces, serif;
    font-size: 22px;
    font-weight: 560;
    letter-spacing: -.02em;
}
.iq-wait-card h2 {
    margin: 0 0 6px;
    font-family: Fraunces, serif;
    font-size: 28px;
    font-weight: 520;
    line-height: 1.15;
}
.iq-wait-card p { margin: 0 0 18px; color: var(--muted); }
.iq-wait-track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7e1d6;
}
.iq-wait-fill {
    position: relative;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--accent);
    transition: width .25s linear;
    overflow: hidden;
}
.iq-wait-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: translateX(-100%);
    animation: iq-wait-sheen 1.3s linear infinite;
}
.iq-wait-pct {
    margin: 10px 0 0;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--muted);
}
@keyframes iq-wait-sheen {
    to { transform: translateX(100%); }
}
@keyframes iq-wait-mark {
    50% { transform: translateY(-3px); }
}
.home-pick { margin-bottom: 16px; }
.home-pick .filters { margin: 0; }
.menustatus { min-height: 1.2em; margin: 0 0 12px; color: var(--accent); font-size: 13px; }
.menutree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.menunode > .menutree { margin: 8px 0 0 28px; }
.menunode > .menutree:empty { display: none; margin: 0; }
.menurow {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px 10px 8px;
}
.menugrip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    color: var(--muted);
    cursor: grab;
    touch-action: none;
}
.menugrip:active { cursor: grabbing; }
.menucopy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.menucopy strong { font-weight: 560; }
.menucopy span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menuedit { color: var(--accent); font-weight: 560; text-decoration: none; }
.menunode.is-dragging > .menurow { opacity: .4; }
.menunode.is-before > .menurow { box-shadow: inset 0 3px 0 var(--accent); }
.menunode.is-after > .menurow { box-shadow: inset 0 -3px 0 var(--accent); }
.menunode.is-into > .menurow { outline: 2px solid var(--accent); outline-offset: -2px; }
.menunode.is-into > .menutree { display: flex; min-height: 28px; border-radius: 10px; background: rgba(14, 107, 82, .08); }
.menustatus.is-bad { color: var(--danger); }
.prs-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 16px; }
.prs-head h2 { font-family: Fraunces, serif; font-size: 32px; margin: 0; font-weight: 560; }
.prs-head p { margin: 4px 0 0; }
.prs-head__side { display: flex; gap: 8px; align-items: flex-end; }
.prs-head__side .field { min-width: 180px; }
.prs-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 12px; letter-spacing: .02em; background: #f3efe7; color: var(--ink); }
.prs-firmada, .prs-enviado { background: #e7f5ef; color: #0e6b52; }
.prs-revisado { background: #e7eef8; color: #1d4e89; }
.prs-pendiente { background: #f8efe3; color: #8a5a12; }
.inv-box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.inv-copy { min-width: 0; }
.inv-copy p { margin: 8px 0 0; }
.inv-actions { position: static; }
.inv-actions .btn { position: static; margin: 0; }
.inv-box form { margin: 0; }
@media (max-width: 800px) {
    .inv-box { flex-direction: column; align-items: stretch; }
}
.prs-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.prs-photos a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; background: #ece7df center / cover no-repeat; }
.prs-photos span { position: absolute; left: 8px; bottom: 8px; background: rgba(22, 24, 20, .78); color: white; border-radius: 999px; padding: 3px 8px; font-size: 12px; }
.prs-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 6px 0 22px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.prs-actions-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prs-actions form { margin: 0; }
.prs-actions .btn {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.prs-extras {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.prs-extras label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    line-height: 1.25;
}
.prs-extras label:hover { border-color: #cfc6b8; }
.prs-extras input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: none;
    accent-color: var(--accent);
}
.prs-extras label:has(input:checked) {
    background: #e7f5ef;
    border-color: #b7d9cb;
}
.prs-doc-row { display: flex; gap: 16px; align-items: center; }
.prs-doc-mark { width: 52px; height: 64px; border-radius: 8px; background: #8f2d2d; color: white; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 12px; letter-spacing: .08em; font-weight: 560; flex: none; }
.prs-doc-copy { flex: 1; min-width: 0; }
.prs-doc-copy h2 { margin: 0; }
.prs-doc-copy p { margin: 4px 0 0; color: var(--muted); }
.prs-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prs-visor { width: min(920px, calc(100vw - 32px)); height: min(860px, calc(100vh - 32px)); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); border: 0; border-radius: 16px; padding: 0; box-shadow: var(--shadow); }
.prs-visor::backdrop { background: rgba(22, 24, 20, .55); }
.prs-visor-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prs-visor iframe { width: 100%; height: calc(100% - 58px); border: 0; background: white; }
.prs-doc-fold { margin: 0 0 14px; }
.prs-doc-fold > summary { width: fit-content; margin: -6px 0 0 22px; color: var(--muted); cursor: pointer; list-style: none; }
.prs-doc-fold > summary::-webkit-details-marker { display: none; }
.prs-doc-fold[open] > summary { margin-bottom: 10px; }
.prs-warn { margin: 0 0 14px; background: #f8efe3; color: #6e4510; border-radius: 12px; padding: 12px 14px; }
.prs-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.prs-doc-edit .btn-primary:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 800px) {
    .prs-doc-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 800px) {
    .prs-head, .prs-head__side { flex-direction: column; align-items: stretch; }
    .prs-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .prs-actions-main { flex-direction: column; align-items: stretch; }
    .prs-actions .btn { width: 100%; }
}
.ayuda-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.ayuda-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ayuda-card strong { font-family: Fraunces, serif; font-size: 32px; font-weight: 560; padding: 16px 18px 0; }
.ayuda-card > span:last-child { color: var(--muted); padding: 6px 18px 18px; }
.ayuda-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #161814; }
.ayuda-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ayuda-play { position: absolute; left: 16px; bottom: 16px; background: var(--accent); color: white; border-radius: 999px; padding: 8px 14px; font-weight: 560; }
.ayuda-back { margin: 0 0 14px; }
.ayuda-back a { color: var(--accent); font-weight: 560; text-decoration: none; }
.ayuda-player { background: #161814; border-radius: 18px; overflow: hidden; }
.ayuda-player video { display: block; width: 100%; max-height: 78vh; background: #161814; }
