:root {
  --mint-50: #effaf6;
  --mint-100: #d7f2e9;
  --mint-300: #7fe1c9;
  --mint-500: #28c5a5;
  --mint-600: #17a98d;
  --teal-700: #0f7b6a;
  --teal-900: #172f2a;
  --lime-100: #dff2cf;
  --yellow-100: #fff1bd;
  --canvas: #dfecea;
  --surface: #f7fbf9;
  --panel: rgba(255, 255, 255, 0.88);
  --line: #dbe8e3;
  --muted: #728681;
  --text: #213b36;
  --radius-sm: 8px;
  --radius-md: 14px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background:
    linear-gradient(90deg, rgba(15, 123, 106, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(15, 123, 106, 0.06) 1px, transparent 1px),
    var(--canvas);
  background-size: 34px 34px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 3vw, 42px); line-height: 1.05; letter-spacing: 0; }
h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; letter-spacing: 0; }
h3 { font-size: 15px; line-height: 1.25; letter-spacing: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.sidebar-toggle { position: fixed; opacity: 0; pointer-events: none; }
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  width: min(1500px, calc(100% - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 30px;
  background: rgba(246,250,248,.84);
  box-shadow: 0 22px 70px rgba(28,63,55,.09);
  transition: grid-template-columns .2s ease;
}
.sidebar {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: calc(100vh - 32px);
  padding: 28px 18px;
  border-right: 1px solid rgba(219,232,227,.78);
  border-radius: 30px 0 0 30px;
  background: rgba(239,250,246,.74);
}
.brand, .nav-item, .user-pill, .system-card, .badge, .button-row, .topbar, .topbar-actions, .section-head { display: flex; align-items: center; }
.brand { gap: 10px; padding: 0 8px; color: var(--teal-700); font-weight: 800; }
.brand-mark, .avatar, .ai-mark { display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(145deg, var(--mint-500), var(--teal-700)); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.nav-list { display: grid; gap: 7px; }
.nav-item { gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm); color: #5e766f; font-size: 13px; font-weight: 700; }
.nav-item:hover { color: var(--teal-700); background: rgba(255,255,255,.65); }
.system-card { gap: 10px; margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.78); }
.system-card p, .hero-copy, .form-message, .notice p, .info-panel p, .info-panel li { color: var(--muted); }
.status-dot, .badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 4px rgba(40,197,165,.14); }
.collapse-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -8px 0 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--teal-700);
  background: rgba(255,255,255,.78);
  transition: transform .2s ease, background .2s ease;
}
.collapse-btn:hover { background: #fff; }
.collapse-btn .menu-icon { display: none; }
.info-popover {
  position: relative;
  margin-top: auto;
}
.info-popover summary { list-style: none; }
.info-popover summary::-webkit-details-marker { display: none; }
.info-trigger {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(40,197,165,.28);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(145deg, var(--mint-500), var(--teal-700));
  box-shadow: 0 9px 22px rgba(15,123,106,.16);
}
.info-trigger span {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.info-panel {
  position: absolute;
  left: 0;
  bottom: 44px;
  z-index: 5;
  width: min(360px, calc(100vw - 44px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 36px rgba(28,63,55,.14);
}
.info-panel strong { display: block; margin-bottom: 7px; font-size: 13px; }
.info-panel p, .info-panel li { font-size: 12px; line-height: 1.4; }
.info-panel p + p, .info-panel ul + p { margin-top: 8px; }
.info-panel ul {
  display: grid;
  gap: 5px;
  margin: 7px 0 0;
  padding-left: 17px;
}
.info-popover:not([open]) .info-panel { display: none; }
.sidebar-toggle:checked + .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
.sidebar-toggle:checked + .app-shell .sidebar { align-items: center; padding-inline: 14px; }
.sidebar-toggle:checked + .app-shell .brand { padding: 0; }
.sidebar-toggle:checked + .app-shell .brand-name,
.sidebar-toggle:checked + .app-shell .nav-item span { display: none; }
.sidebar-toggle:checked + .app-shell .nav-item {
  justify-content: center;
  width: 46px;
  padding: 0;
}
.sidebar-toggle:checked + .app-shell .collapse-icon { transform: rotate(180deg); }
.sidebar-toggle:checked + .app-shell .info-panel {
  left: 46px;
  bottom: 0;
}
.page { min-width: 0; padding: 28px; }
.topbar { justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.topbar-actions, .button-row { gap: 8px; flex-wrap: wrap; }
.topbar .eyebrow { color: var(--mint-600); font-size: 13px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.hero-panel .eyebrow, .section .eyebrow { color: var(--mint-600); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.user-pill { gap: 8px; min-height: 40px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 700; }
.avatar { width: 32px; height: 32px; border-radius: 50%; font-size: 11px; }
.bento-grid, .content-grid, .auth-grid { display: grid; gap: 14px; }
.bento-grid { grid-template-columns: 1.35fr .85fr; }
.auth-grid { grid-template-columns: minmax(320px, 460px) minmax(260px, 1fr); }
.content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { border: 1px solid rgba(219,232,227,.9); border-radius: var(--radius-md); background: var(--panel); padding: 16px; }
.hero-panel { display: flex; flex-direction: column; justify-content: flex-start; gap: 18px; padding: 18px; border-color: rgba(40,197,165,.25); background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(239,250,246,.72)); }
.converter-grid { align-items: start; }
.converter-card { padding: 20px; }
.converter-help-card { gap: 16px; }
.converter-help-card h2 { font-size: clamp(19px, 1.65vw, 25px); line-height: 1.15; }
.converter-instruction { display: grid; gap: 10px; }
.hero-copy { max-width: 570px; margin-top: 0; font-size: 14px; line-height: 1.35; }
.form-card, .field { display: grid; gap: 12px; }
.field span { color: var(--muted); font-size: 12px; font-weight: 800; }
.field input, .field select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0; padding: 0 12px; color: var(--text); background: var(--surface); }
.field input:focus, .field select:focus { border-color: var(--mint-500); box-shadow: 0 0 0 3px rgba(40,197,165,.15); }
.inline-form { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.inline-input { width: 76px; min-height: 32px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 8px; color: var(--text); background: var(--surface); font-weight: 800; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-line { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 800; background: #fff; }
.btn-primary { color: #fff; background: var(--mint-500); }
.btn-secondary { color: var(--teal-700); border-color: var(--mint-100); background: var(--mint-50); }
.btn-ghost { color: var(--muted); border-color: var(--line); background: #fff; }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12px; }
.badge { gap: 7px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-soft { color: var(--teal-700); background: var(--lime-100); }
.ai-card { background: linear-gradient(145deg, rgba(223,242,207,.84), rgba(255,255,255,.88)); }
.ai-card p { color: var(--muted); font-size: 13px; font-weight: 700; }
.ai-mark { width: 30px; height: 30px; border-radius: 9px; font-family: var(--mono); }
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.notice-details { padding: 12px; border-radius: var(--radius-sm); background: var(--mint-50); }
.notice-details summary { color: var(--teal-700); font-weight: 800; cursor: pointer; }
.section { margin-top: 28px; }
.section-head { justify-content: space-between; margin-bottom: 14px; }
.table { display: grid; min-width: 0; }
.table-row { display: grid; grid-template-columns: minmax(128px, 1.45fr) minmax(96px, .86fr) minmax(70px, .6fr) minmax(0, 116px); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-users-row { grid-template-columns: minmax(180px, 1.4fr) minmax(92px, .65fr) minmax(86px, .65fr) minmax(86px, .65fr) minmax(150px, .9fr) minmax(120px, .8fr); }
.table-head { color: var(--text); font-size: 11px; text-transform: uppercase; }
.empty-state-card { display: grid; gap: 12px; padding: 16px; }
.notice-list { display: grid; gap: 10px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); background: var(--mint-50); }
.notice.warning { background: var(--yellow-100); }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; width: 100%; min-height: 100vh; margin: 0; border-radius: 0; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .collapse-btn { display: none; }
  .nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-popover { margin-top: 0; }
  .info-panel { left: auto; right: 0; bottom: auto; top: 44px; }
  .sidebar-toggle:checked + .app-shell { grid-template-columns: 1fr; }
  .sidebar-toggle:checked + .app-shell .brand-name,
  .sidebar-toggle:checked + .app-shell .nav-item span { display: inline; }
  .sidebar-toggle:checked + .app-shell .nav-item { justify-content: flex-start; width: auto; padding: 0 12px; }
  .bento-grid, .auth-grid, .content-grid, .field-grid { grid-template-columns: 1fr; }
  .page { padding: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .table-row { grid-template-columns: 1fr; }
}
