/* =========================================================
   Tampilan aplikasi (admin TU)
   ========================================================= */
:root {
  --brand: #0f766e;
  --brand-dark: color-mix(in srgb, var(--brand) 75%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --bg: #f4f6f8;
  --card: #fff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e9ef;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; font-size: 14px; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
code { background: #eef2f6; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.ico { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; }
.nowrap { white-space: nowrap; }

/* ---------- Kerangka ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 258px; flex: none; background: #0b1220; color: #cbd5e1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.brand strong { display: block; color: #fff; font-size: 15px; }
.brand small { display: block; font-size: 12px; opacity: .65; line-height: 1.3; }
.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 11px; color: #cbd5e1; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.nav a.active { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 6px 16px -6px var(--brand); }
.sidebar-foot { padding: 14px 18px; font-size: 12px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.06); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: rgba(244,246,248,.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 19px; font-weight: 700; flex: 1; }
.user-menu { display: flex; align-items: center; gap: 6px; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 5px 10px 5px 5px; border-radius: 30px; }
.user-chip:hover { background: #fff; text-decoration: none; }
.user-chip span:last-child { line-height: 1.2; font-weight: 600; font-size: 13px; }
.user-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: #fff; }
.content { padding: 24px 28px 48px; max-width: 1320px; width: 100%; }
.only-mobile { display: none; }
.backdrop { display: none; }

/* ---------- Komponen ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 0; }
.card.narrow { max-width: 720px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.split { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-title { font-size: 15px; margin: 26px 0 12px; color: #334155; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: #334155; display: flex; justify-content: space-between; gap: 6px; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid #d5dbe3; background: #fff; border-radius: 10px; padding: 9px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type=file] { padding: 7px; background: #f8fafc; }
input[type=color] { height: 42px; padding: 4px; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input:disabled { background: #f1f5f9; color: var(--muted); }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: 12px; padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: 13.5px; padding: 9px 15px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f8fafc; border-color: #d5dbe3; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-danger-ghost { background: #fff; color: var(--danger); border-color: #fde2e2; }
.btn-danger-ghost:hover { background: #fef2f2; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; padding: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.form-actions.sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 6px; }
form.inline { display: inline; }

.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.badge { background: #eef2f6; color: #475569; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }
.pill { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 6px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark); margin: 2px; text-decoration: none !important; line-height: 1.35; }
.chip-alt { background: #fef3c7; color: #92400e; }
.chip-ok { background: #dcfce7; color: #166534; }
.chip-off { background: #f1f5f9; color: #64748b; }
.chip-rest { background: #fef08a; color: #713f12; }
a.chip:hover { filter: brightness(.95); }

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: #fafcfd; }
.table tr.highlight td { background: #fffbeb; }
.table .num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: 2px; }
.table .empty { text-align: center; color: var(--muted); padding: 36px 10px; }
.w-check { width: 36px; }
.person { display: flex; align-items: center; gap: 10px; }
.matrix th, .matrix td { padding: 8px 6px; }
.matrix .date-cell { background: #fafbfc; white-space: nowrap; border-right: 1px solid var(--line); }
.legend { display: flex; gap: 6px; margin-top: 12px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; }
.search { position: relative; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 34px; width: 260px; }
.bulk-bar { display: flex; gap: 8px; align-items: center; }
.bulk-bar select { width: auto; padding: 6px 10px; font-size: 13px; }
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a { min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .dots { padding: 6px; color: var(--muted); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #fff; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.tabs a { padding: 6px 12px; border-radius: 8px; color: #475569; font-weight: 600; font-size: 13px; }
.tabs a:hover { background: #f1f5f9; text-decoration: none; }
.tabs a.active { background: var(--brand); color: #fff; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.check-box { position: relative; cursor: pointer; }
.check-box input { position: absolute; opacity: 0; }
.check-box span { display: block; text-align: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 9px; font-weight: 600; font-size: 13px; background: #fff; }
.check-box input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.check-box input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }

.upload-row { display: flex; align-items: center; gap: 12px; }
.thumb { width: 62px; height: 62px; border-radius: 12px; border: 1px dashed #cbd5e1; display: grid; place-items: center; background: #f8fafc; color: var(--muted); flex: none; overflow: hidden; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.swatches { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.swatch { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.photo-edit { display: flex; gap: 16px; align-items: center; }
.photo-box { width: 90px; height: 116px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-size: 26px; font-weight: 700; overflow: hidden; flex: none; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Dialog ---------- */
.dialog { border: 0; border-radius: 18px; padding: 24px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(15,23,42,.3); }
.dialog::backdrop { background: rgba(15,23,42,.45); backdrop-filter: blur(2px); }
.dialog h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }

/* ---------- Beranda ---------- */
.hero-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 90% -20%, rgba(255,255,255,.22) 0 120px, transparent 121px), radial-gradient(circle at 75% 140%, rgba(255,255,255,.12) 0 90px, transparent 91px), linear-gradient(120deg, var(--brand), var(--brand-dark)); box-shadow: 0 14px 30px -16px var(--brand); flex-wrap: wrap; }
.hero-banner h2 { font-size: 24px; margin: 4px 0; }
.hero-banner p { margin: 0; opacity: .9; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.stat > span { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); }
.stat b { font-size: 22px; display: block; line-height: 1.1; }
.stat small { color: var(--muted); }
.checklist { margin-top: 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; }
.checklist a { color: #92400e; font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); text-decoration: none; border-color: color-mix(in srgb, var(--brand) 40%, #fff); box-shadow: 0 12px 24px -14px rgba(15,23,42,.3); }
.tile-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.tile small { color: var(--muted); }

/* ---------- Cetak ---------- */
.model-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); gap: 16px; }
.art-klasik { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 12px 6px 1fr 12px; grid-auto-flow: column; gap: 4px 10px; padding: 8px; }
.art-klasik i { border-radius: 3px; background: #e2e8f0; }
.art-klasik .k-kop { background: transparent; border-bottom: 3px double var(--brand); border-radius: 0; }
.art-klasik .k-tab { background: repeating-linear-gradient(#94a3b8 0 1px, #fff 1px 8px); border: 1px solid #94a3b8; border-radius: 0; }
.art-klasik .k-foot { background: linear-gradient(90deg, #e2e8f0 0 55%, transparent 55% 70%, #e2e8f0 70%); }
.model { position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.model input { position: absolute; top: 14px; right: 14px; }
.model:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.model small { color: var(--muted); }
.model-art { height: 110px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; position: relative; overflow: hidden; }
.art-lengkap .a-head { position: absolute; left: 8px; right: 8px; top: 8px; height: 22px; border-radius: 6px; background: var(--brand); }
.art-lengkap .a-side { position: absolute; left: 8px; top: 36px; bottom: 8px; width: 34%; border-radius: 6px; background: var(--brand-soft); }
.art-lengkap .a-table { position: absolute; right: 8px; top: 36px; bottom: 8px; width: calc(66% - 22px); border-radius: 6px; background: repeating-linear-gradient(#e2e8f0 0 1px, #fff 1px 10px); border: 1px solid #e2e8f0; }
.art-ringkas { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 7px; }
.art-ringkas i { border-radius: 4px; background: linear-gradient(var(--brand) 0 35%, var(--brand-soft) 35%); }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; border: 2px solid var(--line); border-radius: 10px; padding: 8px; font-weight: 700; }
.seg small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.tips { background: #f8fafc; }
.tips h3 { font-size: 15px; margin-bottom: 6px; }
.tips ol { margin: 0; padding-left: 20px; color: #334155; }
.tips li { margin: 4px 0; }

/* ---------- Login ---------- */
.login-page { background: #0b1220; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { padding: 60px; color: #e2e8f0; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 55%), radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 50%); }
.login-hero h2 { font-size: 34px; max-width: 460px; margin: 34px 0 10px; color: #fff; }
.login-hero p { max-width: 440px; opacity: .75; margin: 0; }
.hero-card { width: 340px; background: #fff; border-radius: 16px; overflow: hidden; transform: rotate(-4deg); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.hero-card-head { background: linear-gradient(115deg, var(--brand), var(--brand-dark)); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .14em; font-weight: 700; border-bottom: 4px solid #f59e0b; }
.hero-card-head b { font-size: 18px; letter-spacing: .02em; }
.hero-card-body { display: flex; gap: 14px; padding: 16px 18px 8px; }
.hero-photo { width: 64px; height: 80px; border-radius: 8px; background: var(--brand-soft); }
.hero-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.hero-lines i, .hero-rows i { display: block; height: 10px; border-radius: 5px; background: #e2e8f0; }
.hero-lines i:first-child { background: var(--brand); width: 70%; height: 14px; }
.hero-lines .short { width: 50%; }
.hero-rows { padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 7px; }
.login-form { background: #fff; padding: 60px clamp(24px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.login-form form { display: flex; flex-direction: column; gap: 14px; }
.login-form h1 { font-size: 28px; }
.login-form p { margin: 0; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.login-brand img { width: 48px; height: 48px; object-fit: contain; }
.login-brand strong { display: block; }
.login-brand small { color: var(--muted); }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .model-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 25; }
  .only-mobile { display: grid; }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 10px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .search input { width: 100%; }
  .model-pick { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- Data Sekolah: kop, tanda tangan, warna ---------- */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; position: sticky; top: 67px; z-index: 5; background: var(--bg); padding: 6px 0; }
.subnav a { padding: 6px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: #334155; font-weight: 600; font-size: 13px; }
.subnav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.card[id] { scroll-margin-top: 130px; }
.seg-wide { margin-bottom: 14px; }
.seg-wide span { text-align: left; padding: 10px 14px; }
.kop-upload { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.kop-preview { min-height: 90px; border: 1px dashed #cbd5e1; border-radius: 12px; display: grid; place-items: center; background: #fff; padding: 8px; color: var(--muted); }
.kop-preview img { max-width: 100%; max-height: 160px; }
.kop-preview span { display: flex; gap: 8px; align-items: center; }
.sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.sign-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sign-box h4 { margin: 0; font-size: 14px; }
.sign-preview { height: 120px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; color: var(--muted); }
.sign-preview img { max-width: 90%; max-height: 105px; }
.sign-preview em { position: absolute; right: 8px; bottom: 6px; font-size: 11px; background: #fef3c7; color: #92400e; padding: 1px 7px; border-radius: 6px; font-style: normal; font-weight: 600; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f5f9 75%), linear-gradient(-45deg, transparent 75%, #f1f5f9 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
input[type=range] { padding: 0; border: 0; accent-color: var(--brand); box-shadow: none; }
.color-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.color-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.color-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 6px 6px; cursor: pointer; }
.color-field input { width: 40px; height: 34px; padding: 2px; flex: none; border-radius: 8px; }
.color-field span { font-size: 13px; font-weight: 600; line-height: 1.2; }
.color-field small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 5px 11px 5px 6px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.preset:hover { border-color: var(--brand); }
.preset i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.preset i:last-of-type { margin-right: 5px; }
.preview-pane { position: sticky; top: 130px; }
.preview-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: #334155; margin-bottom: 6px; }
#card-preview { width: 100%; height: 430px; border: 1px solid var(--line); border-radius: 12px; background: #e9edf1; }
.dialog-wide { width: min(760px, calc(100vw - 24px)); }
#sign-pad { width: 100%; aspect-ratio: 900 / 320; border: 2px dashed #cbd5e1; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; margin: 10px 0; }
.pad-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; }
.pad-tools label { display: flex; align-items: center; gap: 8px; }
.pad-tools input[type=color] { width: 40px; height: 32px; padding: 2px; }
@media (max-width: 1100px) {
  .color-layout, .kop-upload { grid-template-columns: 1fr; }
  .preview-pane { position: static; }
}
@media (max-width: 860px) {
  .sign-grid, .color-grid { grid-template-columns: 1fr; }
  .subnav { top: 58px; }
}
.intro-edit { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, var(--brand-soft), #fff 60%); }
.intro-edit h3 { display: flex; gap: 8px; align-items: center; font-size: 16px; margin-bottom: 4px; }
.intro-edit p { margin: 0; max-width: 640px; }
.intro-edit select { width: auto; }
.col-editor { display: grid; gap: 6px; }
.col-editor label { display: flex; align-items: center; gap: 10px; }
.col-editor input[type=text], .col-editor input:not([type]) { flex: 1; }
