:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fffefb;font-size:14px;font-synthesis:none;--blue:#0754c9;--line:#d7d8d6;--muted:#53606b;--ink:#14232b;--yellow:#fff08a;--lava:#ff3621;--oat:#f9f7f4}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button,a,input,select,summary{touch-action:manipulation}
button,a{transition:background .15s,color .15s}
button{cursor:pointer;border:1px solid var(--line);background:white;color:inherit;border-radius:5px;padding:8px 12px}
button:hover{background:#edf2fd}
button:disabled{cursor:not-allowed;opacity:.45}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.table-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
header{height:65px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:16px}
.brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:18px;font-weight:720;letter-spacing:-.6px}
.brand span{font-weight:400;margin-left:-9px}
.brand:hover{text-decoration:none}
nav{display:flex;align-items:center;gap:20px}
.quiet{border:0;background:none;color:var(--muted);padding:6px}
.quiet:hover{color:var(--blue);background:#edf2fd}
main{max-width:1920px;margin:auto;padding:25px 30px}
.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:650;color:var(--blue);margin-bottom:7px}
h1{font-size:32px;letter-spacing:-1.2px;line-height:1.15;margin:0 0 7px;font-weight:650}
p{line-height:1.6}
.intro p{margin:0;color:var(--muted)}
.snapshot{text-align:right;color:#394759;font-size:12px;white-space:nowrap}
.snapshot small{display:block;font-size:11px;color:var(--muted);margin-top:6px}
.dot{display:inline-block;width:6px;height:6px;background:var(--blue);border-radius:50%;margin-right:7px}
.context{display:flex;align-items:end;gap:16px;padding:16px 0 20px;border-top:1px solid var(--line)}
label{display:flex;flex-direction:column;gap:6px;color:#5c6878;font-size:11px;font-weight:550}
select,input{color:var(--ink);background:white;border:1px solid #aeb7bf;border-radius:5px;padding:8px 9px;min-height:38px;max-width:100%}
select{cursor:pointer}
.context select{min-width:135px}
input[type=checkbox]{width:15px;min-height:auto;height:15px;accent-color:var(--blue);margin:0;flex-shrink:0}
.toggle{flex-direction:row;align-items:center;height:38px;padding-bottom:0;font-size:13px;gap:8px}
.context-note{margin-left:auto;max-width:290px;font-size:11px;color:var(--muted);line-height:1.5;padding-bottom:5px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:25px;align-items:start}
.catalog-pane{min-width:0}
.table-tools{display:flex;align-items:center;gap:12px;margin-bottom:14px}
#result-count{color:var(--muted);font-size:11px}
.table-tools>.quiet{margin-left:auto}
.tabs{display:flex;gap:2px;padding:3px;background:#e9edf3;border-radius:6px}
.tabs button{border:0;background:none;padding:7px 12px;color:#5c6878;font-weight:600}
.tabs button[aria-pressed=true]{background:white;box-shadow:0 1px 3px #1b2c4410;color:var(--ink)}
.filters{display:grid;grid-template-columns:minmax(140px,1.7fr) 1.25fr .6fr .7fr .9fr 1fr;gap:9px;margin-bottom:13px}
.filters input{width:100%;min-width:50px}
.intent-line{display:flex;gap:14px;align-items:center;margin:14px 0}
.intent-line label{flex-shrink:0;max-width:230px}
.intent-line p{font-size:11px;color:var(--muted);margin:12px 0 0;max-width:540px}
.table-scroll{position:relative;overflow-x:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:white}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
thead{background:var(--oat);color:#495863}
th{font-size:11px;font-weight:600;padding:12px 9px;text-transform:none}
th small{display:block;font-size:11px;font-weight:400;margin-top:4px;color:#596571}
td{border-top:1px solid #e5e7e9;padding:13px 9px;font-size:13px}
th:nth-child(2),td:nth-child(2){text-align:left}
tbody tr{transition:background .12s}
tbody tr:hover{background:#f5f8ff}
tr.selected{background:#edf4ff}
td .type{font-weight:650;color:#243953;display:block}
td .sub{font-size:11px;color:var(--muted);display:block;margin-top:4px}
td .cost{font-weight:700}
td .unknown{color:#596571;font-size:11px}
.use{padding:5px 9px;font-size:11px;color:var(--blue);border-color:#dce6fb;background:#f8faff}
.selected .use{background:var(--blue);color:white;border-color:var(--blue)}
.table-foot{font-size:11px;color:var(--muted);margin:10px 0 0}
.builder{border-left:1px solid var(--line);padding-left:22px;position:sticky;top:18px;min-width:0}
.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:17px}
h2{font-size:16px;letter-spacing:-.3px;margin:0;font-weight:650}
.badge{color:#5a687b;background:#edf0f5;padding:4px 7px;border-radius:4px;font-size:11px}
.builder label{margin-bottom:12px}
.builder select,.builder input[type=number]{width:100%}
.worker-controls{display:grid;grid-template-columns:minmax(0,1fr) 75px;gap:8px}
.cluster-price{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}
.cluster-price>span{display:block;color:var(--muted);font-size:11px}
.cluster-price strong{font-size:34px;font-weight:650;letter-spacing:-1.4px;display:block;margin:5px 0}
.cluster-price small{font-size:11px;color:var(--muted)}
.breakdown-row{display:flex;justify-content:space-between;color:#647184;gap:12px;font-size:11px;margin-top:10px}
.role-note{font-size:11px;color:#5e6b7d;margin:14px 0}
.primary{background:var(--blue);border-color:var(--blue);color:white;width:100%;font-weight:600;margin-top:15px}
.primary:hover{background:#1745ab}
.tiny{font-size:11px;color:var(--muted);line-height:1.6}
.builder>.tiny{text-align:center;margin-top:8px}
.builder details{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}
summary{cursor:pointer;font-size:12px;font-weight:600;margin-bottom:14px}
details p{font-size:11px;color:var(--muted)}
.node-details dl{margin:0;font-size:11px;line-height:1.55}
.node-details dt{color:#596571;font-size:11px;margin-top:12px}
.node-details dd{margin:3px 0;overflow-wrap:anywhere}
.arm-ack{display:flex;flex-direction:row;align-items:flex-start;font-size:11px;line-height:1.5;gap:8px;background:#eef3fc;padding:10px}
.error{color:#a13b28;font-size:11px;background:#fff4ef;padding:9px;border-radius:4px}
.shape-goals{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}
.shape-goals strong{font-size:11px}
.shape-goals input{width:85px}
.shape-goals p{flex-basis:100%;margin:0;font-size:11px;color:var(--muted)}
.comparison{margin-top:24px;animation:reveal .2s ease-out}
.comparison table{text-align:left;font-size:11px}
.comparison td,.comparison th{white-space:normal;min-width:140px;vertical-align:top;text-align:left;font-size:11px;line-height:1.6}
.comparison th:first-child{min-width:105px}
.comparison td:first-child{color:var(--muted)}
footer{display:flex;justify-content:space-between;gap:20px;padding:23px 0 0;margin-top:25px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
dialog{width:min(690px,calc(100vw - 30px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:25px;box-shadow:0 20px 90px #17283a30}
dialog::backdrop{background:#1a243757}
dialog h3{font-size:13px;margin-top:23px}
dialog p,dialog li{font-size:12px;line-height:1.7}
dialog li{margin-bottom:7px}
.source-item{border-top:1px solid var(--line);padding:12px 0;font-size:12px}
.source-item small{display:block;color:var(--muted);margin-top:5px;font-size:11px;overflow-wrap:anywhere}
.source-item code{font-size:11px}
#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#202d40;color:white;padding:10px 16px;border-radius:5px;pointer-events:none;opacity:0;transition:opacity .15s}
#toast.show{opacity:1}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
[hidden]{display:none!important}
@keyframes reveal{from{opacity:0;transform:translateY(5px)}
to{opacity:1;transform:translateY(0)}
}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 325px}
.builder{padding-left:28px}
.filters{gap:13px}
td{padding:14px 12px}
}
@media(max-width:1100px){main{padding:22px 18px}
header{padding:0 18px}
.workspace{grid-template-columns:minmax(0,1fr) 255px;gap:17px}
.builder{padding-left:16px}
.filters{grid-template-columns:repeat(3,minmax(0,1fr))}
th,td{padding:11px 8px}
.context-note{max-width:180px}
.context{gap:10px}
.context select{min-width:110px}
}
@media(max-width:760px){header{height:58px;padding:0 15px}
.brand{font-size:16px}
nav{gap:9px}
header nav a{display:none}
main{padding:20px 14px}
.intro{align-items:flex-start;margin-bottom:19px}
.intro h1{font-size:28px}
.intro p{font-size:12px;max-width:260px}
.snapshot{font-size:11px;white-space:normal;max-width:100px;line-height:1.5}
.snapshot small{font-size:11px}
.context{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:10px;padding-bottom:15px}
.context select{min-width:0;width:100%}
.context .toggle{grid-column:1}
.context-note{grid-column:2/4;max-width:none;font-size:11px;margin:0}
.workspace{display:block}
.filters{grid-template-columns:repeat(2,minmax(0,1fr))}
.search-label{grid-column:1/3}
.table-tools{gap:6px}
#result-count{font-size:11px}
.tabs button{padding:6px 9px;font-size:11px}
.table-tools>.quiet{font-size:11px}
.intent-line{display:block}
.intent-line label{max-width:none}
.intent-line p{margin-top:8px}
.builder{position:static;border:0;border-top:1px solid var(--line);padding:25px 0 0;margin-top:27px}
.cluster-price strong{font-size:36px}
.worker-controls{grid-template-columns:1fr 110px}
footer{display:block;line-height:1.7}
footer span{display:block;margin-bottom:6px}
.shape-goals{gap:9px}
.shape-goals strong{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}
}


/* TokensAndTea: blue ink, a yellow marker, and a small Databricks Lava accent. */
header{border-bottom:1px solid var(--ink)}
.brand{font-weight:760;letter-spacing:-.7px}
.brand img{width:32px;height:32px}
.intro{padding:5px 0 2px}
h1{color:var(--blue);font-size:36px;font-weight:780;letter-spacing:-1.3px;line-height:1.3;margin-bottom:10px}
h1 span{position:relative;isolation:isolate;display:inline-block}
h1 span::after{content:"";position:absolute;z-index:-1;left:-2px;right:-5px;bottom:2px;height:10px;background:var(--yellow);transform:rotate(-1deg);border-radius:2px 6px 3px 5px}
.eyebrow{display:flex;align-items:center;gap:8px;color:#384c5b;font-weight:700;letter-spacing:1.1px}
.eyebrow::before{content:"";width:7px;height:7px;background:var(--lava);flex-shrink:0}
.intro p{font-size:13px;color:#495a67;max-width:680px}
.context{border-top:1px solid var(--ink)}
label{font-size:12px;color:#435461}
.tabs{background:#eeefeb;border:1px solid #d7d8d6}
.tabs button[aria-pressed=true]{color:var(--blue);box-shadow:0 1px 2px #14232b14}
.tabs button:disabled{opacity:.5}
.type{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:-.3px}
.table-scroll{border-top:1px solid var(--ink);border-bottom:1px solid #c4cbd0}
#instance-table tbody tr.selected td:first-child{box-shadow:inset 3px 0 var(--blue)}
.table-foot{font-size:11px;line-height:1.65}
.builder{border-left-color:#b7c0c7}
.builder h2{font-size:18px;color:var(--blue);font-weight:740}
.badge{background:#eeede9;color:#435461}
.cluster-price{border-top:2px solid var(--ink)}
.cluster-price strong{width:fit-content;color:var(--ink);font-weight:760;background:linear-gradient(transparent 70%,var(--yellow) 70%);padding-right:5px}
.primary{border:1px solid var(--ink);box-shadow:2px 2px 0 var(--ink);border-radius:4px;min-height:40px}
.primary:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 var(--ink)}
.primary:active{transform:translate(1px,1px);box-shadow:none}
.primary:disabled{transform:none;box-shadow:none}
.use{min-height:30px;font-weight:650}
.error{color:#922d1b;border-left:3px solid #bc3323;background:#fff1eb}
.arm-ack{background:#eef4ff;border-left:3px solid var(--blue)}
.source-item a{font-weight:650}
.node-details dt{color:#495a67}
.mobile-shortcuts,.table-hint{display:none}
footer{line-height:1.7;font-size:11px;border-top-color:#b7c0c7}
#catalog,#cluster{scroll-margin-top:18px}
@media(max-width:760px){
  h1,.intro h1{font-size:29px;letter-spacing:-1px}
  .intro{gap:13px}
  .intro p{max-width:250px;line-height:1.6}
  .eyebrow{font-size:10px;letter-spacing:.7px;gap:6px;line-height:1.5}
  .snapshot{font-size:10px;max-width:90px;min-width:70px}
  .snapshot small{font-size:10px}
  .context{grid-template-columns:1.25fr 1fr 1fr}
  .mobile-shortcuts{display:flex;justify-content:space-between;gap:10px;margin:0 0 15px;padding:8px 0 13px;border-bottom:1px solid var(--line);font-size:12px;font-weight:650}
  .table-hint{display:block;font-size:11px;color:var(--muted);margin:10px 0 7px}
  .table-tools{flex-wrap:wrap}
  .tabs button{min-height:33px}
  .table-tools>.quiet{min-height:33px;padding:5px}
  .builder{border-top:2px solid var(--ink)}
  .intent-line p,.context-note,.role-note,details p{font-size:12px}
  .filters label,.builder label{font-size:12px}
  th{font-size:11px}
  th small,td .sub{font-size:11px}
  #comparison-content th,#comparison-content td{min-width:145px}
}
