/* Cloner Cloud — mockup styles (MUI v6 look-alike, Cloner theme) */
@font-face { font-family: "Kanit"; src: url("../assets/Kanit-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Kanit"; src: url("../assets/Kanit-Medium.ttf"); font-weight: 500; }
@font-face { font-family: "Kanit"; src: url("../assets/Kanit-SemiBold.ttf"); font-weight: 600 700; }

:root {
  --primary: #00a784;
  --primary-dark: #00745c;
  --primary-08: rgba(0, 167, 132, 0.08);
  --primary-10: rgba(0, 167, 132, 0.1);
  --primary-20: rgba(0, 167, 132, 0.2);
  --navy: #0a1e37;
  --navy-light: rgb(80, 99, 130);
  --navy-select: #18365a;
  --ivory: #f0f0f0;
  --error: #d32f2f;
  --warning: #ed6c02;
  --info: #0288d1;
  --success: #2e7d32;
  --text: rgba(0, 0, 0, 0.87);
  --text-2: rgba(0, 0, 0, 0.6);
  --text-dis: rgba(0, 0, 0, 0.38);
  --divider: lightgrey;
  --shadow-1: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
  --shadow-6: 0px 3px 5px -1px rgba(0,0,0,0.2), 0px 6px 10px 0px rgba(0,0,0,0.14), 0px 1px 18px 0px rgba(0,0,0,0.12);
  --shadow-24: 0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12);
  --drawer-w: 250px;
  --drawer-collapsed: 61px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: Kanit, arial, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--primary); }
.material-icons, .material-icons-outlined { font-size: 24px; line-height: 1; vertical-align: middle; user-select: none; }
.icon-sm { font-size: 18px !important; }
.icon-xs { font-size: 16px !important; }
.c-primary { color: var(--primary); }
.c-grey { color: grey; }
.c-disabled { color: var(--text-dis); }
.c-error { color: var(--error); }
.c-warning { color: var(--warning); }
.c-navy-light { color: var(--navy-light); }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.hidden { display: none !important; }

/* ---------- App root ---------- */
#app { width: 100vw; height: 100vh; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: transparent; color: var(--primary); cursor: pointer;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02857em; text-transform: uppercase;
  padding: 6px 8px; border-radius: 4px; min-width: 64px; line-height: 1.75;
  transition: background-color 150ms, box-shadow 150ms;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-08); }
.btn .material-icons, .btn .material-icons-outlined { font-size: 20px; }
.btn.small { padding: 4px 5px; font-size: 0.8125rem; }
.btn.bold { font-weight: 700; font-size: 0.8rem; }
.btn.contained { background: var(--primary); color: #fff; box-shadow: var(--shadow-1); padding: 6px 16px; }
.btn.contained:hover { background: var(--primary-dark); }
.btn.outlined { border: 1px solid rgba(0,167,132,0.5); padding: 5px 15px; }
.btn.outlined:hover { border-color: var(--primary); }
.btn.navy { color: var(--navy); }
.btn.navy.contained { background: var(--navy); color: #fff; }
.btn.navy.outlined { border-color: rgba(10,30,55,.5); }
.btn.error { color: var(--error); }
.btn.error.contained { background: var(--error); color: #fff; }
.btn.grey { color: grey; }
.btn.fullwidth { width: 100%; }
.btn[disabled], .btn.disabled { color: var(--text-dis) !important; cursor: default; pointer-events: none; }
.btn.contained[disabled] { background: rgba(0,0,0,0.12) !important; box-shadow: none; }
.btn.outlined[disabled] { border-color: rgba(0,0,0,0.12) !important; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  color: rgba(0,0,0,0.54); cursor: pointer; padding: 0; flex-shrink: 0;
}
.icon-btn:hover { background: rgba(0,0,0,0.04); }
.icon-btn.small { width: 30px; height: 30px; }
.icon-btn.small .material-icons, .icon-btn.small .material-icons-outlined { font-size: 20px; }
.icon-btn[disabled] { color: var(--text-dis); pointer-events: none; }
.icon-btn.primary { color: var(--primary); }

.spinner {
  display: inline-block; width: 40px; height: 40px; border-radius: 50%;
  border: 3.6px solid var(--primary); border-right-color: transparent;
  animation: spin 0.9s linear infinite;
}
.spinner.small { width: 20px; height: 20px; border-width: 2.5px; }
.spinner.large { width: 60px; height: 60px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Inputs ---------- */
.field { position: relative; display: flex; flex-direction: column; min-width: 0; }
.field > label {
  position: absolute; top: -9px; left: 10px; padding: 0 4px; background: #fff;
  font-size: 0.75rem; color: var(--text-2); pointer-events: none; z-index: 1; line-height: 1.2;
}
.field input, .field select, .field textarea {
  width: 100%; height: 40px; border: 1px solid rgba(0,0,0,0.23); border-radius: 4px;
  padding: 8.5px 14px; font-size: 0.95rem; color: var(--text); background: #fff; outline: none;
}
.field textarea { height: auto; min-height: 90px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border: 2px solid var(--primary); padding: 7.5px 13px; }
.field:focus-within > label { color: var(--primary); }
.field.error input, .field.error select { border-color: var(--error); }
.field.error > label, .field .helper.error { color: var(--error); }
.field .helper { font-size: 0.75rem; color: var(--text-2); margin: 3px 14px 0; }
.field input[disabled], .field select[disabled] { background: #fafafa; color: var(--text-dis); border-color: rgba(0,0,0,0.12); }
.field .adorn { position: absolute; right: 6px; top: 0; height: 40px; display: flex; align-items: center; }
.field.with-adorn input { padding-right: 44px; }
.filter-field input { height: 40px; }

.check {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer; color: rgba(0,0,0,0.6); flex-shrink: 0;
}
.check:hover { background: var(--primary-08); }
.check.on { color: var(--primary); }
.check.disabled { color: var(--text-dis); pointer-events: none; }
.check .material-icons { font-size: 22px; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 0.95rem; }
.switch .track { position: relative; width: 34px; height: 14px; border-radius: 7px; background: rgba(0,0,0,0.38); transition: background 150ms; flex-shrink: 0; margin: 0 6px; }
.switch .thumb { position: absolute; top: -3px; left: -3px; width: 20px; height: 20px; border-radius: 50%; background: #fafafa; box-shadow: var(--shadow-1); transition: left 150ms, background 150ms; }
.switch.on .track { background: rgba(0,167,132,0.5); }
.switch.on .thumb { left: 17px; background: var(--primary); }
.switch.disabled { opacity: 0.5; pointer-events: none; }

.radio-group { display: flex; flex-direction: column; gap: 2px; }
.radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.95rem; }
.radio .material-icons { color: rgba(0,0,0,0.6); font-size: 22px; padding: 6px; border-radius: 50%; }
.radio.on .material-icons { color: var(--primary); }
.radio:hover .material-icons { background: var(--primary-08); }

/* ---------- Surfaces ---------- */
.card { background: #fff; border-radius: 4px; box-shadow: var(--shadow-1); overflow: hidden; }
.paper-outlined { background: #fff; border: 1px solid rgba(0,0,0,0.12); border-radius: 4px; }
.divider { height: 1px; background: rgba(0,0,0,0.12); border: 0; margin: 0; flex-shrink: 0; }
.divider-v { width: 1px; align-self: stretch; background: rgba(0,0,0,0.12); margin: 8px 0; flex-shrink: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 12px;
  font-size: 0.8125rem; background: rgba(0,0,0,0.08); color: var(--text); white-space: nowrap; max-width: 100%;
}
.chip.outlined { background: transparent; border: 1px solid rgba(0,0,0,0.23); }
.chip.primary { background: var(--primary); color: #fff; }
.chip.primary.outlined { background: transparent; color: var(--primary); border-color: var(--primary); }
.chip.error { background: var(--error); color: #fff; }
.chip.warning { background: var(--warning); color: #fff; }
.chip.clickable { cursor: pointer; }
.chip.clickable:hover { filter: brightness(0.95); }
.chip .material-icons { font-size: 16px; }

.alert { display: flex; gap: 12px; padding: 6px 16px; border-radius: 4px; font-size: 0.875rem; line-height: 1.43; align-items: flex-start; }
.alert .material-icons, .alert .material-icons-outlined { font-size: 22px; padding: 7px 0; }
.alert .alert-body { padding: 8px 0; }
.alert.info { background: rgb(229, 246, 253); color: rgb(1, 67, 97); }
.alert.info .material-icons, .alert.info .material-icons-outlined { color: var(--info); }
.alert.warning { background: rgb(255, 244, 229); color: rgb(102, 60, 0); }
.alert.warning .material-icons, .alert.warning .material-icons-outlined { color: var(--warning); }
.alert.error { background: rgb(253, 237, 237); color: rgb(95, 33, 32); }
.alert.error .material-icons, .alert.error .material-icons-outlined { color: var(--error); }
.alert.success { background: rgb(237, 247, 237); color: rgb(30, 70, 32); }
.alert.success .material-icons, .alert.success .material-icons-outlined { color: var(--success); }

.progress { height: 4px; background: var(--primary-20); border-radius: 2px; overflow: hidden; width: 100%; }
.progress > div { height: 100%; background: var(--primary); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}

/* ---------- Tooltip ---------- */
.tooltip {
  position: fixed; z-index: 4000; background: rgba(97,97,97,0.92); color: #fff; font-size: 0.6875rem;
  padding: 4px 8px; border-radius: 4px; max-width: 300px; pointer-events: none; line-height: 1.4em;
  opacity: 0; transition: opacity 120ms;
}
.tooltip.show { opacity: 1; }

/* ---------- Menus / poppers ---------- */
.menu {
  position: fixed; z-index: 2000; background: #fff; border-radius: 4px; box-shadow: var(--shadow-6);
  min-width: 160px; padding: 0; overflow: auto; max-height: 70vh;
  animation: grow 140ms ease-out; transform-origin: right top;
}
@keyframes grow { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.menu-item {
  display: flex; align-items: center; gap: 16px; padding: 6px 16px; min-height: 40px;
  cursor: pointer; font-size: 0.9rem; white-space: nowrap;
}
.menu-item:hover { background: rgba(0,0,0,0.04); }
.menu-item.disabled { opacity: 0.38; pointer-events: none; }
.menu-item.selected { background: var(--primary-08); }
.menu-item .material-icons { color: grey; }
.menu .divider { margin: 4px 0; }

/* ---------- Dialog ---------- */
.dialog-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1300;
  display: flex; align-items: center; justify-content: center; padding: 32px;
  animation: fade 180ms;
}
.dialog-backdrop.top { align-items: flex-start; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dialog {
  background: #fff; border-radius: 4px; box-shadow: var(--shadow-24); max-height: calc(100vh - 64px);
  display: flex; flex-direction: column; width: 100%; max-width: 600px; animation: pop 200ms ease-out;
}
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.dialog.xs { max-width: 444px; } .dialog.sm { max-width: 600px; } .dialog.md { max-width: 900px; }
.dialog.lg { max-width: 1200px; } .dialog.xl { max-width: 1536px; }
.dialog-title { padding: 16px 24px; font-size: 1.25rem; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.dialog-content { padding: 8px 24px 16px; overflow-y: auto; flex: 1; }
.dialog-content.dividers { border-top: 1px solid rgba(0,0,0,0.12); border-bottom: 1px solid rgba(0,0,0,0.12); padding: 16px 24px; }
.dialog-actions { padding: 8px 16px 12px; display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.dialog-actions.space-between { justify-content: space-between; }

/* ---------- Snackbar ---------- */
#snackbars { position: fixed; left: 50%; transform: translateX(-50%); align-items: center; bottom: 20px; display: flex; flex-direction: column-reverse; gap: 8px; z-index: 5000; }
.snackbar {
  min-width: 288px; max-width: 520px; padding: 6px 16px; border-radius: 4px; color: #fff; font-size: 0.875rem;
  box-shadow: var(--shadow-6); display: flex; align-items: center; gap: 10px; min-height: 48px; background: #313131;
  animation: slideup 220ms ease-out;
}
.snackbar.success { background: var(--primary); }
.snackbar.error { background: var(--error); }
.snackbar.warning { background: var(--warning); }
.snackbar.info { background: #2196f3; }
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Dashboard shell ---------- */
.dash { display: flex; width: 100vw; height: 100vh; overflow: hidden; }
.drawer {
  height: 100vh; background: var(--navy); color: var(--navy-light); flex-shrink: 0;
  width: var(--drawer-w); transition: width 225ms cubic-bezier(0.4,0,0.6,1); overflow: hidden;
  display: flex; flex-direction: column;
}
.drawer.collapsed { width: var(--drawer-collapsed); }
.drawer.collapsed.hover-open { width: var(--drawer-w); }
.drawer-inner { width: var(--drawer-w); display: flex; flex-direction: column; height: 100%; }
.drawer-logo { height: 8vh; min-height: 52px; padding: 20px 16px 8px; cursor: pointer; position: relative; flex-shrink: 0; }
.drawer-logo img { position: absolute; transition: opacity 200ms; }
.drawer-logo .full { height: 30px; top: 20px; left: 16px; }
.drawer-logo .mini { height: 36px; top: 16px; left: 14px; opacity: 0; }
.drawer.collapsed:not(.hover-open) .drawer-logo .full { opacity: 0; }
.drawer.collapsed:not(.hover-open) .drawer-logo .mini { opacity: 1; }
.drawer-list { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.drawer-list::-webkit-scrollbar { width: 4px; } .drawer-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
.drawer-btn {
  display: flex; align-items: center; height: 6vh; min-height: 40px; padding: 0 18px; cursor: pointer; flex-shrink: 0;
  color: var(--navy-light); font-size: 16px; white-space: nowrap;
}
.drawer-btn:hover { background: rgba(255,255,255,0.05); }
.drawer-btn.selected { background: var(--navy-select); color: var(--ivory); }
.drawer-btn .material-icons { width: 56px; min-width: 56px; color: inherit; }
.drawer-sub { display: flex; flex-direction: column; flex-shrink: 0; }
.drawer-cat {
  display: flex; align-items: center; height: 6vh; min-height: 38px; cursor: pointer; color: rgb(200,199,230);
  font-size: 0.8rem; padding-right: 10px; white-space: nowrap;
}
.drawer-cat:hover { background: rgba(255,255,255,0.08); }
.drawer-cat.selected { background: var(--navy-select); color: var(--ivory); }
.drawer-cat .material-icons { width: 56px; min-width: 56px; padding-left: 18px; text-align: left; color: inherit; font-size: 22px; }
.drawer-cat .label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.drawer-cat .toggle {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15); color: inherit; flex-shrink: 0;
}
.drawer-cat .toggle:hover { background: rgba(255,255,255,0.3); }
.drawer-cat .toggle .material-icons { width: auto; min-width: 0; padding: 0; font-size: 16px; }
.drawer-more { color: rgb(200,199,230); font-size: 0.75rem; padding: 6px 18px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.drawer-more:hover { background: rgba(255,255,255,0.05); }

.dash-body { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; background: var(--ivory); }
.topbar {
  height: 8vh; min-height: 52px; background: #fff; border-bottom: 1px solid lightgrey; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.locale-select { display: flex; align-items: center; gap: 2px; color: var(--navy-light); cursor: pointer; padding: 4px 6px; border-radius: 4px; font-size: 0.8rem; }
.locale-select:hover { background: rgba(0,0,0,0.04); }
.locale-select .material-icons { color: var(--navy-light); }
.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px; border-radius: 24px; }
.user-chip:hover { background: rgba(0,0,0,0.04); }
.user-chip .names { display: flex; flex-direction: column; line-height: 1.15; }
.user-chip .names .n { font-size: 0.9rem; color: var(--navy); }
.user-chip .names .u { font-size: 0.75rem; color: var(--text-2); }
.group-btn { width: 300px; justify-content: space-between; color: var(--navy); border-color: rgba(10,30,55,0.35) !important; text-transform: none; font-size: 0.95rem; }
.group-btn .gname { overflow: hidden; text-overflow: ellipsis; }

.dash-content { flex: 1; min-height: 0; overflow: auto; position: relative; }

/* ---------- Basic layout (list pages) ---------- */
.basic-container { padding: 2vh; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.basic-card { display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.basic-header {
  min-height: 8vh; padding: 0 2vh; display: flex; align-items: center; border-bottom: 1px solid lightgrey;
  font-size: 20px; flex-shrink: 0; gap: 12px;
}
.basic-filter {
  min-height: 8vh; padding: 1vh 16px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; flex-shrink: 0;
}
.basic-filter .filter-group { display: flex; align-items: center; gap: 4px; }
.basic-filter .actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.basic-headers {
  height: 6vh; min-height: 38px; padding: 0 1vh; display: flex; align-items: center; gap: 1vh;
  border-bottom: 1px solid lightgrey; white-space: nowrap; flex-shrink: 0; font-size: 0.95rem;
}
.basic-core { flex: 1; min-height: 120px; overflow-y: auto; padding: 0 2vh; }
.basic-footer { height: 6vh; min-height: 44px; padding: 0 2vh; display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-shrink: 0; }
.basic-row {
  display: flex; align-items: center; gap: 8px; min-height: 6vh; padding: 4px 0;
  border-bottom: 1px solid lightgrey; font-size: 0.95rem;
}
.basic-row.selected { background: var(--primary-10); }
.basic-row.clickable { cursor: pointer; }
.basic-row.clickable:hover { background: rgba(0,0,0,0.03); }
.basic-row.clickable.selected:hover { background: rgba(0,167,132,0.14); }
.basic-row .cell { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.basic-row .cell.center, .basic-headers .cell.center { justify-content: center; }
.basic-row .cell.end, .basic-headers .cell.end { justify-content: flex-end; }
.basic-headers .cell { display: flex; align-items: center; min-width: 0; }
.sort-header { display: inline-flex; align-items: center; gap: 2px; cursor: pointer; user-select: none; }
.sort-header .material-icons { font-size: 18px; opacity: 0; transition: opacity 120ms, transform 150ms; }
.sort-header:hover .material-icons { opacity: 0.5; }
.sort-header.active .material-icons { opacity: 1; }
.sort-header.desc .material-icons { transform: rotate(180deg); }
.state-box { height: 30vh; display: flex; align-items: center; justify-content: center; }
.state-box .alert { width: 50%; }

.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn {
  min-width: 32px; height: 32px; border-radius: 16px; border: 0; background: transparent; cursor: pointer;
  font-size: 0.875rem; color: var(--text); padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover { background: rgba(0,0,0,0.04); }
.page-btn.current { background: var(--primary); color: #fff; }
.page-btn[disabled] { color: var(--text-dis); pointer-events: none; }
.page-size { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-2); }
.page-size select { border: 0; font-size: 0.85rem; background: transparent; cursor: pointer; }

/* ---------- Generic page bits ---------- */
.page-pad { padding: 2vh; }
.section-title { font-size: 1.05rem; font-weight: 500; color: var(--navy); margin: 0 0 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.92rem; }
.kv .k { color: var(--text-2); }
.tabs { display: flex; border-bottom: 1px solid rgba(0,0,0,0.12); }
.tab { padding: 10px 16px; cursor: pointer; font-size: 0.875rem; text-transform: uppercase; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 500; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Stepper */
.stepper { display: flex; align-items: center; padding: 16px 24px; gap: 8px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-2); white-space: nowrap; }
.step .dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.38); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.step.active { color: var(--text); font-weight: 500; }
.step.active .dot, .step.done .dot { background: var(--primary); }
.step.done .dot .material-icons { font-size: 16px; }
.step-line { flex: 1; height: 1px; background: #bdbdbd; min-width: 24px; }

/* Public pages (login, newpass, shared) */
.public { width: 100vw; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; background: #fff; overflow: auto; }
.public-top { display: flex; justify-content: flex-end; padding: 8px 16px; }
.public-center { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 0 16px; }
.public-logo { width: min(33vw, 560px); min-width: 240px; }
.public-title { font-size: 1.5rem; text-transform: uppercase; margin: 0; font-weight: 400; }
.public-form { width: min(33vw, 480px); min-width: 280px; display: flex; flex-direction: column; gap: 24px; }
.public-bottom { display: flex; justify-content: flex-end; padding: 8px; }

/* Scrollbars */
.dash-content ::-webkit-scrollbar, .dialog ::-webkit-scrollbar { width: 8px; height: 8px; }
.dash-content ::-webkit-scrollbar-thumb, .dialog ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }

/* Help mode: tooltips everywhere get a subtle dashed hint */
body.help-mode [data-help] { outline: 1px dashed rgba(0,167,132,0.6); outline-offset: 2px; }

/* Mockup control pill */
#mock-pill {
  position: fixed; left: 10px; bottom: 10px; z-index: 6000; display: flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; border-radius: 24px; padding: 4px 6px 4px 14px; box-shadow: var(--shadow-6);
  font-size: 0.8rem;
}
#mock-pill .tag { color: #7fe3cd; font-weight: 600; letter-spacing: .05em; margin-right: 4px; }
#mock-pill button {
  border: 0; background: rgba(255,255,255,0.1); color: #fff; border-radius: 16px; padding: 5px 10px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem;
}
#mock-pill button:hover { background: rgba(255,255,255,0.22); }
#mock-pill button .material-icons { font-size: 16px; }
#mock-pill button.on { background: var(--primary); }
#mock-pill .tag { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
#mock-pill .tag .material-icons { font-size: 16px; }
#mock-pill:not(.open):not(:hover) button { display: none; }
#mock-pill:not(.open):not(:hover) { padding-right: 12px; }
