/* Zyvra · private publishing studio. Shared foundations live in styles.css. */
.admin-body { background: #f3f6f8; }
.admin-container { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.admin-header { position: sticky; top: 0; z-index: 20; background: #f9fbfbeF; backdrop-filter: blur(12px); border-bottom: 1px solid #d8e2ec; }
.admin-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 83px; }
.admin-header .brand__logo { width: 44px; height: 44px; }
.admin-header .brand__words strong { font-size: 23px; }
.admin-header .brand__words > span { font-size: 9px; }
.admin-header__actions { display: flex; align-items: center; gap: 22px; }
.admin-header__actions > a { font-size: 12px; }
.admin-header__actions .icon { width: 17px; height: 17px; }
.admin-main { min-height: calc(100dvh - 170px); padding-block: 36px 48px; }
.admin-global-notice { margin-bottom: 24px; overflow-wrap: anywhere; }
.access-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1010px; margin: 24px auto 28px; border-radius: 22px; }
.access-story { position: relative; background: var(--ink); color: #edf6ff; padding: 46px 40px; border: 1px solid #263f60; border-radius: 22px 0 0 22px; overflow: hidden; min-height: 580px; }
.access-story .eyebrow { color: #8eb2d9; font-size: 9px; }
.access-story h2 { position: relative; font-size: 49px; margin-top: 28px; line-height: 1.05; letter-spacing: -.05em; z-index: 1; }
.access-story > p:not(.eyebrow) { color: #a8bfd9; font-size: 13px; line-height: 1.85; margin-top: 22px; max-width: 290px; position: relative; z-index: 1; }
.access-story__art { position: absolute; inset: auto -100px -100px -100px; height: 400px; display: grid; place-items: center; }
.access-story__art img { position: absolute; width: 100%; height: 100%; object-fit: contain; opacity: .55; }
.access-story__art > span { position: relative; width: 100px; height: 100px; border: 1px solid #5782b0; border-radius: 26px; color: #7de3ff; background: #173354; box-shadow: 0 12px 40px #030d2644; transform: rotate(-8deg); margin-top: -55px; }
.access-story__art .icon { width: 43px; height: 43px; }
.access-story__caption { position: absolute; left: 40px; bottom: 28px; color: #8cadd0; font-size: 8px; letter-spacing: .16em; }
.access-card { padding: 42px 40px 36px; border: 1px solid #d2dfea; border-left: 0; border-radius: 0 22px 22px 0; background: #fff; box-shadow: 0 12px 40px #15355606; }
.access-card > .eyebrow { font-size: 9px; color: #58708b; margin-top: 20px; }
.access-symbol { display: inline-flex; align-items: center; justify-content: center; width: 49px; height: 49px; background: #eaf1ff; color: var(--blue); border: 1px solid #d7e3f8; border-radius: 14px; }
.access-symbol .icon { width: 23px; height: 23px; }
#session-loading .access-symbol .icon { animation: rotate 1s linear infinite; }
.access-card h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.04em; font-weight: 700; margin-top: 13px; }
.access-intro, .access-card--wide > p:not(.eyebrow):not(.access-note), .access-card--center > p { margin-top: 15px; font-size: 13px; line-height: 1.8; color: #5c728a; }
#login-form { margin-top: 26px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.field + .field { margin-top: 20px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; font-size: 12px; line-height: 1.5; font-weight: 650; color: #213f5b; }
.field label > span { color: #627991; font-size: 10px; font-weight: 400; text-align: right; }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea, .field select { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #cbd9e6; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.5; transition: border-color .18s, box-shadow .18s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #687e95; opacity: 1; font-size: 12px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7da7eb; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #bd4655; background: #fffafb; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: #eef2f6; color: #677c93; }
.field-help { color: #617991; font-size: 10px; line-height: 1.7; }
.password-field { position: relative; }
.password-field input { padding-right: 53px !important; }
.password-toggle { position: absolute; right: 3px; top: 3px; min-width: 41px; min-height: 41px; padding: 9px; border: 0; background: transparent; }
.password-toggle .icon { width: 19px; height: 19px; }
.access-submit { width: 100%; margin-top: 26px; }
.access-note { margin-top: 23px; color: #627993; font-size: 10px; line-height: 1.8; display: flex; align-items: flex-start; gap: 8px; }
.access-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.access-card--center, .access-card--wide { grid-column: 1 / -1; width: min(650px, 100%); justify-self: center; border: 1px solid #d2dfea; border-radius: 20px; }
.access-card--center { text-align: center; padding-block: 58px; }
.access-card--center h1 { margin-top: 24px; font-size: 27px; }
.access-card--wide { padding: 42px; }
.access-card--wide h1 { font-size: 34px; }
.access-card--wide > .button { margin-top: 25px; }
.setup-steps { padding-left: 21px; margin: 25px 0 0; display: grid; gap: 15px; color: #45607e; font-size: 13px; line-height: 1.8; }
.admin-body code { padding: 3px 6px; border-radius: 4px; background: #eaf0f7; font: 11px/1.6 Consolas, "Courier New", monospace; color: #174783; white-space: nowrap; }
.server-help { background: #f1f5fa; padding: 19px 21px; border: 1px solid #d5e2f0; border-radius: 10px; margin-top: 24px; color: #486580; font-size: 12px; line-height: 1.85; }
.server-help p + p { margin-top: 12px; }
.form-error { padding: 13px 16px; background: #fff0f2; border: 1px solid #e5b5c0; border-radius: 9px; color: #8a2338; font-size: 12px; line-height: 1.75; margin-block: 20px; overflow-wrap: anywhere; }
.form-error ul { padding-left: 20px; margin: 0; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin: 4px 0 35px; }
.workspace-heading > div:first-child { flex: 1; }
.workspace-heading .eyebrow { font-size: 9px; }
.workspace-heading h1 { font-size: 40px; line-height: 1.12; font-weight: 720; letter-spacing: -.048em; margin-top: 19px; }
.workspace-heading > div > p:not(.eyebrow) { color: #5d748b; font-size: 12px; margin-top: 16px; max-width: 480px; line-height: 1.8; }
.workspace-heading__actions { display: flex; flex-direction: column; gap: 13px; align-items: flex-end; }
.document-status { display: flex; align-items: center; justify-content: flex-end; gap: 15px; font-size: 10px; line-height: 1.7; color: #58718c; }
#save-status { display: flex; align-items: center; gap: 7px; }
#save-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #418663; }
#save-status.is-dirty::before { background: #b07712; }
#save-status.is-conflict::before { background: #ba3548; }
#revision-label { border-left: 1px solid #cbd8e5; padding-left: 14px; }
.workspace-buttons { display: flex; gap: 9px; }
.conflict-notice { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.conflict-notice strong { font-size: 13px; }
.conflict-notice p { margin-top: 7px; font-size: 11px; line-height: 1.75; }
.conflict-notice .button { flex-shrink: 0; background: #fff9ee; }
.workspace-tabs { display: flex; gap: 8px; border-bottom: 1px solid #cddae7; margin-bottom: 32px; }
.workspace-tab { min-height: 57px; display: flex; align-items: center; gap: 9px; padding: 14px 24px; background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 600; color: #5f768e; }
.workspace-tab .icon { width: 18px; height: 18px; }
.workspace-tab.is-active { border-bottom-color: var(--blue); color: var(--blue); background: #e9f0fc; border-radius: 9px 9px 0 0; }
.workspace-tab:hover:not(.is-active) { color: var(--ink); background: #e6edf4; border-radius: 9px 9px 0 0; }
.workspace-tab .tab-count { font-size: 9px; }
.items-panel, .settings-panel { border-radius: 12px; }
.items-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 24px; }
.items-heading h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.035em; }
.items-heading p { color: #617991; font-size: 11px; margin-top: 9px; line-height: 1.7; }
.items-heading .button { font-size: 12px; padding-inline: 19px; }
.admin-list-toolbar { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid #d3dfeb; border-radius: 13px; padding: 16px; }
.admin-list-toolbar .search-field { max-width: 410px; flex: 1; }
.admin-list-toolbar .category-field { width: 195px; }
.admin-list-toolbar > p { margin-left: auto; font-size: 10px; line-height: 1.7; color: #5c7490; padding-left: 5px; }
.order-help { margin: 15px 0 20px; color: #617b94; font-size: 10px; line-height: 1.7; }
.admin-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.admin-item { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; column-gap: 20px; row-gap: 14px; padding: 21px; background: #fff; border: 1px solid #d2dfea; border-radius: 13px; }
.admin-item__thumb { grid-row: 1 / span 2; position: relative; width: 66px; height: 66px; border: 1px solid #d2e1f5; border-radius: 13px; background: #eaf2ff; color: var(--blue); display: grid; place-items: center; overflow: hidden; }
.admin-item__thumb .icon { width: 27px; height: 27px; }
.admin-item__thumb img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.admin-item__content { min-width: 0; }
.admin-item__content h3 { font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.admin-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-top: 10px; }
.admin-item__category { color: #5b7391; font-size: 10px; max-width: 100%; overflow-wrap: anywhere; }
.admin-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; border-radius: 5px; background: #ecf0f5; color: #536c85; padding: 3px 7px; font-size: 9px; line-height: 1.5; font-weight: 600; }
.admin-badge--active { background: #e7f4ed; color: #2f6949; }
.admin-badge--featured { background: #eaf1ff; color: #2b579c; }
.admin-badge .icon { width: 11px; height: 11px; }
.admin-item__description { margin-top: 9px; color: #657d94; font-size: 11px; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item__price { text-align: right; min-width: 105px; max-width: 200px; }
.admin-item__price .price__line { justify-content: flex-end; }
.admin-item__price .price__previous { font-size: 10px; }
.admin-item__price .price__period { font-size: 9px; }
.admin-item__actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 11px; border-top: 1px solid #edf1f5; }
.admin-item__order { font-size: 9px; color: #657d96; margin-right: auto; }
.admin-item__move { display: flex; gap: 5px; margin-right: 5px; }
.admin-item__move .icon-button { min-width: 37px; min-height: 37px; padding: 9px; border-radius: 7px; }
.admin-item__move .icon { width: 15px; height: 15px; }
.admin-item__actions > .button { min-height: 38px; font-size: 10px; padding: 9px 12px; gap: 7px; }
.admin-item__actions > .button .icon { width: 14px; height: 14px; }
.admin-item__delete { color: #972d3e; }
.admin-item__delete:hover { color: #842136; background: #fff1f3; border-color: #e3b7c1; }
.admin-item__publish { color: #416485; }
.admin-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-align: center; min-height: 270px; padding: 38px 25px; border: 1px dashed #b9cce0; border-radius: 15px; background: #fbfdff; }
.admin-empty img { width: 190px; height: auto; }
.admin-empty > .icon { width: 34px; height: 34px; color: var(--blue); }
.admin-empty h3 { font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.admin-empty p { max-width: 470px; color: #607992; font-size: 12px; line-height: 1.8; }
.admin-empty .button { margin-top: 3px; font-size: 12px; }
.settings-card { border: 1px solid #d1deeb; background: #fff; border-radius: 14px; margin-bottom: 22px; padding: 27px 29px 30px; }
.settings-card__heading { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #e2e9f1; }
.settings-card__heading > span { width: 39px; height: 39px; background: #eaf2ff; color: var(--blue); border-radius: 10px; }
.settings-card__heading .icon { width: 20px; height: 20px; }
.settings-card__heading h3 { font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.settings-card__heading p { color: #617a92; font-size: 10px; margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-grid > .field { margin-top: 0; }
.field--full { grid-column: 1 / -1; }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.settings-footer p { color: #607b94; font-size: 11px; }
.settings-footer .button { font-size: 12px; }
.draft-bar { position: sticky; bottom: 16px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid #bdcfe6; border-radius: 13px; background: #f7fbff; box-shadow: 0 10px 35px #122d4e22; margin-top: 30px; padding: 16px 20px; }
.draft-bar > div { display: flex; align-items: center; gap: 12px; }
.draft-bar > div > span { color: var(--blue); }
.draft-bar p { font-size: 11px; line-height: 1.7; color: #254561; }
.draft-bar p > span { display: block; color: #627e98; font-size: 10px; }
.draft-bar .button { flex-shrink: 0; }
.admin-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid #d1dfeb; color: #667e94; font-size: 10px; }
.editor-dialog { border: 1px solid #b9cee5; border-radius: 18px; padding: 0; width: min(860px, calc(100% - 40px)); max-height: calc(100dvh - 40px); color: var(--ink); background: #fff; box-shadow: 0 30px 100px #0005; overflow: auto; overscroll-behavior: contain; }
.editor-dialog::backdrop, .confirm-dialog::backdrop { background: #061a32bf; backdrop-filter: blur(4px); }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 27px 31px 24px; background: #f9fbff; border-bottom: 1px solid #d7e3f0; position: sticky; top: 0; z-index: 3; }
.editor-header .eyebrow { color: var(--blue); font-size: 9px; }
.editor-header h2 { font-size: 27px; margin-top: 9px; line-height: 1.2; letter-spacing: -.035em; }
.editor-header p:not(.eyebrow) { font-size: 10px; line-height: 1.7; color: #5b7791; margin-top: 9px; max-width: 540px; }
.editor-header > .icon-button { flex-shrink: 0; }
.editor-body { padding: 27px 31px 9px; }
.editor-body > .form-error { margin-top: 0; }
.editor-section { padding-bottom: 27px; margin-bottom: 27px; border-bottom: 1px solid #e0e8f1; }
.editor-section:last-child { border-bottom: 0; margin-bottom: 0; }
.editor-section h3 { margin-bottom: 22px; font-size: 16px; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; }
.price-editor-help { margin: -6px 0 23px; padding: 14px 16px; border: 1px solid #cadcf2; border-radius: 9px; background: #eef5ff; color: #395c7e; font-size: 11px; line-height: 1.8; }
.image-editor { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.editor-preview { position: relative; min-height: 170px; height: 170px; border: 1px solid #c9daef; border-radius: 12px; background: #eaf2ff url('/assets/idea-network.svg') center / cover; overflow: hidden; display: grid; place-items: center; color: var(--blue); }
.editor-preview > .icon { width: 47px; height: 47px; padding: 10px; box-sizing: content-box; background: #fff; border: 1px solid #c3d8ef; border-radius: 16px; }
.editor-preview img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.upload-control { margin-top: 17px; position: relative; }
.upload-control .button { cursor: pointer; font-size: 11px; min-height: 44px; }
.upload-control:focus-within .button { outline: 3px solid var(--blue); outline-offset: 3px; }
.upload-control p { font-size: 9px; color: #667f96; margin-top: 9px; }
.upload-control.is-busy .button { opacity: .6; pointer-events: none; }
.upload-status { font-size: 10px; color: #36638d; margin-top: 11px; line-height: 1.75; overflow-wrap: anywhere; }
.image-error { color: #992c43; font-size: 10px; line-height: 1.75; margin-top: 9px; overflow-wrap: anywhere; }
.publish-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.check-card { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid #cadbea; border-radius: 10px; background: #f8fbff; cursor: pointer; }
.check-card:has(input:checked) { background: #edf4ff; border-color: #a2c0ed; }
.check-card input { width: 19px; height: 19px; accent-color: var(--blue); margin: 3px 0 0; flex-shrink: 0; cursor: pointer; }
.check-card strong { display: block; font-size: 12px; font-weight: 650; }
.check-card small { display: block; font-size: 9px; color: #58738e; line-height: 1.8; margin-top: 4px; }
.editor-footer { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 31px; border-top: 1px solid #d7e3f0; background: #f9fbff; }
.editor-footer > p { font-size: 9px; color: #63809a; max-width: 235px; overflow-wrap: anywhere; }
.editor-footer > div { display: flex; gap: 9px; }
.editor-footer .button { min-height: 44px; font-size: 12px; padding-inline: 19px; }
.confirm-dialog { width: min(440px, calc(100% - 32px)); border: 1px solid #bacde2; border-radius: 18px; background: #fff; color: var(--ink); padding: 30px; box-shadow: 0 30px 100px #0005; }
.confirm-symbol { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; border-radius: 12px; background: #fff0f3; color: #a0364a; margin-bottom: 17px; }
.confirm-symbol .icon { width: 22px; height: 22px; }
.confirm-dialog h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.035em; }
.confirm-dialog > p { font-size: 12px; line-height: 1.85; color: #5b738e; margin-top: 16px; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.confirm-actions .button { font-size: 12px; min-height: 44px; padding-inline: 18px; }

@media (max-width: 1050px) {
  .admin-container { width: calc(100% - 52px); }
  .access-story { padding-inline: 31px; }
  .access-story h2 { font-size: 44px; }
  .access-card { padding-inline: 31px; }
  .workspace-heading { gap: 25px; }
  .workspace-heading h1 { font-size: 35px; }
  .workspace-heading__actions { max-width: 340px; }
  .document-status { flex-wrap: wrap; gap: 8px 13px; }
  .admin-list-toolbar .search-field { max-width: none; }
  .admin-list-toolbar > p { max-width: 150px; }
}
@media (max-width: 760px) {
  .admin-container { width: calc(100% - 40px); }
  .admin-header__inner { min-height: 76px; }
  .admin-header__actions { gap: 10px; }
  .admin-header__actions > a { font-size: 10px; }
  .admin-header__actions > button { padding-inline: 12px; font-size: 10px; }
  .admin-header__actions > button .icon { display: none; }
  .admin-main { padding-top: 28px; }
  .access-layout { grid-template-columns: 1fr; max-width: 520px; margin-top: 4px; }
  .access-story { display: none; }
  .access-card { border: 1px solid #d2dfea; border-radius: 18px; padding: 32px; }
  .access-card--wide h1 { font-size: 30px; }
  .access-card--center { padding-block: 48px; }
  .workspace-heading { flex-direction: column; align-items: stretch; gap: 23px; }
  .workspace-heading__actions { max-width: none; flex-direction: row; align-items: center; justify-content: space-between; }
  .document-status { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 9px; }
  #revision-label { padding: 0; border: 0; }
  .workspace-buttons .button { font-size: 11px; padding-inline: 13px; }
  .workspace-tabs { margin-bottom: 26px; gap: 3px; }
  .workspace-tab { padding-inline: 19px; font-size: 12px; gap: 7px; }
  .workspace-tab .icon { width: 16px; height: 16px; }
  .conflict-notice { flex-direction: column; align-items: flex-start; gap: 17px; }
  .items-heading { gap: 22px; }
  .items-heading h2 { font-size: 24px; }
  .items-heading p { font-size: 10px; }
  .items-heading .button { font-size: 11px; padding-inline: 14px; gap: 8px; }
  .admin-list-toolbar { flex-wrap: wrap; }
  .admin-list-toolbar .search-field { flex-basis: 55%; }
  .admin-list-toolbar .category-field { width: 40%; }
  .admin-list-toolbar > p { width: 100%; max-width: none; padding: 0; margin-left: 0; }
  .admin-item { column-gap: 14px; padding: 19px; grid-template-columns: 58px minmax(0, 1fr) auto; }
  .admin-item__thumb { width: 58px; height: 58px; border-radius: 11px; }
  .admin-item__content h3 { font-size: 16px; }
  .admin-item__price { min-width: 80px; max-width: 130px; }
  .admin-item__price .price__amount { font-size: 16px; }
  .admin-item__price .price__amount--quote { font-size: 11px; }
  .admin-item__actions { grid-column: 1 / -1; }
  .form-grid { gap: 20px; }
  .settings-card { padding: 24px; }
  .settings-card__heading p { font-size: 9px; }
  .settings-footer p { font-size: 10px; }
  .draft-bar { padding: 13px 16px; gap: 16px; bottom: 12px; }
  .draft-bar p { font-size: 10px; }
  .draft-bar p > span { font-size: 9px; }
  .draft-bar .button { font-size: 10px; padding-inline: 13px; }
  .editor-dialog { width: calc(100% - 28px); max-height: calc(100dvh - 28px); }
  .editor-header { padding: 23px 25px; }
  .editor-body { padding-inline: 25px; }
  .editor-footer { padding-inline: 25px; }
  .image-editor { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
  .editor-preview { height: 155px; min-height: 155px; }
}
@media (max-width: 540px) {
  .admin-header__inner { gap: 12px; }
  .admin-header .brand { gap: 10px; }
  .admin-header .brand__logo { width: 37px; height: 37px; }
  .admin-header .brand__words { max-width: 145px; }
  .admin-header .brand__words strong { font-size: 21px; }
  .admin-header .brand__words > span { font-size: 8px; }
  .admin-header__actions > a { font-size: 0; gap: 0; min-width: 34px; justify-content: center; }
  .admin-header__actions > a .icon { width: 18px; height: 18px; }
  .admin-header__actions > button { min-height: 40px; padding: 9px 11px; font-size: 9px; }
  .access-card { padding: 28px 24px; }
  .access-card h1 { font-size: 29px; }
  .access-card .field input { font-size: 16px; }
  .access-intro { font-size: 12px; }
  .access-card--wide h1 { font-size: 29px; }
  .access-card--wide > p:not(.eyebrow):not(.access-note) { font-size: 12px; }
  .setup-steps { font-size: 12px; }
  .server-help { padding: 17px; font-size: 11px; }
  .access-card--wide > .button { width: 100%; font-size: 12px; }
  .workspace-heading h1 { font-size: 33px; margin-top: 17px; }
  .workspace-heading > div > p:not(.eyebrow) { font-size: 11px; }
  .workspace-heading__actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .document-status { flex-direction: row; justify-content: space-between; }
  .workspace-buttons { width: 100%; }
  .workspace-buttons .button { flex: 1; min-height: 46px; }
  .workspace-buttons .button:last-child { flex: 1.4; }
  .workspace-tabs { flex-wrap: wrap; }
  .workspace-tab { flex: 0 1 auto; justify-content: center; padding: 12px 10px; font-size: 10px; gap: 6px; min-height: 53px; white-space: nowrap; }
  .workspace-tab .icon { width: 15px; height: 15px; }
  .workspace-tab .tab-count { font-size: 8px; padding-inline: 4px; }
  .items-heading { flex-direction: column; align-items: stretch; gap: 17px; }
  .items-heading .button { align-self: flex-start; font-size: 12px; }
  .admin-list-toolbar { padding: 13px; gap: 11px; }
  .admin-list-toolbar .search-field, .admin-list-toolbar .category-field { width: 100%; flex-basis: 100%; }
  .admin-list-toolbar .search-field input, .admin-list-toolbar select { font-size: 14px; }
  .order-help { font-size: 9px; }
  .admin-item { padding: 17px; grid-template-columns: 49px minmax(0, 1fr); gap: 13px; }
  .admin-item__thumb { grid-row: 1; width: 49px; height: 49px; }
  .admin-item__thumb .icon { width: 23px; height: 23px; }
  .admin-item__content h3 { font-size: 17px; }
  .admin-item__meta { gap: 6px; margin-top: 8px; }
  .admin-item__description { display: none; }
  .admin-item__price { grid-column: 2; text-align: left; max-width: none; }
  .admin-item__price .price__line { justify-content: flex-start; }
  .admin-item__price .price__amount { font-size: 18px; }
  .admin-item__price .price__amount--quote { font-size: 12px; }
  .admin-item__actions { gap: 7px; justify-content: flex-start; padding-top: 13px; }
  .admin-item__order { flex-basis: 100%; }
  .admin-item__move { margin-right: auto; }
  .admin-item__move .icon-button { min-width: 40px; min-height: 40px; }
  .admin-item__actions > .button { min-height: 40px; font-size: 10px; padding-inline: 11px; }
  .admin-item__actions > .admin-item__publish { flex-basis: 100%; justify-content: flex-start; min-height: 36px; }
  .admin-empty { padding: 31px 23px; }
  .admin-empty h3 { font-size: 24px; }
  .admin-empty p { font-size: 11px; }
  .settings-card { padding: 22px 20px; }
  .settings-card__heading { align-items: flex-start; gap: 12px; padding-bottom: 21px; margin-bottom: 22px; }
  .settings-card__heading > span { width: 34px; height: 34px; border-radius: 9px; }
  .settings-card__heading h3 { font-size: 16px; }
  .settings-card__heading p { margin-top: 5px; line-height: 1.8; }
  .form-grid { grid-template-columns: 1fr; gap: 19px; }
  .field--full { grid-column: 1; }
  .field input:not([type="checkbox"]):not([type="file"]), .field textarea, .field select { font-size: 16px; }
  .field label { font-size: 11px; gap: 10px; }
  .field label > span { font-size: 9px; }
  .settings-footer { flex-direction: column; align-items: stretch; gap: 16px; }
  .settings-footer .button { width: 100%; }
  .draft-bar { bottom: 10px; padding: 14px; gap: 11px; flex-direction: column; align-items: stretch; }
  .draft-bar p > span { font-size: 9px; }
  .draft-bar .button { width: 100%; min-height: 44px; font-size: 11px; }
  .admin-footer { align-items: flex-start; flex-direction: column; gap: 6px; font-size: 9px; }
  .editor-dialog { border-radius: 14px; width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .editor-header { padding: 19px 20px; gap: 15px; }
  .editor-header h2 { font-size: 25px; }
  .editor-header p:not(.eyebrow) { font-size: 9px; }
  .editor-header .eyebrow { font-size: 8px; }
  .editor-header > .icon-button { min-width: 40px; min-height: 40px; padding: 9px; }
  .editor-header > .icon-button .icon { width: 19px; height: 19px; }
  .editor-body { padding: 23px 20px 5px; }
  .editor-section { margin-bottom: 24px; padding-bottom: 24px; }
  .image-editor { grid-template-columns: 1fr; gap: 21px; }
  .editor-preview { height: 175px; min-height: 175px; }
  .publish-options { grid-template-columns: 1fr; gap: 13px; margin-top: 24px; }
  .check-card { padding: 15px; }
  .check-card small { font-size: 10px; }
  .editor-footer { padding: 15px 20px; flex-direction: column; align-items: stretch; gap: 11px; }
  .editor-footer > p { max-width: none; font-size: 8px; }
  .editor-footer > div { gap: 9px; }
  .editor-footer .button { flex: 1; padding-inline: 13px; font-size: 11px; min-height: 45px; }
  .confirm-dialog { padding: 27px 24px; }
  .confirm-dialog h2 { font-size: 25px; }
  .confirm-actions .button { flex: 1; padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #session-loading .access-symbol .icon { animation: none; }
}
@media print {
  .admin-header__actions, .workspace-buttons, .workspace-tabs, .admin-list-toolbar, .admin-item__actions, .draft-bar, .editor-dialog, .confirm-dialog, .consultation-dialog { display: none !important; }
  .admin-body { background: #fff; }
  .admin-item { break-inside: avoid; }
}

/* ---- Consultas (solicitudes de clientes) ---- */
.consultations-panel { padding-top: 4px; }
.consultations-list { display: grid; gap: 14px; margin-top: 22px; }
.consultations-empty { font-size: 13px; color: #5c728a; line-height: 1.7; }
.consultation-row { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid #d4e0ec; border-radius: 13px; background: #fff; }
.consultation-row__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.consultation-row__head h3 { font-size: 16px; letter-spacing: -.015em; }
.consultation-row__meta { font-size: 12px; color: #5c728a; }
.consultation-row .button { align-self: flex-start; }
.consultation-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 10px; font-weight: 650; }
.consultation-status--enviada { background: #eaf1ff; color: var(--blue); }
.consultation-status--propuesta { background: #fff8e8; color: #8a6716; }
.consultation-status--aprobada { background: #e8f6ee; color: #237247; }
.consultation-status--rechazada, .consultation-status--cerrada { background: #fff0f0; color: #8e2532; }
.consultation-dialog { position: fixed; border: 1px solid #b3c5da; border-radius: 20px; padding: 0; width: min(760px, calc(100% - 40px)); max-height: calc(100dvh - 40px); color: var(--ink); background: #fff; box-shadow: 0 35px 120px #0005; overflow: hidden; }
.consultation-dialog::backdrop { background: rgb(5 17 35 / 78%); backdrop-filter: blur(5px); }
.consultation-shell { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
.consultation-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); }
.consultation-head h2 { font-size: 25px; letter-spacing: -.03em; line-height: 1.2; margin-top: 8px; }
.consultation-client { font-size: 12px; color: var(--muted); margin-top: 8px; }
.consultation-head .icon-button { flex-shrink: 0; }
.consultation-body { padding: 20px 28px 26px; overflow-y: auto; display: grid; gap: 18px; }
.consultation-statusbar { display: flex; }
.consultation-block { border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; }
.consultation-block__title { font-size: 13px; font-weight: 700; color: var(--ink-soft); letter-spacing: -.01em; margin-bottom: 12px; }
.consultation-kv { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-top: 1px dashed #edf1f5; }
.consultation-kv__label { font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
.consultation-kv__value { font-size: 13px; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.consultation-proposal__amount { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--blue); }
.consultation-proposal__text { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin-top: 8px; white-space: pre-wrap; }
.consultation-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
.consultation-proposal-form { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin-top: 12px; }
.consultation-proposal-form .consult-input:first-child { grid-column: 1; }
.consultation-proposal-form textarea { grid-column: 1 / -1; }
.consultation-proposal-form .button { grid-column: 1 / -1; justify-self: start; }
.consultation-thread { display: grid; gap: 10px; max-height: 300px; overflow-y: auto; }
.consultation-message { max-width: 85%; padding: 11px 13px; border-radius: 12px; font-size: 13px; }
.consultation-message--admin { justify-self: flex-start; background: #eef2f8; }
.consultation-message--client { justify-self: flex-end; background: #eaf1ff; }
.consultation-message__meta { display: block; font-size: 10px; font-weight: 650; color: var(--muted); margin-bottom: 3px; }
.consultation-message__text { line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.consultation-message__time { display: block; font-size: 9px; color: #98a7b8; margin-top: 5px; }
.consultation-compose { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.consultation-compose .consult-input { flex: 1; min-height: 46px; padding: 10px 12px; border: 1px solid #ccd8e5; border-radius: 9px; font-size: 13px; resize: vertical; }
.consultation-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .consultation-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .consultation-shell { max-height: calc(100dvh - 24px); }
  .consultation-kv { grid-template-columns: 1fr; gap: 3px; }
  .consultation-proposal-form { grid-template-columns: 1fr; }
}
