@charset "UTF-8";
:root {
  color-scheme:dark;
  --bg:#101318;
  --panel:#181c23;
  --panel-hover:#1e242c;
  --border:#2a3039;
  --text:#e9edf3;
  --muted:#a0a9b8;
  --subtle:#738093;
  --accent:#54d6b5;
  --accent-bg:#17372f;
  --blue:#8bb8f7;
  --radius:12px;
  /* Typography values from works/common/css/common.css. */
  --font-family:"Roboto", "Pretendard Variable", "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  --font-mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace, "Pretendard Variable", "Pretendard";
  --fs-xs:13px;
  --fs-sm:14px;
  --fs-md:15px;
  --fs-lg:16px;
  --fs-xl:17px;
  --fs-base:var(--fs-sm);
  --fs-code:13px;
  --fs-badge:12px;
  font-family:var(--font-family);
  font-size:var(--fs-base)
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  font-family:var(--font-family);
  font-size:var(--fs-base)
}
button,input,select,textarea,optgroup,option {
  font:inherit;
  font-family:var(--font-family)
}
small {
  font-size:var(--fs-xs)
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.45
}
button {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px
}
button:focus:not(:focus-visible) {
  outline:none
}
.icon {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
.icon-defs {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:246px;
  background:#14171c;
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  padding:28px 18px 0;
  z-index:30
}
.brand {
  display:flex;
  gap:11px;
  align-items:center;
  padding:0 9px;
  font-size:var(--fs-xl);
  letter-spacing:-.8px;
  font-weight:750;
  line-height:1.2
}
.brand-mark {
  background:var(--accent);
  color:#15372e;
  width:37px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:10px
}
.brand-mark .icon {
  width:27px;
  height:27px
}
.brand-light {
  font-weight:450;
  color:#c1cbd9
}
.brand small {
  display:block;
  font-size:var(--fs-xs);
  letter-spacing:1.6px;
  color:var(--subtle);
  font-weight:600;
  margin-top:7px
}
.workspace-switch {
  margin:31px 0 28px;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  width:100%;
  padding:12px 10px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#1a1e25;
  font-size:var(--fs-sm);
  font-weight:600
}
.workspace-switch small {
  display:block;
  font-size:var(--fs-xs);
  color:var(--subtle);
  font-weight:400;
  margin-top:2px
}
.workspace-switch>.icon {
  width:13px;
  margin-left:auto
}
.workspace-avatar {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  flex-shrink:0;
  border-radius:8px;
  background:#293346;
  color:#bfceed;
  font-size:var(--fs-sm);
  font-weight:700
}
.workspace-avatar.small {
  width:29px;
  height:29px;
  border-radius:50%;
  font-size:var(--fs-sm)
}
.nav-label {
  font-size:var(--fs-xs);
  letter-spacing:1.8px;
  font-weight:650;
  color:var(--subtle);
  padding:0 12px;
  margin-bottom:12px
}
.nav-label-second {
  margin-top:31px
}
.sidebar nav {
  display:grid;
  gap:5px
}
.sidebar nav a {
  display:flex;
  align-items:center;
  gap:13px;
  padding:11px 12px;
  color:var(--muted);
  font-size:var(--fs-sm);
  border-radius:7px;
  transition:background .15s,color .15s
}
.sidebar nav a:hover {
  background:#20252d;
  color:var(--text)
}
.sidebar nav a.active {
  color:var(--accent);
  background:#20362f
}
.sidebar nav a .icon {
  width:18px;
  height:18px
}
.nav-count {
  font-size:var(--fs-badge);
  color:#c5cdde;
  margin-left:auto;
  background:#303640;
  border-radius:4px;
  line-height:18px;
  min-width:20px;
  text-align:center
}
.tiny-dot {
  width:5px;
  height:5px;
  background:var(--accent);
  border-radius:50%;
  margin-left:auto
}
.sidebar-bottom {
  margin-top:auto
}
.sidebar-tip {
  margin:28px 7px 24px;
  border-top:1px solid var(--border);
  padding-top:22px
}
.eyebrow {
  font-size:var(--fs-xs);
  font-weight:650;
  letter-spacing:1.2px;
  color:var(--subtle)
}
.sidebar-tip p {
  font-size:var(--fs-xs);
  color:var(--muted);
  line-height:1.9;
  margin:9px 0 12px
}
.text-link {
  background:none;
  border:0;
  padding:0;
  color:var(--accent);
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-size:var(--fs-sm)
}
.text-link .icon {
  width:15px
}
.access-mode {
  border-top:1px solid var(--border);
  display:flex;
  gap:8px;
  align-items:center;
  padding:17px 7px;
  color:var(--muted);
  font-size:var(--fs-xs)
}
.version {
  margin-left:auto;
  color:var(--subtle);
  font-size:var(--fs-xs)
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  display:inline-block;
  flex-shrink:0
}
.app-shell {
  margin-left:246px;
  min-height:100vh;
  display:flex;
  flex-direction:column
}
.topbar {
  height:71px;
  padding:0 38px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--border);
  background:#14171b
}
.breadcrumb {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:var(--fs-xs);
  color:var(--subtle)
}
.breadcrumb .icon {
  width:12px
}
.breadcrumb strong {
  font-weight:500;
  color:#c2cad5
}
.topbar-right {
  display:flex;
  align-items:center;
  gap:18px
}
.topbar-host {
  font-family:var(--font-mono);
  font-size:var(--fs-xs);
  color:var(--subtle)
}
.topbar-divider {
  width:1px;
  height:20px;
  background:var(--border)
}
main {
  padding:35px 38px 0;
  flex:1;
  max-width:1600px;
  width:100%;
  margin:0 auto;
  outline:none
}
.page-footer {
  padding:30px 38px 24px;
  display:flex;
  justify-content:space-between;
  color:var(--subtle);
  font-size:var(--fs-xs)
}
.page-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:27px
}
.page-header .eyebrow {
  letter-spacing:1.8px;
  color:var(--accent)
}
h1 {
  font-size:var(--fs-xl);
  letter-spacing:-1px;
  font-weight:600;
  line-height:1.4;
  margin:7px 0 7px
}
h2 {
  font-size:var(--fs-md);
  font-weight:600;
  margin:0;
  letter-spacing:-.3px
}
h3 {
  font-size:var(--fs-md);
  font-weight:600;
  margin:0
}
p {
  margin:0
}
.subtitle {
  color:var(--muted);
  font-size:var(--fs-xs)
}
.header-actions,.button-row {
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:37px;
  padding:8px 14px;
  border:1px solid var(--border);
  border-radius:7px;
  background:#1d222a;
  font-size:var(--fs-sm);
  font-weight:550;
  white-space:nowrap;
  transition:background .15s,border-color .15s
}
.btn .icon {
  width:15px;
  height:15px
}
.btn:hover:not(:disabled) {
  background:#29313b;
  border-color:#455060
}
.btn-primary {
  background:var(--accent);
  color:#11372c;
  border-color:var(--accent)
}
.btn-primary:hover:not(:disabled) {
  background:#7ce7ca;
  border-color:#7ce7ca
}
.btn-ghost {
  background:transparent
}
.btn-small {
  min-height:29px;
  padding:5px 10px;
  font-size:var(--fs-xs)
}
.icon-button {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  padding:5px;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:var(--muted)
}
.icon-button:hover {
  background:#2a313b;
  color:var(--text)
}
.icon-button .icon {
  width:16px;
  height:16px
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:25px
}
.stat-card {
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:var(--radius);
  padding:18px 20px
}
.stat-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:var(--fs-xs);
  color:var(--muted)
}
.stat-top>.icon {
  width:17px;
  height:17px;
  color:var(--subtle)
}
.stat-value {
  font-size:24px;
  font-weight:600;
  line-height:1.3;
  margin:12px 0 7px;
  letter-spacing:-1.2px
}
.stat-value small {
  font-size:var(--fs-xs);
  font-weight:400;
  color:var(--subtle);
  margin-left:7px;
  letter-spacing:0
}
.stat-caption {
  font-size:var(--fs-xs);
  color:var(--subtle)
}
.stat-caption .status-dot {
  width:5px;
  height:5px;
  margin-right:5px
}
.main-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:22px;
  align-items:start
}
.stack {
  display:grid;
  gap:22px
}
.panel {
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  overflow:hidden
}
.panel-head {
  padding:19px 21px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--border)
}
.panel-head small {
  color:var(--subtle);
  font-size:var(--fs-xs);
  margin-left:8px
}
.panel-body {
  padding:21px
}
.quick-start {
  padding:22px;
  background:linear-gradient(120deg,#1a2c2b,#1b232d);
  border:1px solid #304443;
  border-radius:var(--radius)
}
.quick-start-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px
}
.section-kicker {
  font-size:var(--fs-xs);
  letter-spacing:1px;
  color:var(--accent);
  display:flex;
  gap:7px;
  align-items:center
}
.section-kicker .icon {
  width:15px;
  height:15px
}
.small-muted {
  font-size:var(--fs-xs);
  color:var(--subtle)
}
.step-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}
.step {
  position:relative;
  display:flex;
  gap:11px;
  text-align:left;
  padding:0;
  background:none;
  border:0;
  align-items:start
}
.step-number {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:25px;
  height:25px;
  border-radius:7px;
  border:1px solid #435553;
  color:#8db9af;
  font-size:var(--fs-xs)
}
.step:first-child .step-number {
  background:var(--accent);
  border-color:var(--accent);
  color:#15362b
}
.step strong {
  display:block;
  font-size:var(--fs-sm);
  font-weight:550
}
.step small {
  display:block;
  font-size:var(--fs-xs);
  color:var(--muted);
  margin-top:4px
}
.step .icon {
  width:13px;
  height:13px;
  color:var(--subtle);
  margin-left:auto;
  margin-top:5px
}
.dropzone {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:29px 22px;
  border:1px dashed #3a4654;
  border-radius:9px;
  background:#161c23;
  text-align:left;
  transition:background .15s,border-color .15s;
  cursor:pointer;
  width:100%;
  color:inherit
}
.dropzone:hover,.dropzone.dragging {
  border-color:var(--accent);
  background:#1b2b29
}
.dropzone-icon {
  width:45px;
  height:45px;
  border-radius:11px;
  background:#252d37;
  display:grid;
  place-items:center;
  color:#bcc8d7
}
.dropzone strong {
  font-size:var(--fs-sm);
  font-weight:500;
  display:block
}
.dropzone small {
  font-size:var(--fs-xs);
  color:var(--subtle);
  display:block;
  margin-top:5px
}
.file-formats {
  display:flex;
  gap:6px;
  margin-top:17px;
  flex-wrap:wrap
}
.format-tag {
  font-size:var(--fs-badge);
  padding:2px 6px;
  border:1px solid var(--border);
  color:var(--muted);
  border-radius:4px;
  letter-spacing:.3px
}
.storage-note {
  font-size:var(--fs-xs);
  line-height:1.8;
  color:var(--subtle);
  margin-top:15px
}
.table-wrap {
  overflow:auto
}
table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  white-space:nowrap
}
th {
  font-size:var(--fs-xs);
  font-weight:500;
  color:var(--subtle);
  background:#161a20;
  padding:12px 21px;
  border-bottom:1px solid var(--border)
}
td {
  padding:15px 21px;
  border-bottom:1px solid #252b33;
  font-size:var(--fs-sm);
  color:var(--muted)
}
tbody tr:last-child td {
  border-bottom:0
}
tbody tr:hover {
  background:#1c222b
}
.file-name {
  display:flex;
  align-items:center;
  gap:11px;
  max-width:400px;
  color:var(--text)
}
.file-name span {
  overflow:hidden;
  text-overflow:ellipsis
}
.file-tile {
  width:32px;
  height:37px;
  border:1px solid #394963;
  border-radius:6px;
  background:#26334b;
  display:grid;
  place-items:center;
  font-size:var(--fs-xs);
  font-weight:650;
  color:#9cbbec;
  flex-shrink:0
}
.file-tile.pdf {
  background:#3a272d;
  border-color:#5b373d;
  color:#e69aa3
}
.file-tile.txt,.file-tile.md {
  background:#253b34;
  border-color:#355348;
  color:#90d4bc
}
.file-tile.pptx {
  background:#3b3027;
  border-color:#62472f;
  color:#e4b182
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:4px;
  padding:3px 7px;
  font-size:var(--fs-badge);
  color:var(--muted);
  background:#262d37;
  border:1px solid #333c49;
  white-space:nowrap
}
.badge.success {
  color:#82d7ba;
  background:#1b342d;
  border-color:#2c5042
}
.badge.pending {
  color:#d6bb86;
  background:#332f26;
  border-color:#4b4332
}
.badge .status-dot {
  width:4px;
  height:4px
}
.badge.muted .status-dot {
  background:var(--subtle)
}
.empty-state {
  padding:34px 24px;
  text-align:center
}
.empty-symbol {
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  margin:0 auto 14px;
  background:#222a34;
  border:1px solid #333e4c;
  border-radius:12px;
  color:#91a1b6
}
.empty-symbol .icon {
  width:22px;
  height:22px
}
.empty-state h3 {
  font-size:var(--fs-md);
  font-weight:500;
  margin-bottom:6px
}
.empty-state p {
  color:var(--subtle);
  font-size:var(--fs-xs);
  line-height:1.9
}
.empty-state .btn {
  margin-top:17px
}
.service-list {
  padding:7px 21px
}
.service-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  border-bottom:1px solid #272d35;
  font-size:var(--fs-sm);
  color:var(--muted)
}
.service-row:last-child {
  border-bottom:0
}
.service-label {
  display:flex;
  gap:9px;
  align-items:center
}
.service-label .icon {
  width:14px;
  color:var(--subtle)
}
.panel-foot {
  padding:12px 21px;
  font-size:var(--fs-xs);
  color:var(--subtle);
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center
}
.connection-mini {
  display:flex;
  align-items:center;
  gap:12px
}
.provider-symbol {
  width:37px;
  height:37px;
  border:1px solid #45594d;
  border-radius:10px;
  background:#25382f;
  display:grid;
  place-items:center;
  color:#99d3ae;
  font-family:var(--font-mono);
  font-size:14px;
  font-weight:700
}
.provider-symbol.claude-cli {
  background:#3d302b;
  color:#e7b8a4;
  border-color:#63483a
}
.provider-symbol.codex-cli {
  background:#263543;
  color:#a1c9e4;
  border-color:#3a5368
}
.connection-mini strong {
  display:block;
  font-size:var(--fs-sm);
  font-weight:550
}
.connection-mini small {
  display:block;
  font-size:var(--fs-xs);
  color:var(--subtle);
  margin-top:3px
}
.connection-note {
  margin:16px 0;
  color:var(--muted);
  font-size:var(--fs-xs);
  line-height:1.9
}
.provider-switch {
  display:flex;
  gap:7px
}
.provider-chip {
  background:#20262f;
  border:1px solid #333e49;
  border-radius:6px;
  padding:6px 9px;
  color:var(--muted);
  font-size:var(--fs-sm)
}
.provider-chip.selected {
  border-color:#4c8d79;
  background:#213b33;
  color:#88d9bf
}
.activity-list {
  padding:0 21px 16px
}
.activity {
  display:flex;
  gap:11px;
  padding-top:17px
}
.activity-marker {
  width:25px;
  height:25px;
  background:#252d36;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#93a6bc
}
.activity-marker .icon {
  width:12px;
  height:12px
}
.activity strong {
  display:block;
  font-size:var(--fs-sm);
  font-weight:450;
  max-width:200px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.activity small {
  display:block;
  color:var(--subtle);
  font-size:var(--fs-xs);
  margin-top:3px
}
.toolbar {
  display:flex;
  gap:12px;
  align-items:center;
  padding:16px 21px;
  border-bottom:1px solid var(--border);
  flex-wrap:wrap
}
.search-field {
  display:flex;
  align-items:center;
  gap:9px;
  flex:1;
  min-width:180px;
  border:1px solid #333d49;
  border-radius:7px;
  background:#12171e;
  padding:0 12px
}
.search-field .icon {
  width:16px;
  color:var(--subtle)
}
.search-field input {
  width:100%;
  min-width:0;
  border:0!important;
  background:none!important;
  padding:10px 0!important;
  outline:none;
  color:var(--text);
  font-size:var(--fs-sm)
}
.search-field:focus-within {
  border-color:var(--accent)
}
input:not([type=checkbox]):not([type=radio]),textarea,select {
  border:1px solid #36404e;
  border-radius:7px;
  background:#12171d;
  color:var(--text);
  padding:10px 12px;
  min-height:39px;
  max-width:100%
}
input::placeholder,textarea::placeholder {
  color:#768194
}
select {
  font-size:var(--fs-sm)
}
textarea {
  resize:vertical;
  line-height:1.9;
  width:100%
}
.field {
  display:grid;
  gap:7px
}
.field>label,.field>span {
  font-size:var(--fs-xs);
  color:#b4bdcb
}
.field small {
  font-size:var(--fs-xs);
  color:var(--subtle)
}
.field-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.form-stack {
  display:grid;
  gap:21px
}
.notice {
  background:#1b2730;
  border:1px solid #304656;
  border-radius:8px;
  padding:13px 16px;
  font-size:var(--fs-xs);
  color:#b1c7da;
  line-height:1.9;
  margin-bottom:22px;
  display:flex;
  gap:11px;
  align-items:start
}
.notice>.icon {
  width:16px;
  height:16px;
  margin-top:3px;
  color:var(--blue)
}
.notice p strong {
  font-weight:550;
  color:#d4e3ef
}
.search-hero {
  padding:29px 27px;
  border:1px solid #354441;
  border-radius:var(--radius);
  background:linear-gradient(110deg,#1b2c28,#1b222c);
  margin-bottom:23px
}
.search-hero h2 {
  font-size:var(--fs-xs);
  margin-bottom:8px
}
.search-hero p {
  font-size:var(--fs-xs);
  color:var(--muted);
  margin-bottom:22px
}
.search-hero .search-field {
  background:#10181b
}
.search-hero .search-field input {
  font-size:var(--fs-xs)
}
.search-bar {
  display:flex;
  gap:10px
}
.search-meta {
  display:flex;
  justify-content:space-between;
  margin-top:15px;
  color:var(--subtle);
  font-size:var(--fs-xs)
}
.template-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}
.template-card {
  padding:22px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  display:flex;
  flex-direction:column;
  align-items:start;
  gap:15px
}
.template-card h3 {
  font-size:var(--fs-md);
  word-break:break-all
}
.template-card p {
  font-size:var(--fs-xs);
  color:var(--subtle)
}
.template-card .btn {
  margin-top:auto;
  width:100%
}
.editor-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:22px
}
.editor-title {
  font-size:var(--fs-xl);
  width:100%;
  border:0!important;
  background:none!important;
  padding:0!important;
  border-radius:0!important
}
.editor-content {
  min-height:420px;
  border:0!important;
  background:none!important;
  padding:5px 0!important;
  font-size:var(--fs-sm)
}
.source-options {
  display:grid;
  gap:11px;
  max-height:220px;
  overflow:auto
}
.source-option {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:var(--fs-sm);
  color:var(--muted)
}
input[type=checkbox],input[type=radio] {
  accent-color:var(--accent);
  width:15px;
  height:15px;
  flex-shrink:0
}
.source-option span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.provider-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:24px
}
.provider-card {
  display:flex;
  flex-direction:column;
  align-items:start;
  text-align:left;
  gap:18px;
  padding:24px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--panel);
  position:relative
}
.provider-card.selected {
  border-color:#4c927b;
  background:linear-gradient(160deg,#1d2f29,#191e24)
}
.provider-card .provider-symbol {
  width:46px;
  height:46px;
  font-size:18px
}
.provider-card p {
  font-size:var(--fs-xs);
  color:var(--muted);
  line-height:1.9;
  flex:1
}
.provider-card .selection-circle {
  position:absolute;
  right:20px;
  top:20px;
  width:17px;
  height:17px;
  border-radius:50%;
  border:1px solid #54606e;
  display:grid;
  place-items:center
}
.provider-card.selected .selection-circle {
  background:var(--accent);
  border-color:var(--accent);
  color:#142e25
}
.selection-circle .icon {
  width:12px;
  height:12px
}
.settings-layout {
  max-width:850px
}
.setting-section {
  margin-bottom:22px
}
.setting-section h2 {
  margin-bottom:5px
}
.setting-description {
  font-size:var(--fs-xs);
  color:var(--muted);
  margin-bottom:21px
}
.loading-state {
  padding:80px 20px;
  text-align:center;
  color:var(--muted)
}
dialog {
  border:1px solid #3c4755;
  border-radius:14px;
  background:var(--panel);
  color:var(--text);
  padding:0;
  width:min(620px,calc(100% - 32px));
  max-height:85vh;
  overflow:auto
}
dialog::backdrop {
  background:#0009;
  backdrop-filter:blur(3px)
}
.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:20px 24px;
  border-bottom:1px solid var(--border)
}
.dialog-head h2 {
  font-size:var(--fs-lg)
}
.dialog-body {
  padding:24px
}
.registration-list {
  list-style:none;
  padding:0;
  margin:12px 0;
  max-height:280px;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:8px
}
.registration-list li {
  padding:12px;
  border-bottom:1px solid var(--border);
  overflow-wrap:anywhere
}
.registration-list li:last-child { border-bottom:0 }
.analysis-choice { display:flex; gap:8px; align-items:center }
.analysis-choice input { width:auto }
.analysis-block { margin-block:16px; border-top:1px solid var(--border); padding-top:12px }
.analysis-block>small { color:var(--muted) }
.search-evidence { border-top:1px solid var(--border); padding:22px 0; overflow-wrap:anywhere }
.search-evidence h3 { margin:12px 0 6px }
.search-evidence>small,.duplicate-source small { color:var(--muted) }
.search-evidence details { margin-top:14px }
.duplicate-source { padding:12px; margin-top:10px; border:1px solid var(--border); border-radius:8px }
.analysis-block td { white-space:pre-wrap; min-width:90px }
.registration-list label { display:flex; align-items:flex-start; gap:8px }
.registration-list input[type=checkbox] { width:auto; flex:none; margin-top:4px }
.registration-list small,.registration-detail { display:block; color:var(--muted); margin-top:5px; overflow-wrap:anywhere }
.dialog-actions {
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding:17px 24px;
  border-top:1px solid var(--border)
}
.preview-text {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-family:inherit;
  font-size:var(--fs-code);
  line-height:2;
  margin:0;
  max-height:50vh;
  overflow:auto
}
.toast-region {
  position:fixed;
  bottom:23px;
  right:24px;
  display:grid;
  gap:10px;
  z-index:100;
  width:min(380px,calc(100vw - 32px))
}
.toast {
  background:#24362e;
  border:1px solid #416755;
  color:#d3e8dc;
  box-shadow:0 8px 35px #0005;
  border-radius:9px;
  padding:14px 18px;
  font-size:var(--fs-sm);
  animation:toast-in .2s ease-out
}
.toast.error {
  background:#3a272b;
  border-color:#69414a;
  color:#f4cad2
}
.mobile-menu {
  display:none
}
.sidebar-shade {
  display:none
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  z-index:200;
  padding:12px 20px;
  background:var(--accent);
  color:#102822
}
.skip-link:focus {
  top:10px
}
.noscript {
  position:fixed;
  inset:30% 10% auto;
  background:var(--panel);
  padding:40px;
  border:1px solid var(--border);
  z-index:100
}
.full-width {
  width:100%
}
.mb-22 {
  margin-bottom:22px
}
.text-muted {
  color:var(--subtle)
}
@keyframes toast-in {
  from {
    transform:translateY(8px);
    opacity:0
  }
  to {
    transform:translateY(0);
    opacity:1
  }
}
@media(min-width:1600px) {
  main {
    padding-top:45px
  }
  .page-header {
    margin-bottom:35px
  }
  .stats-grid {
    gap:22px
  }
  .main-grid {
    grid-template-columns:minmax(0,1fr) 350px
  }
}
@media(max-width:1200px) {
  .sidebar {
    width:216px;
    padding-inline:14px
  }
  .app-shell {
    margin-left:216px
  }
  .topbar {
    padding-inline:25px
  }
  main {
    padding:28px 25px 0
  }
  .main-grid {
    grid-template-columns:minmax(0,1fr) 270px;
    gap:18px
  }
  .stat-card {
    padding:16px
  }
  .step-grid {
    grid-template-columns:1fr
  }
  .step small {
    display:inline;
    margin-left:7px
  }
  .quick-start-top {
    margin-bottom:16px
  }
  .step {
    align-items:center
  }
  .step .icon {
    margin-top:0
  }
  .page-header h1 {
    font-size:var(--fs-xl)
  }
  .template-grid {
    grid-template-columns:repeat(2,1fr)
  }
}
@media(max-width:1000px) {
  .main-grid {
    grid-template-columns:1fr
  }
  .main-grid>.stack:last-child {
    grid-template-columns:1fr 1fr
  }
  .main-grid>.stack:last-child>.panel:last-child {
    grid-column:1/-1
  }
  .editor-grid {
    grid-template-columns:1fr
  }
  .provider-grid {
    gap:12px
  }
  .provider-card {
    padding:18px
  }
  .page-header {
    align-items:start
  }
  .header-actions {
    justify-content:flex-end
  }
  .stats-grid {
    gap:12px
  }
  .stat-caption {
    font-size:var(--fs-xs)
  }
}
@media(max-width:760px) {
  .sidebar {
    transform:translateX(-100%);
    width:246px;
    transition:transform .2s
  }
  .sidebar.open {
    transform:translateX(0)
  }
  .sidebar-shade:not([hidden]) {
    display:block;
    position:fixed;
    inset:0;
    z-index:25;
    background:#0008;
    border:0
  }
  .app-shell {
    margin-left:0
  }
  .topbar {
    height:61px;
    padding-inline:19px
  }
  .mobile-menu {
    display:grid
  }
  .breadcrumb {
    gap:8px
  }
  .topbar-right {
    gap:10px
  }
  .topbar-host {
    font-size:var(--fs-xs)
  }
  .topbar-divider {
    display:none
  }
  main {
    padding:24px 18px 0
  }
  .page-header {
    gap:13px;
    flex-direction:column;
    margin-bottom:23px
  }
  .page-header h1 {
    font-size:var(--fs-xl)
  }
  .subtitle {
    font-size:var(--fs-xs)
  }
  .header-actions {
    justify-content:start
  }
  .stats-grid {
    grid-template-columns:repeat(2,1fr);
    gap:11px;
    margin-bottom:20px
  }
  .stat-card {
    padding:15px
  }
  .stat-value {
    font-size:24px
  }
  .main-grid>.stack:last-child {
    grid-template-columns:1fr
  }
  .stack {
    gap:19px
  }
  .quick-start {
    padding:19px
  }
  .step-grid {
    gap:15px
  }
  .quick-start-top>span {
    display:none
  }
  .panel-head {
    padding:17px 18px
  }
  .panel-body {
    padding:18px
  }
  .page-footer {
    padding:28px 18px 20px;
    font-size:var(--fs-xs);
    gap:15px
  }
  .page-footer span:last-child {
    display:none
  }
  .toolbar {
    padding:14px;
    gap:9px
  }
  .toolbar .search-field {
    min-width:100%;
    order:-1
  }
  .template-grid,.provider-grid {
    grid-template-columns:1fr
  }
  .provider-card {
    gap:12px;
    padding:21px
  }
  .provider-card .provider-symbol {
    width:36px;
    height:36px
  }
  .provider-card p {
    max-width:90%
  }
  .field-grid {
    grid-template-columns:1fr
  }
  .search-hero {
    padding:23px 18px
  }
  .search-bar {
    flex-wrap:wrap
  }
  .search-bar>.search-field {
    min-width:100%
  }
  .search-bar>.btn {
    width:100%
  }
  .search-meta {
    flex-wrap:wrap;
    gap:8px
  }
  .dropzone {
    padding:24px 17px;
    gap:13px
  }
  .dropzone strong {
    font-size:var(--fs-sm)
  }
  .dropzone small {
    font-size:var(--fs-xs)
  }
  th,td {
    padding-inline:16px
  }
  .file-name {
    max-width:240px
  }
  .editor-content {
    min-height:300px
  }
  .toast-region {
    bottom:16px;
    right:16px
  }
  .dialog-body {
    padding:19px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
