:root { color-scheme: light; font: 14px/1.5 system-ui, sans-serif; color: #24352e; background: #f4f5f0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, select, input { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select, input { border: 1px solid #ccd6c9; border-radius: 7px; background: white; color: #24352e; }
button { padding: 9px 14px; cursor: pointer; }
button:hover, select:hover { border-color: #467b60; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #c7a455; outline-offset: 3px; }
select { padding: 5px 7px; max-width: 100%; }
input { padding: 11px 12px; width: 100%; }
.primary { background: #294b37; border-color: #294b37; color: #fff; }
.primary:hover { background: #365e43; color: white; }
.quiet { background: transparent; border-color: transparent; color: #62745e; }
.site-header { min-height: 86px; background: #20382e; color: #f8faf5; display: flex; align-items: center; justify-content: space-between; padding: 18px max(28px, calc((100vw - 1440px) / 2)); gap: 20px; }
.brand { color: inherit; text-decoration: none; font-size: 27px; font-weight: 730; letter-spacing: -1.2px; line-height: 1.1; }
.brand span { color: #b5d696; }
.brand small { display: block; margin-top: 6px; font-size: 9px; font-weight: 500; letter-spacing: 3px; color: #c7d4c7; }
.header-right, .connection, .actions { display: flex; align-items: center; gap: 10px; }
.connection { font-size: 11px; }
.dot { width: 6px; height: 6px; background: #b5d696; border-radius: 50%; }
.demo { padding: 3px 7px; border: 1px solid #73866f; border-radius: 4px; margin-left: 5px; font-size: 9px; letter-spacing: 1px; }
.user-name { font-size: 12px; color: #d7e1d1; padding-left: 16px; border-left: 1px solid #596d5c; }
.header-button { color: #d7e1d1; background: transparent; border-color: #5e735f; padding: 6px 10px; font-size: 11px; }
main { max-width: 1496px; padding: 34px 28px 18px; margin: auto; }
.heading, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #57745e; margin: 0 0 6px; }
h1 { font-size: clamp(28px, 4vw, 39px); line-height: 1.2; letter-spacing: -1.4px; margin: 0; font-weight: 600; }
h2 { font-size: 21px; margin: 0; font-weight: 550; }
p { margin: 8px 0; }
.muted { color: #6b786e; font-size: 12px; }
nav { display: flex; flex-wrap: wrap; gap: 5px; padding: 20px 0 16px; border-bottom: 1px solid #d7ded3; }
nav a { text-decoration: none; color: #617063; padding: 8px 16px; border-radius: 6px; font-size: 12px; }
nav a[aria-current="page"] { background: #20382e; color: white; }
nav a:hover { background: #e2e8dc; color: #20382e; }
.overview, .layout-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; }
.overview { padding: 10px 0 2px; }
.layout-status { color: #7a8673; padding-bottom: 9px; font-size: 10px; }
.layout-tools { background: #e7eddf; border: 1px solid #d1ddc5; padding: 15px 18px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 8px 0; }
.layout-tools strong { font-size: 13px; }
.layout-tools p { color: #64765c; font-size: 11px; margin: 3px 0; }
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: start; }
.dashboard-card { display: flex; flex-direction: column; position: relative; min-width: 0; background: white; border: 1px solid #dbe1d5; border-radius: 9px; overflow: hidden; }
.width-compact { grid-column: span 2; }
.width-medium { grid-column: span 4; }
.width-wide { grid-column: span 6; }
.width-full { grid-column: span 12; }
.height-short { height: 284px; }
.height-standard { height: 350px; }
.height-tall { height: 470px; }
.card-main { display: flex; flex-direction: column; flex: 1; padding: 16px; min-height: 0; }
.card-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.card-site { color: #77856c; font-size: 10px; }
.card-type { font-size: 8px; letter-spacing: .8px; color: #7b8d70; }
.chart-card .card-type { color: #527544; }
.card-name { font-size: 11px; font-weight: 650; margin: 5px 0 10px; overflow-wrap: anywhere; }
.card-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.silo-picture, .plot { position: relative; flex: 1; min-height: 60px; }
.silo-picture canvas, .plot canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.silo-details { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; padding-top: 9px; color: #6a7b60; font-size: 10px; min-height: 24px; }
.reading-state { color: #6a7b60; font-size: 9px; margin: 5px 0 0; }
.stale .reading-state { color: #a16f2a; }
.chart-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.chart-toolbar label { color: #77836d; font-size: 10px; }
.chart-toolbar select { padding: 4px; margin-left: 4px; font-size: 10px; }
.chart-current { font-size: 25px; font-weight: 550; color: #456b3a; letter-spacing: -1px; }
.chart-caption { color: #7a8870; font-size: 9px; min-height: 14px; margin: 7px 0 0; overflow-wrap: anywhere; }
.card-edit { display: none; background: #edf1e7; border-bottom: 1px solid #dbe1d5; padding: 7px; }
.editing .card-edit { display: block; }
.editing .dashboard-card { border-color: #aebfa0; }
.move-controls, .size-controls { display: flex; align-items: center; gap: 4px; }
.move-controls button { padding: 2px 6px; background: transparent; border-color: transparent; font-size: 14px; }
.move-controls .drag-handle { cursor: grab; margin-right: auto; font-size: 21px; line-height: 1; }
.move-controls .hide-card { color: #8d664d; margin-left: auto; }
.size-controls { margin-top: 5px; }
.size-controls label { flex: 1; width: 0; font-size: 8px; color: #697b60; }
.size-controls select { display: block; width: 100%; font-size: 10px; padding: 4px 0; }
.dragging { opacity: .4; }
.drop-target { outline: 3px dashed #618749; outline-offset: -4px; }
.empty-board { border: 1px dashed #b9c9aa; border-radius: 9px; padding: 50px 24px; text-align: center; color: #687a5e; }
.empty-board button { margin-top: 12px; }
.error { background: #fff0db; color: #875016; padding: 12px; border-radius: 6px; }
footer { display: flex; justify-content: space-between; gap: 14px; color: #7c8875; font-size: 10px; padding-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
dialog { border: 1px solid #cdd8c4; border-radius: 12px; color: #24352e; width: min(720px, calc(100% - 28px)); max-height: 85vh; padding: 24px; }
dialog::backdrop { background: #14271cb8; }
.dialog-heading button { border: none; padding: 5px; background: transparent; }
.search-label { display: block; font-size: 11px; color: #61755a; margin-top: 20px; }
.search-label input { display: block; margin-top: 5px; }
.library-list { margin-top: 12px; }
.library-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 0; border-top: 1px solid #e4eade; }
.library-row strong { font-size: 11px; }
.library-row p { margin: 3px 0 0; font-size: 10px; }
.library-actions { display: flex; gap: 6px; flex-shrink: 0; }
.library-actions button { font-size: 11px; padding: 6px 10px; }
.login-page { background: #e9eee2; }
.login-shell { max-width: 1280px; min-height: min(800px, calc(100vh - 80px)); margin: 40px auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 70px #20382e0d; }
.login-story { background: #20382e; color: white; padding: 42px 50px 28px; display: flex; flex-direction: column; }
.login-story .brand { align-self: flex-start; }
.story-copy { margin-top: 70px; }
.story-copy .eyebrow { color: #b5cf9c; }
.story-copy h1 { font-size: clamp(38px, 4.3vw, 61px); line-height: 1.06; font-weight: 500; letter-spacing: -2.6px; margin: 16px 0; }
.story-copy > p:last-child { max-width: 320px; color: #bccdb9; font-size: 13px; line-height: 1.8; }
.login-illustration { display: flex; align-items: center; gap: 25px; margin-top: 28px; }
.login-illustration canvas { background: #eef2e7; width: 190px; height: 200px; border-radius: 12px; }
.login-illustration .eyebrow { color: #b5cf9c; font-size: 8px; line-height: 1.9; }
.login-illustration p { color: #d7e3cf; font-size: 13px; }
.login-illustration small { color: #98ae92; font-size: 9px; }
.story-footer { color: #96ac91; font-size: 10px; margin-top: auto; padding-top: 30px; }
.login-form-panel { padding: 60px 70px 28px; display: flex; flex-direction: column; justify-content: center; }
.login-form-content { max-width: 350px; width: 100%; margin: auto; }
.login-mark { display: flex; width: 43px; height: 43px; border-radius: 10px; background: #e9f0df; color: #5d8148; font-size: 27px; align-items: center; justify-content: center; margin-bottom: 33px; }
.login-form-content h2 { font-size: 32px; letter-spacing: -1px; font-weight: 550; margin: 7px 0; }
.login-form { margin-top: 28px; }
.login-form label { display: block; font-size: 12px; margin: 18px 0; }
.login-form input { display: block; margin-top: 7px; padding: 12px; background: #fcfdf9; }
.login-form button { display: flex; justify-content: space-between; width: 100%; margin-top: 27px; padding: 13px 15px; }
.demo-hint { background: #f1f5eb; border-radius: 7px; padding: 12px; font-size: 11px; color: #688156; }
.login-note { border-top: 1px solid #e3e9dc; padding-top: 22px; margin-top: 32px; }
.login-note strong { font-size: 12px; font-weight: 550; }
.login-note p { color: #7c8972; font-size: 11px; line-height: 1.8; }
.login-footer { color: #91a086; font-size: 9px; text-align: center; padding-top: 30px; }
@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .width-compact { grid-column: span 2; } .width-medium { grid-column: span 3; }
  .width-wide, .width-full { grid-column: span 6; }
  .login-shell { margin: 20px; min-height: calc(100vh - 40px); }
  .login-story { padding: 35px 30px; } .login-form-panel { padding: 40px 30px; }
  .story-copy { margin-top: 50px; } .login-illustration { gap: 15px; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .site-header { padding: 18px; gap: 10px; align-items: flex-start; }
  .header-right { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .connection { width: 100%; justify-content: flex-end; font-size: 9px; }
  .user-name { padding-left: 0; border: none; font-size: 10px; }
  .brand { font-size: 24px; } .brand small { font-size: 8px; }
  main { padding: 24px 16px 18px; }
  .heading { flex-direction: column; align-items: flex-start; gap: 8px; }
  .actions { flex-wrap: wrap; gap: 7px; } .actions button { font-size: 11px; }
  nav { padding-top: 16px; gap: 2px; } nav a { padding: 7px 10px; font-size: 11px; }
  .overview, footer { flex-direction: column; align-items: flex-start; gap: 0; }
  .overview p { margin: 4px 0; } .layout-status { font-size: 9px; align-items: flex-start; }
  .layout-tools { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .width-compact { grid-column: span 1; }
  .width-medium, .width-wide, .width-full { grid-column: span 2; }
  .card-main { padding: 12px; } .card-name { font-size: 10px; }
  .height-standard { height: 330px; } .height-short { height: 275px; } .height-tall { height: 430px; }
  .card-type { font-size: 7px; } .silo-details { font-size: 9px; }
  .library-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  dialog { padding: 18px; }
  .login-shell { display: flex; flex-direction: column; margin: 0; border-radius: 0; min-height: 100vh; }
  .login-story { padding: 27px; } .story-copy { margin-top: 30px; }
  .story-copy h1 { font-size: 39px; letter-spacing: -1.5px; }
  .login-illustration, .story-footer { display: none; }
  .login-form-panel { padding: 30px 27px; } .login-mark { display: none; }
  .login-form-content h2 { font-size: 28px; }
}
@media (max-width: 360px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .dashboard-card { grid-column: span 1; }
}
