/* Shared workbench shell. Page styles contain task-specific layouts only. */
body { min-width: 320px; }
body > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; background: var(--ui-surface); border-bottom: 1px solid var(--ui-border); }
body > header p { color: var(--ui-muted); font-size: 13px; margin: 6px 0 0; }
body > header > div { min-width: 0; }
body > header .eyebrow, body > header > div > small { display: none; }
body > main { max-width: 1800px; margin: 0 auto; padding: 20px 28px; }
.workbench-nav { display: flex; align-items: center; gap: 6px; padding: 8px 28px; border-bottom: 1px solid var(--ui-border); background: var(--ui-surface); overflow: auto; flex-shrink: 0; }
.workbench-nav a { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 40px; padding: 7px 12px; border-radius: var(--ui-control-radius); text-decoration: none; color: var(--ui-muted); font-size: 13px; font-weight: 550; }
.workbench-nav a[aria-current=page] { background: var(--ui-selected); color: var(--ui-primary); }
.workbench-nav a:hover { color: var(--ui-primary); background: var(--ui-subtle); }
.workbench-nav .workspace-scope { margin-left: auto; white-space: nowrap; padding: 4px 8px; border: 1px solid var(--ui-border); border-radius: 6px; font-size: 11px; color: var(--ui-muted); }
.workbench-tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 6px; overflow: auto; padding: 10px 28px; border-bottom: 1px solid var(--ui-border); background: var(--ui-bg); }
.workbench-tabs > * { flex-shrink: 0; }
.card { padding: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-heading p { color: var(--ui-muted); font-size: 13px; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.fields label { min-width: 0; }
.fields input, .fields select { width: 100%; }
body[data-tool=data] label > input:not([type=checkbox]), body[data-tool=data] label > select { display: block; width: 100%; margin-top: 5px; }
body[data-tool=data] input[type=checkbox] { width: 18px; }
.actions, .row, .tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#notice { border: 1px solid var(--ui-border); background: var(--ui-selected); color: var(--ui-primary); border-radius: var(--ui-control-radius); font-size: 13px; line-height: 1.5; }
#notice.error { color: var(--ui-danger); background: var(--ui-danger-bg); border-color: #e6b8bc; }
body > #notice { margin: 10px 28px 0; padding: 10px 12px; }
body > footer { padding: 16px 28px; text-align: center; font-size: 12px; color: var(--ui-muted); }
.hub-main { max-width: 1300px; }
.hub-intro { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 8px 0 20px; }
.hub-intro p { color: var(--ui-muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.tool-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tool-card .tool-number { font-size: 12px; color: var(--ui-primary); letter-spacing: 1px; font-weight: 650; }
.tool-card h2 { margin: 0; font-size: 19px; }.tool-card p { color: var(--ui-muted); margin: 0; font-size: 13px; flex: 1; }
.tool-card .button { align-self: flex-start; margin-top: 8px; }.tool-card small { font-size: 12px; }
.tool-section { margin-top: 30px; }.tool-section > p { color: var(--ui-muted); }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; padding: 20px; }
.login-page main { width: 420px; max-width: 100%; padding: 30px; margin: 0; }.login-page h1 { margin-bottom: 14px; }
.login-page label { display: block; margin-top: 16px; }.login-page input, .login-page button { width: 100%; margin-top: 7px; }.login-page button { margin-top: 22px; }
.login-page #error { color: var(--ui-danger); }
@media(max-width: 1050px) { .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 700px) {
  body > header { padding: 16px; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  h1 { font-size: 21px; }body > main { padding: 16px 12px; }
  .workbench-nav, .workbench-tabs { padding: 8px 12px; }.workbench-nav .workspace-scope { display: none; }
  body > #notice { margin: 8px 12px 0; }.tool-grid { grid-template-columns: 1fr; }.hub-intro { display: block; }
}
