:root {
  color-scheme: light;
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  background: #f5f5f3;
  color: #151515;
  --black: #151515;
  --white: #fff;
  --gold: #9a7418;
  --gold-soft: #efe4bd;
  --line: #deded8;
  --surface: #fff;
  --surface-muted: #f5f5f3;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button:focus-visible, a:focus-visible { outline: 3px solid #d7bd70; outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: #fff; color: #111; padding: 12px 16px; border: 2px solid #111; }
.skip-link:focus { top: 12px; }
.page { width: min(100% - 32px, 520px); margin: 0 auto; padding: 48px 0; }
.brand { margin-bottom: 32px; letter-spacing: .08em; }
.brand strong { display: block; font-size: 1.5rem; }
.brand span { color: #8a6a16; font-size: .82rem; font-weight: 700; }
.card { background: #fff; border: 1px solid #deded8; padding: 28px; border-radius: 12px; }
h1 { margin: 0 0 8px; font-size: 1.55rem; }
.muted { margin: 0 0 24px; color: #5f5f5f; }
.field { margin: 0 0 18px; }
label { display: block; margin-bottom: 7px; font-weight: 650; }
input { width: 100%; min-height: 48px; border: 1px solid #aaa; border-radius: 7px; padding: 10px 12px; font: inherit; }
textarea, select { width: 100%; border: 1px solid #aaa; border-radius: 7px; padding: 10px 12px; font: inherit; background: #fff; }
textarea { min-height: 92px; resize: vertical; }
select { min-height: 48px; }
input:focus, textarea:focus, select:focus { outline: 3px solid #d7bd70; outline-offset: 1px; border-color: #6f5615; }
button { width: 100%; min-height: 48px; border: 0; border-radius: 7px; background: #161616; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #312a18; }
.error { border-left: 4px solid #9c221c; background: #fff1f0; padding: 12px; margin: 0 0 20px; }
.success { border-left: 4px solid #8a6a16; background: #fff8e5; padding: 12px; margin: 0 0 20px; }
.app-body { background: var(--surface-muted); }
.admin-frame { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.admin-rail { position: sticky; top: 0; height: 100vh; padding: 30px 24px; background: var(--black); color: var(--white); }
.rail-brand { display: block; color: inherit; text-decoration: none; letter-spacing: .08em; padding: 4px 4px 34px; }
.rail-brand strong, .rail-brand span, .rail-brand small { display: block; }
.rail-brand strong { color: #c9a84b; font-size: 1.7rem; }
.rail-brand span { font-weight: 700; }
.rail-brand small { margin-top: 5px; color: #bcbcb7; font-size: .67rem; }
.rail-nav { display: grid; gap: 4px; }
.rail-nav a { padding: 13px 12px; border-radius: 6px; color: #e8e8e5; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.rail-nav a:hover { background: #292929; color: #e1c36f; }
.main-content { width: min(100%, 1220px); padding: 42px 46px 70px; }
.narrow-content { max-width: 900px; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.app-topbar h1 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.account-actions { display: flex; align-items: center; gap: 14px; font-size: .86rem; }
.account-actions form { margin: 0; }
.button-secondary, .text-button { width: auto; min-height: 40px; padding: 0 16px; background: #fff; color: #171717; border: 1px solid #aaa; }
.button-secondary:hover, .text-button:hover { background: #f0ead7; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { min-height: 158px; display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.stat-card span { color: #686862; font-size: .74rem; font-weight: 750; letter-spacing: .08em; }
.stat-card strong { margin: auto 0 2px; font-size: 2rem; }
.stat-card small { color: #777; }
.welcome-card { margin-top: 18px; }
.welcome-card h2, .empty-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.artist-body { padding-bottom: 82px; }
.artist-header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(18px, calc((100vw - 760px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.artist-brand { text-decoration: none; letter-spacing: .08em; }
.artist-brand strong { color: var(--gold); margin-right: 6px; }
.artist-brand span { font-weight: 750; font-size: .84rem; }
.artist-header form { margin: 0; }
.text-button { border: 0; padding: 0 8px; font-size: .8rem; }
.artist-main { width: min(100% - 32px, 760px); margin: 0 auto; padding: 44px 0 36px; }
.artist-hero { padding: 12px 2px 26px; }
.artist-hero h1 { margin: 0 0 15px; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.22; }
.artist-hero > p:last-child { color: #62625d; }
.artist-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.artist-summary article { min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 10px; background: var(--black); color: var(--white); }
.artist-summary span { color: #d3d3ce; font-size: .82rem; }
.artist-summary strong { color: #d6b653; font-size: 2rem; }
.empty-card { min-height: 170px; }
.artist-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 70px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #d8d8d2; box-shadow: 0 -4px 16px rgb(0 0 0 / .05); }
.artist-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 70px; color: #555; text-decoration: none; }
.artist-nav span { font-size: 1.1rem; line-height: 1; }
.artist-nav strong { font-size: .62rem; letter-spacing: .05em; }
.artist-nav a:hover { color: var(--gold); background: #fffaf0; }
.header-buttons, .form-actions { display: flex; align-items: center; gap: 10px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 7px; background: var(--black); color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; }
.button-link:hover { background: #312a18; }
.button-link.secondary { background: #fff; color: #171717; border: 1px solid #aaa; }
.button-link.secondary:hover { background: #f0ead7; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-heading h2, .admin-form h2, .management-stack h2, .group-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.section-heading p, .heading-meta { margin: 0; color: #686862; font-size: .85rem; }
.table-card { padding: 0; overflow: hidden; }
.table-card .section-heading { padding: 24px 26px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 15px 18px; border-top: 1px solid #e5e5df; text-align: left; vertical-align: middle; }
th { background: #fafaf8; color: #686862; font-size: .72rem; letter-spacing: .05em; }
.row-link { font-weight: 750; }
.status-pill { display: inline-block; padding: 5px 9px; border-radius: 99px; background: #f0f0ed; font-size: .72rem; font-weight: 750; }
.status-pill.active { background: #edf5ec; color: #276028; }
.status-pill.inactive { background: #f4eceb; color: #812b25; }
.empty-state { padding: 50px 28px; text-align: center; }
.empty-state p { color: #686862; }
.admin-form > h2 { margin-bottom: 20px; }
.admin-form small, .field small { display: block; margin-top: 6px; color: #686862; line-height: 1.4; }
fieldset { margin: 0 0 22px; padding: 0; border: 0; }
legend { margin-bottom: 9px; font-weight: 650; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-card { display: flex; align-items: center; gap: 10px; min-height: 58px; margin: 0; padding: 10px 12px; border: 1px solid #d4d4ce; border-radius: 7px; cursor: pointer; }
.check-card:has(input:checked) { border-color: var(--gold); background: #fff9e8; }
.check-card input { width: 20px; min-height: 20px; margin: 0; accent-color: var(--gold); }
.check-card span, .check-card strong, .check-card small { display: block; }
.check-card strong { font-size: .87rem; }
.check-card small { margin-top: 2px; font-size: .67rem; }
.form-actions { justify-content: flex-end; margin-top: 28px; }
.form-actions button { width: auto; padding: 0 22px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .8fr); gap: 18px; align-items: start; }
.management-stack { display: grid; gap: 18px; }
.button-danger { background: #8a241e; }
.button-danger:hover { background: #661b17; }
.groups-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.sticky-form { position: sticky; top: 22px; }
.group-list { display: grid; gap: 14px; }
.group-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.group-card-heading span { color: #686862; font-size: .8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label, .option-list label { display: flex; align-items: center; gap: 8px; min-height: 46px; margin: 0; padding: 9px 13px; border: 1px solid #d4d4ce; border-radius: 7px; cursor: pointer; }
.radio-row input, .option-list input { width: 19px; min-height: 19px; margin: 0; accent-color: var(--gold); }
.target-panel[hidden] { display: none; }
.scroll-checks { max-height: 280px; overflow-y: auto; padding: 3px; }
.notice-editor { min-height: 320px; line-height: 1.7; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-admin-list, .artist-notice-list { display: grid; gap: 10px; }
.notice-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: inherit; text-decoration: none; }
.notice-admin-row:hover, .artist-notice-row:hover { border-color: #b79537; }
.notice-admin-row h2, .artist-notice-row h2 { margin: 8px 0 5px; font-size: 1.08rem; }
.notice-admin-row p, .artist-notice-row p { margin: 0; color: #686862; font-size: .8rem; }
.notice-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.notice-tags span { padding: 4px 7px; border-radius: 4px; background: #eeeeea; color: #5d5d58; font-size: .67rem; font-weight: 750; }
.notice-tags .gold-tag { background: #f4e5b6; color: #654b0e; }
.notice-tags .unread-tag { background: #171717; color: #fff; }
.section-block { margin-top: 18px; }
.section-block > h2, .notice-files h2 { margin: 0 0 16px; font-size: 1.05rem; }
.file-list { display: grid; gap: 7px; }
.file-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 13px; border: 1px solid #ddd; border-radius: 7px; text-decoration: none; }
.file-list a:hover { background: #fff9e8; border-color: #b79537; }
.file-list span { color: #686862; font-size: .76rem; white-space: nowrap; }
.inline-action-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 22px 26px; background: #1a1a1a; color: #fff; border-radius: 10px; }
.inline-action-card p { margin: 4px 0 0; color: #c9c9c3; }
.inline-action-card button { width: auto; padding: 0 20px; background: #c5a145; color: #171717; }
.result-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px; }
.result-grid div { padding: 15px; background: #f5f5f2; border-radius: 7px; }
.result-grid span, .result-grid strong { display: block; }
.result-grid span { color: #686862; font-size: .72rem; }
.result-grid strong { margin-top: 7px; font-size: 1.5rem; }
.archive-action { margin-top: 28px; text-align: right; }
.archive-action button { width: auto; padding: 0 18px; }
.artist-page-heading { margin-bottom: 22px; }
.artist-page-heading h1 { font-size: 2rem; }
.artist-notice-row { display: block; color: inherit; text-decoration: none; }
.text-link { font-size: .82rem; font-weight: 700; }
.artist-notice-detail { padding: clamp(24px, 6vw, 42px); }
.artist-notice-detail h1 { margin: 14px 0 7px; font-size: clamp(1.55rem, 6vw, 2.2rem); line-height: 1.35; }
.notice-body { margin-top: 30px; padding-top: 28px; border-top: 1px solid #deded8; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85; }
.notice-files { margin-top: 34px; }
.confirm-form { position: sticky; bottom: 86px; margin-top: 14px; padding: 12px; background: rgb(245 245 243 / .94); backdrop-filter: blur(8px); }
.confirmed-box { margin-top: 14px; padding: 16px; border: 1px solid #bea04a; border-radius: 8px; background: #fff8e4; text-align: center; font-weight: 750; }
.profile-card dl { margin: 0; }
.profile-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid #e5e5df; }
.profile-card dl div:last-child { border-bottom: 0; }
.profile-card dt { color: #686862; }
.profile-card dd { margin: 0; font-weight: 700; }
.push-card { margin-top: 14px; }
.push-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.push-actions { display: flex; gap: 8px; }
.push-actions button { width: auto; padding: 0 18px; }
.passkey-card { margin-top: 14px; }
.passkey-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.passkey-card > button { width: auto; padding: 0 18px; }
.passkey-status { min-height: 22px; color: #654b0e; font-size: .8rem; }
.passkey-list { display: grid; gap: 8px; margin-top: 18px; }
.passkey-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #deded8; border-radius: 7px; }
.passkey-list span, .passkey-list strong, .passkey-list small { display: block; }
.passkey-list small { margin-top: 4px; color: #686862; }
.passkey-list button { min-height: 40px; padding: 0 8px; color: #812b25; }
.passkey-empty { margin-bottom: 0; }
.template-list { display: grid; gap: 10px; }
.template-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: inherit; text-decoration: none; }
.template-row:hover { border-color: #b79537; }
.template-row h2 { margin: 10px 0 5px; font-size: 1.12rem; }
.template-row p { margin: 0; color: #686862; }
.contract-editor { min-height: 440px; line-height: 1.75; }
.variable-guide { margin: -4px 0 24px; padding: 16px; border: 1px solid #deded8; border-radius: 8px; background: #fafaf7; }
.variable-guide > strong { display: block; margin-bottom: 10px; }
.variable-guide > div { display: grid; grid-template-columns: max-content 1fr; gap: 7px 14px; align-items: center; }
.variable-guide code { padding: 3px 6px; border-radius: 4px; background: #ece9dd; color: #624b12; }
.variable-guide span { color: #686862; font-size: .82rem; }
.preview-value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.preview-page { width: min(100% - 32px, 920px); margin: 0 auto; padding: 38px 0 70px; }
.preview-page > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.contract-paper { min-height: 900px; padding: clamp(32px, 8vw, 80px); background: #fff; border: 1px solid #d8d8d2; box-shadow: 0 8px 30px rgb(0 0 0 / .07); }
.contract-paper > h1 { margin: 0 0 44px; padding-bottom: 22px; border-bottom: 2px solid #1a1a1a; text-align: center; font-size: 1.65rem; }
.contract-body { line-height: 1.9; overflow-wrap: anywhere; }
.contract-paper footer { display: flex; flex-direction: column; gap: 5px; margin-top: 70px; padding-top: 18px; border-top: 1px solid #ddd; color: #777; font-size: .72rem; }
.contract-detail-grid { display: grid; grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr); gap: 18px; align-items: start; }
.contract-meta { position: sticky; top: 22px; }
.contract-meta dl { margin: 22px 0; }
.contract-meta dl div { padding: 12px 0; border-bottom: 1px solid #e4e4de; }
.contract-meta dt { color: #686862; font-size: .72rem; }
.contract-meta dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.contract-meta form small { display: block; margin-top: 8px; color: #686862; line-height: 1.45; }
.hash-value { font-size: .68rem; word-break: break-all; }
.locked-note { padding: 14px; border-radius: 7px; background: #edf5ec; color: #276028; }
.locked-note strong, .locked-note span { display: block; }
.locked-note span { margin-top: 4px; font-size: .74rem; }
.status-pill.contract-SENT, .status-pill.contract-OPENED { background: #fff2c8; color: #664b08; }
.status-pill.contract-ARTIST_SIGNED, .status-pill.contract-COMPANY_SIGNED { background: #e9eef9; color: #254779; }
.status-pill.contract-COMPLETED { background: #edf5ec; color: #276028; }
.status-pill.contract-CANCELED, .status-pill.contract-EXPIRED { background: #f4eceb; color: #812b25; }
button:disabled { cursor: not-allowed; opacity: .5; }
.artist-contract-list { display: grid; gap: 10px; }
.artist-contract-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: inherit; text-decoration: none; }
.artist-contract-row:hover { border-color: #b79537; }
.artist-contract-row h2 { margin: 10px 0 5px; font-size: 1.1rem; }
.artist-contract-row p { margin: 0; color: #686862; font-size: .78rem; }
.artist-contract-main { width: min(100% - 32px, 920px); margin: 0 auto; padding: 34px 0 110px; }
.artist-contract-paper { min-height: 70vh; }
.artist-contract-paper > .notice-tags { margin-bottom: 24px; }
.agreement-card { margin-top: 16px; }
.agreement-card h2 { margin: 0 0 8px; }
.agreement-list { display: grid; gap: 9px; margin: 22px 0; }
.agreement-list label { display: flex; align-items: flex-start; gap: 11px; min-height: 58px; margin: 0; padding: 15px; border: 1px solid #d4d4ce; border-radius: 8px; cursor: pointer; }
.agreement-list label:has(input:checked) { border-color: var(--gold); background: #fff9e8; }
.agreement-list input { width: 22px; min-height: 22px; margin: 0; accent-color: var(--gold); }
.agreement-list span { padding-top: 1px; line-height: 1.45; }
.identity-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #777; font-size: .75rem; }
.identity-divider::before, .identity-divider::after { content: ''; flex: 1; height: 1px; background: #deded8; }
.passkey-verify-button { width: 100%; }
.ready-sign-box { padding: 18px; border: 1px solid #bea04a; border-radius: 8px; background: #fff8e4; }
.ready-sign-box p { margin: 5px 0 0; }
.signature-form { margin-top: 22px; }
.signature-form canvas { display: block; width: 100%; height: min(36vw, 280px); min-height: 170px; margin-top: 9px; border: 2px solid #2b2b2b; border-radius: 8px; background: #fff; touch-action: none; }
.signature-status { min-height: 24px; margin: 7px 0; color: #812b25; font-size: .82rem; }
.signature-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8px; }
.signature-actions button { width: 100%; }
.contract-download { width: 100%; margin-top: 14px; }
.pdf-hash { display: block; margin-top: 10px; padding: 10px; background: #f2f2ee; border-radius: 6px; }
.backup-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.status-pill.backup-COMPLETED { background: #edf5ec; color: #276028; }
.status-pill.backup-RUNNING { background: #fff2c8; color: #664b08; }
.status-pill.backup-FAILED { background: #f4eceb; color: #812b25; }
.backup-warning, .backup-error { display: block; max-width: 300px; margin-top: 6px; line-height: 1.35; }
.backup-warning { color: #654b0e; }
.backup-error { color: #812b25; }
.backup-guide { margin-top: 18px; }
.backup-guide h2 { margin-top: 0; }
.backup-guide p { margin-bottom: 0; color: #686862; line-height: 1.65; }
.restore-lock { margin-bottom: 18px; padding: 22px 26px; border: 2px solid #8a241e; border-radius: 10px; background: #fff1ef; }
.restore-lock h2 { margin: 3px 0 8px; color: #751d18; }
.restore-lock p:last-child { margin-bottom: 0; line-height: 1.6; }
.restore-card { margin-top: 18px; }
.restore-card > h2 { margin-top: 0; }
.restore-warning { margin: 16px 0 22px; padding: 16px; border-left: 4px solid #b6871a; background: #fff8e4; }
.restore-warning p { margin: 5px 0 0; color: #66551f; line-height: 1.55; }
.restore-upload { max-width: 580px; }
.restore-upload button { width: auto; padding: 0 22px; }
.restore-inspection { margin-top: 24px; padding: 20px; border: 1px solid #bea04a; border-radius: 9px; background: #fffdf7; }
.restore-inspection h3 { margin: 0; }
.restore-inspection dl { margin: 18px 0; }
.restore-inspection dl div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #e7e0ca; }
.restore-inspection dt { color: #686862; }
.restore-inspection dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.restore-confirm { max-width: 580px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #d8c98e; }
.restore-confirm button { width: 100%; }
.restore-history { margin-top: 26px; }
.restore-history > h3 { font-size: 1rem; }
.restore-history > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #e5e5df; color: inherit; text-decoration: none; }
.status-pill.restore-INSPECTED { background: #fff2c8; color: #664b08; }
.status-pill.restore-READY { background: #f4eceb; color: #812b25; }
.status-pill.restore-APPLIED { background: #edf5ec; color: #276028; }
.status-pill.restore-FAILED, .status-pill.restore-CANCELED { background: #f4eceb; color: #812b25; }
.system-health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.system-health-grid .stat-card strong { font-size: 1.3rem; }
.system-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.system-detail h2 { margin-top: 0; }
.system-detail dl { margin: 0; }
.system-detail dl div { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid #e5e5df; }
.system-detail dl div:last-child { border-bottom: 0; }
.system-detail dt { color: #686862; }
.system-detail dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.maintenance-guide, .audit-card { margin-top: 18px; }
.maintenance-guide h2 { margin-top: 0; }
.maintenance-guide p:last-child { margin-bottom: 0; color: #686862; line-height: 1.65; }
.audit-metadata { display: block; max-width: 360px; max-height: 72px; overflow: hidden; white-space: normal; overflow-wrap: anywhere; color: #686862; font-size: .68rem; }

@media (max-width: 780px) {
  .admin-frame { display: block; }
  .admin-rail { position: static; width: 100%; height: auto; padding: 18px; }
  .rail-brand { padding: 0 4px 16px; }
  .rail-brand strong, .rail-brand span { display: inline; margin-right: 6px; }
  .rail-brand small { display: inline; }
  .rail-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-nav a { text-align: center; padding: 11px 4px; font-size: .68rem; }
  .main-content { padding: 28px 18px 55px; }
  .app-topbar { align-items: flex-start; }
  .account-actions > span { display: none; }
  .dashboard-grid, .backup-summary, .system-health-grid, .system-columns { grid-template-columns: 1fr; }
  .stat-card { min-height: 126px; }
  .detail-grid, .groups-layout, .contract-detail-grid { grid-template-columns: 1fr; }
  .contract-meta { position: static; }
  .sticky-form { position: static; }
  .header-buttons { flex-wrap: wrap; justify-content: flex-end; }
  .result-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .page { width: min(100% - 24px, 520px); padding: 28px 0; }
  .card { padding: 22px; }
  .artist-main { width: min(100% - 24px, 760px); padding-top: 30px; }
  .artist-summary { grid-template-columns: 1fr; }
  .app-topbar { flex-direction: column; }
  .header-buttons { width: 100%; justify-content: stretch; }
  .header-buttons .button-link { flex: 1; }
  .check-grid, .field-row { grid-template-columns: 1fr; }
  .form-actions .button-link, .form-actions button { flex: 1; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-action-card { align-items: stretch; flex-direction: column; }
  .inline-action-card button { width: 100%; }
  .preview-value-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
