:root { --ink:#10283d; --muted:#718397; --border:#dbe5ee; --paper:#f3f7fb; --page:#f3f7fb; --surface:#ffffff; --sidebar:#09273d; --primary:#123f60; --primary-dark:#092c47; --mint:#eaf2f0; --gold:#e2aa3e; --orange:#b97828; --orange-bg:#fbf1df; --danger:#d85245; --green:#26725c; --shadow:0 14px 36px rgba(15,43,65,.10); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(226,170,62,.36); outline-offset:2px; }
[hidden] { display:none !important; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 80% 10%,#dce9f5 0,transparent 30%),var(--paper); }
.login-panel { width:min(100%,475px); background:var(--surface); padding:42px; border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow); }
.brand-lockup,.sidebar-brand { display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.1px; font-size:17px; }
.brand-mark { display:grid; place-items:center; width:31px; height:31px; border-radius:9px; background:var(--gold); color:var(--primary-dark); font-weight:800; font-size:15px; }
.eyebrow { margin:22px 0 7px; color:var(--primary); letter-spacing:1.1px; font-size:11px; font-weight:700; }
h1 { margin:0; font-size:28px; line-height:1.28; letter-spacing:-.7px; }
h2 { margin:0; font-size:27px; line-height:1.25; letter-spacing:-.5px; }
h3 { margin:0; font-size:20px; line-height:1.3; }
.login-copy,#pageDescription { color:var(--muted); margin:9px 0 0; }
.login-form { margin-top:27px; display:grid; gap:15px; }
label { display:grid; gap:6px; color:#516679; font-size:13px; font-weight:600; }
input,select,textarea { width:100%; min-height:40px; padding:9px 11px; color:var(--ink); background:#fff; border:1px solid #ccd9e3; border-radius:8px; }
.password-field { position:relative; display:block; }
.password-field input { padding-right:65px; }
.password-toggle { position:absolute; top:50%; right:7px; min-width:48px; padding:5px 8px; transform:translateY(-50%); border:0; border-radius:6px; color:var(--primary); background:transparent; font-size:12px; font-weight:700; }
.password-toggle:hover { background:#edf3f8; }
textarea { resize:vertical; }
.button { min-height:38px; padding:8px 14px; border:1px solid #ccd9e3; border-radius:8px; color:var(--primary-dark); background:#fff; font-weight:700; }
.button.primary { color:white; border-color:var(--primary); background:var(--primary); box-shadow:0 5px 14px rgba(18,63,96,.22); }
.button.primary:hover { background:var(--primary-dark); }
.button.subtle { background:#fff; }
.button.wide { width:100%; min-height:43px; }
.demo-hint { margin:20px 0 0; color:var(--muted); font-size:12px; }
code { color:var(--primary-dark); background:#edf3f8; padding:1px 4px; border-radius:4px; }
.form-error { min-height:18px; margin:0; color:var(--danger); font-size:12px; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:254px minmax(0,1fr); }
.sidebar { position:sticky; top:0; align-self:start; display:flex; flex-direction:column; height:100vh; overflow-y:auto; overscroll-behavior:contain; color:#e9f3ef; background:var(--sidebar); padding:22px 16px; box-sizing:border-box; }
.sidebar-brand { padding:0 9px 20px; }.sidebar-brand .brand-mark { background:var(--gold); color:var(--primary-dark); }
.main-nav { display:grid; gap:5px; border-top:1px solid rgba(231,242,237,.15); padding:16px 0; }
.nav-item { display:flex; align-items:center; gap:11px; border:0; border-radius:9px; background:transparent; color:#b9cad7; padding:10px 11px; text-align:left; text-decoration:none; font-weight:650; }
.nav-item span { width:17px; text-align:center; font-size:17px; }.nav-item:hover,.nav-item.active { color:#fff; background:#2a4359; }.nav-item.active { box-shadow:inset 0 0 0 1px rgba(255,255,255,.78); }
.filter-panel { padding:14px 9px; border-top:1px solid rgba(231,242,237,.15); }.filter-title { margin:0 0 13px; color:#fff; font-size:12px; font-weight:700; letter-spacing:.55px; }
#projectSubtypeOptions { display:contents; }
fieldset { padding:0; margin:0 0 18px; border:0; } legend { margin-bottom:7px; color:#98afc0; font-size:11px; font-weight:700; }
.check-row { display:flex; align-items:center; gap:7px; color:#c5d3de; margin:7px 0; font-size:12px; font-weight:500; cursor:pointer; }.check-row input { width:14px; min-height:0; accent-color:var(--gold); }
.sidebar-footer { margin-top:auto; border-top:1px solid rgba(231,242,237,.15); padding:17px 9px 2px; color:#aec1cf; font-size:12px; }.status-dot { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#59d0a3; box-shadow:0 0 0 4px rgba(89,208,163,.12); }
.workspace { min-width:0; }.topbar { min-height:68px; display:flex; justify-content:space-between; align-items:center; gap:18px; padding:0 34px; background:var(--surface); border-bottom:1px solid var(--border); }.crumb { color:var(--muted); font-size:13px; }.top-actions { display:flex; align-items:center; gap:9px; }
.user-menu { display:flex; align-items:center; gap:7px; border:0; background:transparent; color:var(--ink); padding:0 0 0 5px; font-weight:700; }.user-menu small { color:var(--muted); font-weight:500; }.user-initial { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#dce8f2; color:var(--primary-dark); font-size:12px; }
.content { width:100%; max-width:1920px; margin:0 auto; padding:32px 34px 50px; box-sizing:border-box; }.intro { display:flex; justify-content:space-between; align-items:end; gap:24px; }.intro .eyebrow { margin:0 0 6px; }.backup-status { max-width:340px; color:var(--muted); font-size:12px; text-align:right; }
.stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; margin:25px 0 19px; }.stat-card { min-height:87px; padding:16px; border:1px solid var(--border); border-radius:11px; background:var(--surface); }.stat-label { color:var(--muted); font-size:12px; }.stat-value { margin-top:4px; color:var(--primary-dark); font-size:25px; font-weight:750; letter-spacing:-.5px; }.stat-note { color:var(--muted); font-size:11px; }
.project-stats { grid-template-columns:minmax(0,1fr) minmax(240px,1fr); }.year-filter-card { display:grid; grid-template-columns:minmax(90px,.45fr) minmax(150px,1fr); align-items:center; gap:5px 14px; }.year-filter-card label { color:var(--muted); font-size:12px; }.year-filter-card select { min-height:38px; }.year-filter-card .stat-note { grid-column:2; }
.searchbar { display:flex; align-items:center; gap:15px; margin-bottom:17px; }.search-field { position:relative; flex:1; }.search-field span { position:absolute; left:12px; top:8px; color:var(--muted); font-size:20px; font-weight:400; }.search-field input { padding-left:37px; background:var(--surface); }.search-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }.project-sort-control { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; white-space:nowrap; }.project-sort-control select { width:auto; min-width:148px; min-height:36px; padding:7px 28px 7px 9px; }.clear-filter-button { min-height:36px; padding:7px 12px; }.clear-filter-button:disabled { cursor:not-allowed; opacity:.45; }.result-count { color:var(--muted); white-space:nowrap; font-size:13px; }
.item-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.item-card { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:var(--surface); transition:transform .16s,box-shadow .16s; }.item-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.quote-table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:12px; background:var(--surface); }.quote-table { width:100%; min-width:920px; border-collapse:collapse; font-size:12px; }.quote-table th,.quote-table td { padding:10px 11px; border-bottom:1px solid var(--border); text-align:left; vertical-align:middle; }.quote-table th { position:sticky; top:0; z-index:1; color:#52697a; background:#eaf1f5; font-weight:750; white-space:nowrap; }.quote-table tbody tr:last-child td { border-bottom:0; }.quote-table tbody tr:hover { background:#f7fafc; }.quote-code { color:var(--primary-dark); font-weight:800; white-space:nowrap; }.quote-name { min-width:240px; max-width:430px; }.quote-price { color:var(--primary-dark); font-weight:750; white-space:nowrap; }.quote-sort { display:inline-flex; align-items:center; gap:6px; padding:0; color:inherit; border:0; background:transparent; font:inherit; cursor:pointer; }.quote-sort span { color:#9c6b15; font-size:14px; }.pagination { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:14px; color:var(--muted); font-size:12px; }.pagination .button { min-height:34px; padding:7px 12px; }.pagination .button:disabled { cursor:not-allowed; opacity:.45; }
.card-art { position:relative; min-height:145px; padding:12px; overflow:hidden; background:linear-gradient(145deg,#e8f0f7,#d8e5ef); }.card-art.quote { background:linear-gradient(145deg,#f5eee2,#eadbc1); }.card-art.material { background:linear-gradient(145deg,#e8f0f5,#d9e5ec); }.art-building { position:absolute; left:19%; bottom:0; width:62%; height:62%; border:3px solid #244b68; border-bottom:0; background:rgba(255,255,255,.75); }.art-building::before { content:""; position:absolute; left:-9%; top:-45px; border-left:92px solid transparent; border-right:92px solid transparent; border-bottom:54px solid #123f60; }.art-building::after { content:""; position:absolute; width:23px; height:36px; left:calc(50% - 11px); bottom:0; background:var(--gold); border:2px solid #244b68; border-bottom:0; }.card-art.material::before { content:"PDF / IMAGE"; position:absolute; inset:0; display:grid; place-items:center; color:#345f7d; font-size:19px; letter-spacing:2px; font-weight:800; }.card-art.has-image { background-size:cover; background-position:center; }.card-art.has-image.fit-contain { background-size:contain; background-repeat:no-repeat; background-color:#eef3f6; }.card-art.has-image .art-building,.card-art.has-image::before { display:none; }
.project-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--primary); background:radial-gradient(circle at 50% 20%,rgba(255,255,255,.75),transparent 58%); }.project-placeholder strong { font-size:25px; letter-spacing:1.5px; }.project-placeholder span { margin-top:3px; color:#9c6b15; font-size:13px; font-weight:700; }.project-placeholder small { margin-top:15px; color:#73879a; font-size:11px; }.card-art.quote .project-placeholder { color:#775d3f; }
.badge { display:inline-block; position:relative; z-index:1; padding:4px 8px; border-radius:999px; background:#e2f0e9; color:#17654f; font-size:11px; font-weight:750; }.badge.quote { background:var(--orange-bg); color:var(--orange); }.badge.material { background:#e5eef0; color:#346d77; }
.card-body { display:flex; flex:1; flex-direction:column; padding:14px; }.card-code { color:var(--muted); font-size:11px; letter-spacing:.35px; }.card-title { margin:4px 0 7px; font-size:16px; line-height:1.35; }.card-meta { display:flex; flex-wrap:wrap; gap:4px 10px; color:var(--muted); font-size:12px; }.card-meta span::before { content:"•"; margin-right:5px; color:#a3b1aa; }.card-description { min-height:37px; margin:11px 0 0; color:#52635b; font-size:12px; }.card-footer { display:flex; justify-content:space-between; align-items:end; gap:9px; margin-top:auto; padding-top:13px; border-top:1px solid #edf1ee; }.price-label { color:var(--muted); font-size:10px; }.price { color:var(--primary-dark); font-size:15px; font-weight:750; }.card-link { border:0; color:var(--primary); background:transparent; padding:4px 0; font-weight:750; text-decoration:none; cursor:pointer; }.tag-list { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }.tag { padding:3px 6px; color:#4a6d60; background:#edf4f0; border-radius:4px; font-size:11px; }
.project-card-compact .card-art { min-height:235px; }.project-card-compact .card-body { padding:11px 14px 12px; }.project-card-compact .card-footer { align-items:center; margin:0; padding:0; border-top:0; }.project-card-summary { min-width:0; }.project-card-compact .card-title { overflow:hidden; margin:2px 0 3px; font-size:15px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }.project-card-compact .card-meta { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.project-card-compact .card-meta span { display:block; overflow:hidden; text-overflow:ellipsis; }.project-card-compact .card-link { flex:0 0 auto; margin-left:12px; }
.empty-state { padding:65px 15px; text-align:center; color:var(--muted); }.empty-state p { margin:0 0 14px; }
.dialog { width:min(94vw,840px); max-height:88vh; padding:0; color:var(--ink); border:0; border-radius:14px; box-shadow:0 26px 80px rgba(13,39,30,.3); }.dialog::backdrop { background:rgba(17,40,32,.48); }.dialog-head { display:flex; justify-content:space-between; align-items:start; gap:15px; padding:21px 24px 16px; border-bottom:1px solid var(--border); }.dialog-head .eyebrow { margin:0 0 4px; }.icon-button { display:grid; place-items:center; width:32px; height:32px; border:0; border-radius:7px; color:#586b62; background:#edf2ef; font-size:20px; }
.detail-body { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr); min-height:335px; }.attachment-preview { padding:24px; background:#f2f6f3; }.attachment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.file-preview { display:grid; place-items:center; min-height:140px; overflow:hidden; color:#486b60; background:#e1eee8; border-radius:8px; text-decoration:none; font-size:12px; font-weight:700; }.file-preview img { width:100%; height:100%; object-fit:cover; }.file-preview.pdf { background:#e4edef; color:#426a73; }.no-files { display:grid; place-items:center; min-height:220px; color:var(--muted); border:1px dashed #c7d7cf; border-radius:8px; }.detail-info { padding:24px; }.detail-list { margin:0; }.detail-list div { display:flex; justify-content:space-between; gap:14px; padding:10px 0; border-bottom:1px solid #edf1ee; font-size:13px; }.detail-list dt { color:var(--muted); }.detail-list dd { margin:0; text-align:right; font-weight:700; }.detail-actions { display:flex; flex-wrap:wrap; gap:9px; padding-top:20px; }.danger-button { color:var(--danger); border-color:#e7c5c2; }
.attachment-section + .attachment-section { margin-top:22px; }.attachment-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }.attachment-section-head h4 { margin:0; color:var(--primary-dark); font-size:14px; }.attachment-section-head span { color:var(--muted); font-size:12px; }.no-files.compact { min-height:74px; }.detail-upload { display:grid; gap:9px; margin-top:18px; padding:14px; background:#f6f9f7; border:1px solid var(--border); border-radius:9px; }.detail-upload label { font-size:12px; }.detail-upload input,.detail-upload select { margin-top:5px; }.attachment-action { position:relative; display:inline-flex; }.attachment-action .button { padding-right:30px; }.attachment-remove { position:absolute; top:3px; right:4px; width:24px; height:24px; padding:0; color:var(--danger); border:0; border-radius:50%; background:transparent; font-size:18px; }
.record-page { max-width:1600px; margin:0 auto; }.record-nav { display:flex; gap:9px; margin-bottom:20px; }.record-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:25px 28px; color:#fff; background:linear-gradient(135deg,var(--primary-dark),#174d70); border-radius:14px 14px 0 0; }.record-hero-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; }.record-hero .eyebrow { color:#e5b34f; }.record-hero h2 { max-width:1000px; margin:7px 0 0; font-size:25px; }.record-code { color:#e5b34f; font-size:14px; font-weight:800; letter-spacing:.1em; }.record-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:24px; background:#fff; border:1px solid var(--border); border-top:0; border-radius:0 0 14px 14px; }.record-facts div { display:grid; gap:4px; min-width:0; padding:15px 18px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); }.record-facts div:nth-child(3n) { border-right:0; }.record-facts div:nth-last-child(-n+3) { border-bottom:0; }.record-facts span { color:var(--muted); font-size:11px; }.record-facts strong { overflow:hidden; text-overflow:ellipsis; color:var(--ink); font-size:13px; white-space:nowrap; }.record-folder-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }.record-folder-grid.single { grid-template-columns:minmax(320px,1fr); max-width:760px; }.record-folder { display:grid; grid-template-columns:68px 1fr auto; align-items:center; gap:18px; min-height:126px; padding:23px 25px; color:var(--ink); background:#fff; border:1px solid var(--border); border-radius:13px; box-shadow:var(--shadow); text-decoration:none; transition:.18s ease; }.record-folder:hover { transform:translateY(-2px); border-color:#9fb8c9; }.record-folder > span:last-child { color:var(--primary); font-weight:800; }.record-folder strong { display:block; margin-bottom:8px; color:var(--primary-dark); font-size:18px; }.record-folder small { color:var(--muted); }.folder-icon { display:grid; place-items:center; width:64px; height:52px; color:#bd7f13; background:#f6d98f; border-radius:6px 9px 9px 9px; font-size:0; }.folder-icon::before { content:''; width:34px; height:23px; border:3px solid currentColor; border-radius:3px; }.folder-icon.quote { color:#376f8d; background:#dcebf3; }.record-files { overflow:hidden; background:#fff; border:1px solid var(--border); border-radius:13px; }.record-section-title { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 23px; border-bottom:1px solid var(--border); }.record-section-title h3 { margin:3px 0 0; }.record-section-title > span { color:var(--muted); font-size:12px; }.record-file-wrap { overflow-x:auto; }.record-file-table { width:100%; min-width:760px; border-collapse:collapse; font-size:12px; }.record-file-table th,.record-file-table td { padding:12px 15px; border-bottom:1px solid var(--border); text-align:left; }.record-file-table th { color:#5b7180; background:#edf3f6; white-space:nowrap; }.record-file-table tbody tr:last-child td { border-bottom:0; }.record-file-table td:first-child { display:flex; align-items:center; gap:10px; min-width:300px; }.file-type-icon { display:grid; place-items:center; flex:0 0 38px; min-height:28px; padding:2px 5px; color:#fff; background:var(--primary); border-radius:5px; font-size:9px; font-weight:800; }.file-name { overflow-wrap:anywhere; }.file-actions { display:flex; gap:12px; align-items:center; white-space:nowrap; }.record-delete { padding:0; color:var(--danger); background:none; border:0; font-size:12px; }.record-empty { padding:34px; color:var(--muted); text-align:center; }.record-upload { display:grid; grid-template-columns:minmax(260px,1fr) auto; align-items:end; gap:12px; padding:15px 23px; background:#f7faf9; border-bottom:1px solid var(--border); }.record-upload label { color:var(--primary-dark); font-size:12px; font-weight:700; }.record-upload input { margin-top:6px; }.record-upload .form-error { grid-column:1/-1; margin:0; }.record-subsection + .record-subsection { margin-top:22px; border-top:8px solid var(--page); }.record-subsection > h4 { margin:0; padding:17px 23px; border-bottom:1px solid var(--border); }.record-subsection h4 small { margin-left:8px; color:var(--muted); font-weight:500; }.quote-file-group + .quote-file-group { border-top:1px solid var(--border); }.quote-group-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 23px; background:#f8fafb; }.quote-group-head strong,.quote-group-head small { display:block; }.quote-group-head small { margin-top:3px; color:var(--muted); }
.editor-dialog { width:min(94vw,680px); }.editor-form { display:grid; gap:15px; padding:22px 24px 24px; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }.upload-zone { padding:15px; color:var(--primary-dark); background:#f0f7f3; border:1px dashed #aacdbd; border-radius:9px; cursor:pointer; }.upload-zone input { min-height:auto; padding:0; border:0; border-radius:0; background:transparent; }.upload-zone span { color:var(--muted); font-size:12px; font-weight:500; }.dialog-actions { display:flex; justify-content:flex-end; gap:9px; padding-top:2px; }
.toast { position:fixed; right:22px; bottom:20px; z-index:5; max-width:min(400px,calc(100% - 44px)); padding:11px 14px; color:#fff; background:var(--primary-dark); border-radius:8px; box-shadow:var(--shadow); opacity:0; transform:translateY(10px); pointer-events:none; transition:.2s; }.toast.show { opacity:1; transform:translateY(0); }.toast.error { background:var(--danger); }
.trash-section { grid-column:1 / -1; }.trash-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:13px 0; border-bottom:1px solid var(--border); }.trash-row:last-child { border-bottom:0; }.trash-title { font-weight:750; }.trash-meta { color:var(--muted); font-size:12px; }
@media (min-width:1600px) { .item-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (max-width:1050px) { .item-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.detail-body { grid-template-columns:1fr; }.attachment-preview { min-height:215px; }.record-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }.record-facts div:nth-child(3n) { border-right:1px solid var(--border); }.record-facts div:nth-child(2n) { border-right:0; }.record-facts div:nth-last-child(-n+3) { border-bottom:1px solid var(--border); }.record-facts div:nth-last-child(-n+2) { border-bottom:0; } }
@media (max-width:760px) { .app-shell { grid-template-columns:1fr; }.sidebar { position:static; height:auto; min-height:auto; overflow:visible; overscroll-behavior:auto; padding:14px 16px; }.sidebar-brand { padding:0 0 10px; }.main-nav { display:flex; flex-wrap:wrap; gap:5px; border-top:0; padding:0; }.nav-item { flex:1 1 calc(50% - 5px); padding:8px 9px; }.filter-panel { padding:11px 0 0; }.filter-panel fieldset { display:flex; flex-wrap:wrap; gap:3px 14px; margin-bottom:10px; }.filter-panel legend { width:100%; }.check-row { margin:3px 0; }.sidebar-footer { display:none; }.topbar { padding:0 17px; }.crumb { display:none; }.content { padding:25px 17px 40px; }.intro { align-items:start; flex-direction:column; gap:7px; }.backup-status { text-align:left; }.stat-grid,.project-stats { grid-template-columns:1fr; gap:9px; margin-top:19px; }.year-filter-card { grid-template-columns:1fr; }.year-filter-card .stat-note { grid-column:1; }.searchbar { align-items:stretch; flex-direction:column; gap:7px; }.item-grid { grid-template-columns:1fr; }.quote-table { min-width:780px; }.quote-table th,.quote-table td { padding:9px; }.pagination { justify-content:space-between; }.top-actions .button.subtle { display:none; }.user-menu small,.user-menu > span:not(.user-initial) { display:none; }.form-grid { grid-template-columns:1fr; }.dialog-head,.editor-form,.detail-info { padding-left:18px; padding-right:18px; }.attachment-preview { padding:18px; }.record-nav { flex-wrap:wrap; }.record-hero { padding:21px 19px; }.record-hero h2 { font-size:20px; }.record-facts { grid-template-columns:1fr; }.record-facts div,.record-facts div:nth-child(2n),.record-facts div:nth-child(3n) { border-right:0; border-bottom:1px solid var(--border); }.record-facts div:last-child { border-bottom:0; }.record-folder-grid,.record-folder-grid.single { grid-template-columns:1fr; }.record-folder { grid-template-columns:56px 1fr; padding:18px; }.record-folder > span:last-child { grid-column:2; }.folder-icon { width:54px; }.record-upload { grid-template-columns:1fr; }.record-file-table { min-width:680px; }.quote-group-head { align-items:flex-start; flex-direction:column; } }

.record-folder-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.folder-icon.media { color:#6a4a91; background:#eadff3; }
.folder-icon.other { color:#566873; background:#e5ecef; }
.drop-upload-zone { display:flex; min-width:0; min-height:76px; padding:12px 14px; flex-direction:column; justify-content:center; box-sizing:border-box; color:var(--primary-dark); background:#f5faf8; border:2px dashed #a9c5b8; border-radius:9px; cursor:pointer; transition:border-color .16s,background .16s,box-shadow .16s; }.drop-upload-zone:hover,.drop-upload-zone.drag-over { background:#eaf5f0; border-color:var(--primary); box-shadow:0 0 0 3px rgba(20,82,63,.08); }.drop-upload-zone.drag-over { border-style:solid; }.drop-upload-zone input[type="file"] { width:100%; min-height:auto; margin:6px 0 0; padding:0; color:var(--muted); border:0; background:transparent; font-size:11px; }.drop-file-summary { display:block; overflow:hidden; margin-top:7px; color:var(--muted); font-size:11px; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }.drop-upload-zone.has-files .drop-file-summary { color:var(--primary); font-weight:700; }
.media-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:14px 20px; border-bottom:1px solid var(--border); background:#f7fafc; }
.media-albums,.media-kind-tabs { display:flex; flex-wrap:wrap; gap:8px; }
.media-album-tab,.media-kind-tab { padding:7px 11px; color:var(--primary); background:#fff; border:1px solid var(--border); border-radius:8px; cursor:pointer; }
.media-album-tab.active,.media-kind-tab.active { color:#fff; background:var(--primary); border-color:var(--primary); }
.media-album-tab span { margin-left:4px; opacity:.7; }
.media-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; padding:18px; }
.media-album-empty { grid-column:1 / -1; min-height:180px; display:grid; place-items:center; }
.media-card { position:relative; min-width:0; overflow:hidden; background:#fff; border:1px solid var(--border); border-radius:10px; }
.media-card > a,.media-card > video,.media-image-open { display:block; width:100%; height:190px; background:#0a1d2b; object-fit:contain; }
.media-image-open { position:relative; overflow:hidden; padding:0; border:0; cursor:zoom-in; }
.media-card > a img,.media-image-open img { display:block; width:100%; height:100%; object-fit:cover; }
.project-type-watermark { position:absolute; left:10px; bottom:10px; display:inline-flex; align-items:center; gap:7px; padding:7px 10px; color:#fff; background:rgba(5,34,53,.82); border:1px solid rgba(255,255,255,.3); border-radius:4px; box-shadow:0 3px 12px rgba(0,0,0,.2); font-size:12px; font-weight:800; letter-spacing:.09em; line-height:1; pointer-events:none; backdrop-filter:blur(3px); }
.project-type-watermark::before { content:''; width:3px; height:14px; border-radius:2px; background:var(--gold); }
.media-card-info { display:grid; gap:7px; padding:11px; }
.media-card-info strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.media-card-info small { color:var(--muted); }
.media-card .card-link { padding:0; border:0; background:none; }
.media-bulk-controls { display:flex; justify-content:flex-end; align-items:center; gap:8px; padding:10px 20px; border-bottom:1px solid var(--border); background:#fff; }.media-cover-controls { margin-right:auto; }
.media-bulk-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.media-bulk-actions > span { margin-right:4px; color:var(--primary); font-size:12px; font-weight:700; }
.media-bulk-check { position:absolute; z-index:3; top:9px; left:9px; display:none; align-items:center; gap:6px; padding:7px 9px; color:#fff; background:rgba(5,35,52,.86); border:1px solid rgba(255,255,255,.55); border-radius:8px; box-shadow:0 3px 10px rgba(0,0,0,.18); cursor:pointer; font-size:12px; font-weight:700; }
.media-bulk-check input { width:17px; height:17px; margin:0; accent-color:var(--gold); }
.media-bulk-mode .media-bulk-check { display:flex; }
.media-bulk-mode .media-card[data-media-kind="image"] .media-image-open { cursor:default; pointer-events:none; }
.media-bulk-mode .media-card[data-media-kind="image"].selected { border-color:var(--gold); box-shadow:0 0 0 3px rgba(226,171,59,.24); }
.media-bulk-mode .media-card[data-media-kind="video"] { opacity:.55; }
.media-upload-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-bottom:1px solid var(--border); }
.media-upload-grid .record-upload { grid-template-columns:minmax(180px,1fr) minmax(150px,.6fr) auto; border-bottom:0; }
.media-upload-grid .record-upload + .record-upload { border-left:1px solid var(--border); }
.lightbox-open { overflow:hidden; }
.media-lightbox { position:fixed; z-index:1000; inset:0; display:grid; grid-template-columns:84px minmax(0,1fr) 84px; grid-template-rows:auto minmax(0,1fr); align-items:center; color:#fff; background:rgba(3,15,25,.94); backdrop-filter:blur(6px); }
.media-lightbox-top { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:20px; min-width:0; padding:15px 22px; background:rgba(4,24,38,.82); }
.media-lightbox-top > div { display:flex; align-items:baseline; gap:14px; min-width:0; }
.media-lightbox-top strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.media-lightbox-top span { flex:0 0 auto; color:#b9c9d3; font-size:12px; }
.media-lightbox-close,.media-lightbox-nav { color:#fff; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); cursor:pointer; }
.media-lightbox-close { flex:0 0 42px; width:42px; height:42px; border-radius:50%; font-size:28px; line-height:1; }
.media-lightbox-nav { width:52px; height:68px; margin:auto; border-radius:12px; font-size:48px; line-height:1; }
.media-lightbox-stage { display:grid; place-items:center; width:100%; height:100%; min-width:0; min-height:0; padding:18px; box-sizing:border-box; }
.media-lightbox-picture { position:relative; display:inline-grid; place-items:center; max-width:100%; max-height:calc(100vh - 108px); }
.media-lightbox-stage img { display:block; max-width:100%; max-height:calc(100vh - 108px); width:auto; height:auto; object-fit:contain; user-select:none; }
.project-type-watermark.large { left:18px; bottom:18px; padding:10px 14px; font-size:16px; }
.media-lightbox button:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
@media (max-width:1050px) { .record-folder-grid.three { grid-template-columns:repeat(2,minmax(0,1fr)); }.media-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) { .record-folder-grid.three { grid-template-columns:1fr; }.media-toolbar { align-items:stretch; flex-direction:column; }.media-bulk-controls { justify-content:flex-start; padding:10px; }.media-bulk-actions { width:100%; }.media-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); padding:10px; }.media-card > a,.media-card > video,.media-image-open { height:145px; }.media-upload-grid { grid-template-columns:1fr; }.media-upload-grid .record-upload { grid-template-columns:1fr; }.media-upload-grid .record-upload + .record-upload { border-left:0; border-top:1px solid var(--border); }.media-lightbox { grid-template-columns:52px minmax(0,1fr) 52px; }.media-lightbox-top { padding:10px 12px; }.media-lightbox-top > div { align-items:flex-start; flex-direction:column; gap:2px; }.media-lightbox-nav { width:42px; height:58px; font-size:40px; }.media-lightbox-stage { padding:8px; }.media-lightbox-stage img { max-height:calc(100vh - 94px); } }
@media (max-width:760px) { .search-actions { justify-content:space-between; width:100%; }.project-sort-control { flex:1 1 190px; }.project-sort-control select { flex:1; min-width:0; } }
.sidebar-select-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.sidebar-select-grid label { color:#c5d3de; font-size:11px; font-weight:500; }
.sidebar-select-grid select { min-height:34px; padding:6px 7px; font-size:12px; }
.sidebar-price-grid input { width:100%; min-height:34px; padding:6px 7px; font-size:12px; box-sizing:border-box; }
.sidebar-filter-apply { width:100%; min-height:32px; margin-top:8px; color:#d9e5ec; background:#183b52; border:1px solid #47647a; border-radius:7px; cursor:pointer; }
.sidebar-filter-apply:hover { background:#214c68; }
.button[aria-pressed="true"] { color:#0b2a3d; background:var(--gold); border-color:var(--gold); }
.quick-edit-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:14px; background:#fff; }
.quick-edit-table { width:100%; min-width:1780px; border-collapse:collapse; }
.quick-edit-table th,.quick-edit-table td { padding:8px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.quick-edit-table th { position:sticky; top:0; z-index:1; color:#496171; background:#eaf2f6; font-size:12px; white-space:nowrap; }
.quick-edit-table td:first-child { width:210px; }
.quick-edit-table td:first-child strong,.quick-edit-table td:first-child small { display:block; }
.quick-edit-table td:first-child small { max-width:200px; margin-top:4px; overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.quick-edit-table input,.quick-edit-table select { width:130px; min-height:34px; padding:6px 7px; border:1px solid #cbd8df; border-radius:6px; background:#fff; font:inherit; box-sizing:border-box; }
.quick-edit-table [data-field="layout"] { width:170px; }
.quick-edit-row.dirty { background:#fff9e8; }
.quick-edit-actions { display:flex; align-items:flex-start; gap:6px; min-width:178px; }
.quick-edit-actions .button { min-height:34px; padding:6px 10px; }
.quick-edit-actions small { align-self:center; max-width:150px; color:var(--green); }
.quick-edit-actions small.error { color:#b42318; }
#projectFilters :disabled,#searchInput:disabled { cursor:not-allowed; opacity:.62; }
.quote-table { min-width:1190px; }
.quote-layout { min-width:150px; max-width:260px; }

/* PLATON BUILD brand lockup; the original blue interface remains unchanged. */
.brand-lockup,.sidebar-brand { gap:13px; letter-spacing:0; }
.brand-logo { display:block; width:46px; height:54px; flex:0 0 46px; object-fit:contain; }
.brand-copy { display:grid; gap:0; min-width:0; line-height:1; }
.brand-copy strong { color:inherit; font-size:16px; font-weight:750; letter-spacing:5px; line-height:1.15; white-space:nowrap; }
.brand-build { margin-top:5px; color:inherit; font-size:11px; font-weight:600; letter-spacing:5px; line-height:1; white-space:nowrap; }
.brand-copy .brand-tagline { margin-top:7px; color:var(--muted); font-size:7px; font-weight:500; letter-spacing:0; line-height:1; white-space:nowrap; }
.login-panel .brand-lockup { color:var(--ink); }
.login-panel .brand-logo { width:50px; height:59px; flex-basis:50px; }
.login-panel .brand-copy strong { font-size:18px; }
.login-panel .brand-build { font-size:12px; }
.login-panel .brand-copy .brand-tagline { font-size:8px; }
.sidebar-brand { color:#fff; padding-bottom:22px; }
.sidebar-brand .brand-build { color:#e9f3ef; }
.sidebar-brand .brand-copy .brand-tagline { color:#94acbd; }

@media (max-width:760px) {
  .brand-logo { width:40px; height:47px; flex-basis:40px; }
  .brand-copy strong { font-size:14px; letter-spacing:4px; }
  .brand-build { font-size:10px; letter-spacing:4px; }
  .brand-copy .brand-tagline { font-size:6.5px; }
  .login-panel { padding:30px 24px; }
}
