:root { --ink: #14251f; --muted: #617269; --paper: #fbf8ee; --panel: #fffdf7; --line: #d9d3c4; --moss: #1f5d47; --moss-dark: #124331; --sand: #eee4cd; --danger: #9d3333; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 8% 12%, #d8e5ce 0 9%, transparent 28%), radial-gradient(circle at 92% 8%, #eee1c3 0 10%, transparent 30%), var(--paper); font-family: "Aptos", "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1500px; margin: 0 auto; padding: 52px 30px; }
.auth-panel { max-width: 620px; margin: 10vh auto; padding: 46px; background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--line); box-shadow: 12px 12px 0 var(--sand); }
.eyebrow { margin: 0 0 8px; color: var(--moss); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 600; letter-spacing: -.045em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: .98; }
h2 { font-size: 2rem; }
.auth-copy { max-width: 44ch; margin: 26px 0; color: var(--muted); line-height: 1.55; }
.login-form label, .form-grid label, .detail-field { display: grid; gap: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.login-row { display: flex; gap: 10px; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: #fffefb; color: var(--ink); padding: 10px 11px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #85b5a0; outline-offset: 1px; }
.login-row button, .primary-button { border: 0; border-radius: 4px; padding: 10px 15px; background: var(--moss); color: #fff; font-weight: 700; }
.login-row button:hover, .primary-button:hover { background: var(--moss-dark); }
.form-message { min-height: 1.2em; margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 30px; }
.masthead h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.account { display: flex; gap: 13px; align-items: center; color: var(--muted); font-size: .9rem; }
.controls { display: grid; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.presets, .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.preset, .quiet-button { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; background: transparent; color: var(--ink); font-size: .82rem; }
.preset.is-active { border-color: var(--moss); background: var(--moss); color: #fff; }
.filters { justify-content: flex-end; }
.search-field { flex: 1 1 210px; max-width: 330px; }
.filters select { width: auto; min-width: 135px; padding: 8px 10px; font-size: .85rem; }
.table-card { margin-top: 25px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: 7px 7px 0 rgba(213, 201, 169, .38); }
.table-heading { display: flex; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.table-heading p { margin: 0; }
.hint { text-align: right; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 1060px; border-collapse: collapse; }
th { padding: 0; text-align: left; background: #f5f0e2; border-bottom: 1px solid var(--line); }
th button { width: 100%; border: 0; padding: 12px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
th button:hover { color: var(--moss); }
td { border-bottom: 1px solid #e9e3d6; padding: 7px; vertical-align: middle; }
tbody tr:not(.details-row):hover { background: #fcfaef; }
.cell-input, .cell-select { border-color: transparent; padding: 7px; background: transparent; }
td:first-child { min-width: 300px; width: 31%; }
td:first-child .title-input { min-height: 48px; line-height: 1.35; overflow: hidden; resize: vertical; white-space: normal; }
.cell-input:hover, .cell-select:hover, .cell-input:focus, .cell-select:focus { border-color: var(--line); background: #fff; }
.apply-link { display: block; color: var(--moss); font-size: .83rem; font-weight: 700; text-decoration: none; }
.apply-url { margin-top: 5px; border-color: transparent; padding: 5px 2px; color: var(--muted); font-size: .72rem; }
.apply-url:focus { border-color: var(--line); padding-left: 6px; }
.status-select { color: var(--moss-dark); font-weight: 700; }
.details-toggle, .icon-button { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--moss); font-size: 1.2rem; line-height: 1; }
.details-row td { padding: 0; background: #f8f5e9; }
.details-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 13px; padding: 17px; }
.detail-field input { font-size: .88rem; font-weight: 400; letter-spacing: normal; text-transform: none; }
.empty-state { padding: 46px; color: var(--muted); text-align: center; }
dialog { width: min(790px, calc(100vw - 32px)); border: 1px solid var(--line); background: var(--panel); color: var(--ink); box-shadow: 12px 12px 0 var(--sand); }
dialog::backdrop { background: rgba(20, 37, 31, .4); backdrop-filter: blur(2px); }
dialog form { padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { font-size: .72rem; }
.form-grid input, .form-grid select { font-weight: 400; letter-spacing: normal; text-transform: none; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
#toast { position: fixed; right: 25px; bottom: 25px; z-index: 5; transform: translateY(16px); opacity: 0; padding: 12px 15px; border-radius: 4px; background: var(--ink); color: #fff; transition: .2s ease; }
#toast[data-type="error"] { background: var(--danger); }
#toast.is-visible { transform: translateY(0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 760px) { .shell { padding: 25px 14px; } .auth-panel { margin: 5vh auto; padding: 28px; } .masthead, .table-heading { align-items: flex-start; flex-direction: column; } .filters { justify-content: flex-start; } .hint { text-align: left; } .details-grid, .form-grid { grid-template-columns: 1fr; } .account { align-items: flex-start; flex-direction: column; } }
