/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Prompt","arguments":[{"subsets":["latin","thai"],"weight":["400","500","600","700","800"],"variable":"--font-prompt","display":"swap"}],"variableName":"prompt"} ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/e9fcf2a736cc2865-s.p.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/5ba6339fa8c3ef7b-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/7510f746b21ae7c3-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/3c365cdafe49b4eb-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/3d2d27a4cad47329-s.p.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/70c6212c0873ede2-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/1ce1ffaf105af326-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/4642fe567cc45cd6-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/381ef99eada06d71-s.p.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/efb1d0d3266e2361-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/cdca6fff670edd4c-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/d536ec48f0acd73b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/55190bc973e13381-s.p.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/5084e176e02368e5-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/8d0ffaba4bd77024-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/cc9a5f10ece852e7-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/2472d8148f5fb3e1-s.p.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/82099b10433b91d1-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/fba85063576c67d4-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/998fe24807a535a8-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Prompt Fallback';src: local("Arial");ascent-override: 97.38%;descent-override: 37.70%;line-gap-override: 0.00%;size-adjust: 111.93%
}.__className_3ccfae {font-family: 'Prompt', 'Prompt Fallback';font-style: normal
}.__variable_3ccfae {--font-prompt: 'Prompt', 'Prompt Fallback'
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: var(--font-prompt), "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-danger: #d14562;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .collapse {
    visibility: collapse;
  }
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-8 {
    margin-top: calc(var(--spacing) * 8);
  }
  .mt-12 {
    margin-top: calc(var(--spacing) * 12);
  }
  .mt-16 {
    margin-top: calc(var(--spacing) * 16);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .mb-12 {
    margin-bottom: calc(var(--spacing) * 12);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .inline {
    display: inline;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .w-full {
    width: 100%;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .text-danger {
    color: var(--color-danger);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}
:root {
  color-scheme: light;
  --bg: #f6fbf3;
  --panel: #ffffff;
  --panel-2: #fbfdf8;
  --text: #2f2a1f;
  --muted: #6e6859;
  --line: #e7ecdf;
  --brand: #45bf47;
  --brand-2: #2c9e3d;
  --brand-soft: #ebf9e9;
  --brown: #5d3d1f;
  --danger: #d14562;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-prompt), "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0% 0%, #e2f6d8 0%, transparent 32%),
    radial-gradient(circle at 96% 6%, #f3fce9 0%, transparent 30%),
    linear-gradient(180deg, #f9fdf6 0%, var(--bg) 58%);
}
a {
  color: inherit;
  text-decoration: none;
}
h2,
h3 {
  margin: 0;
  color: #2a291f;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.35rem;
}
h3 {
  margin-top: 1rem;
  margin-bottom: 0.65rem;
  font-size: 1.02rem;
}
.admin-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.admin-sidebar {
  width: 256px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(45, 62, 34, 0.06);
}
.admin-content {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
  background: var(--bg);
}
.admin-content-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sidebar-brand-logo-wrap {
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fff4 0%, #eaf8e6 100%);
  padding: 6px;
  border: 1px solid var(--line);
}
.sidebar-brand-logo {
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(68, 121, 43, 0.14);
  object-fit: contain;
}
.sidebar-brand-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #26783a;
  border: 1px solid #bfe6be;
  background: #effbec;
  border-radius: 999px;
  padding: 3px 8px;
  width: fit-content;
  margin-bottom: 4px;
}
.sidebar-brand-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brown);
  line-height: 1.2;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 10px 0;
  min-height: 0;
}
.sidebar-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding-bottom: 8px;
}
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-nav-link:hover {
  color: var(--text);
  background: rgba(69, 191, 71, 0.08);
}
.sidebar-nav-link.active {
  color: var(--brown);
  background: var(--brand-soft);
  font-weight: 600;
}
.sidebar-nav-link.active svg {
  color: var(--brand-2);
}
.sidebar-nav-link:focus-visible {
  outline: 2px solid rgba(69, 191, 71, 0.45);
  outline-offset: 2px;
}
.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 4px;
}
.sidebar-nav-group + .sidebar-nav-group {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.sidebar-nav-group-label {
  padding: 6px 12px 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a0997e;
  user-select: none;
}
.sidebar-nav-footer {
  padding: 10px 0 14px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  flex-shrink: 0;
}
.sidebar-nav-footer .nav-sign-out {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brown);
  background: transparent;
  border: 1px solid rgba(93, 61, 31, 0.22);
  border-radius: 10px;
  box-shadow: none;
}
.sidebar-nav-footer .nav-sign-out:hover {
  background: rgba(93, 61, 31, 0.06);
  border-color: rgba(93, 61, 31, 0.35);
  transform: none;
  box-shadow: none;
}
.sidebar-nav-footer .nav-sign-out:focus-visible {
  outline: 2px solid rgba(69, 191, 71, 0.45);
  outline-offset: 2px;
}
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: none;
  padding: 0;
}
.hamburger-btn:hover {
  background: var(--bg);
  border-color: var(--muted);
  transform: none;
  box-shadow: none;
}
.hamburger-btn:focus-visible {
  outline: 2px solid rgba(69, 191, 71, 0.45);
  outline-offset: 2px;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 199;
  animation: nav-fade-in 0.18s ease;
}
@keyframes nav-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
input,
select,
button,
textarea {
  padding: 10px 12px;
  margin: 4px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #9a978d;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(73, 185, 75, 0.25);
  border-color: var(--brand);
}
button {
  cursor: pointer;
  background: linear-gradient(160deg, #50c852 0%, var(--brand-2) 100%);
  color: #f0fff0;
  border: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(44, 158, 61, 0.28), 0 1px 3px rgba(44, 158, 61, 0.18);
  transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.14s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(44, 158, 61, 0.34), 0 2px 6px rgba(44, 158, 61, 0.18);
  filter: brightness(1.04);
}
button.secondary {
  background: #ffffff;
  border: 1.5px solid #c4d9bb;
  color: #3d5c36;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
button.secondary:hover {
  background: #f4fbf2;
  border-color: #96bf8e;
  color: #2e4a28;
  box-shadow: none;
  transform: none;
  filter: none;
}
button.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 500;
  box-shadow: none;
}
button.ghost:hover {
  background: rgba(0,0,0,0.04);
  border-color: var(--line);
  color: var(--text);
  transform: none;
  box-shadow: none;
  filter: none;
}
button.danger {
  background: #fef1f3;
  border: 1.5px solid #f0b4be;
  color: #b02540;
  font-weight: 700;
  box-shadow: none;
}
button.danger:hover {
  background: #fde4e8;
  border-color: #d9637a;
  color: #8f1a30;
  box-shadow: none;
  transform: none;
  filter: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
button:focus-visible {
  outline: 2px solid rgba(69, 191, 71, 0.5);
  outline-offset: 2px;
}
.branch-filter-clear-link,
.branch-manage-link {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.branch-filter-clear-link:hover,
.branch-manage-link:hover {
  color: var(--brown);
}
.branch-actions-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.branch-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.branch-env-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.branch-env-tag.is-prod {
  color: #0e5b2b;
  background: #e8f7ee;
  border-color: #bde7cb;
}
.branch-env-tag.is-test {
  color: #6f4a08;
  background: #fff4de;
  border-color: #f1d9a2;
}
.branch-env-group + .branch-env-group {
  margin-top: 12px;
}
.branch-env-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5d45;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.branch-manage-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.branch-ledger-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}
.branch-ledger-page {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(86, 115, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  min-width: 0;
}
.branch-ledger-page--full {
  margin-top: 18px;
}
.branch-ledger-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #2a291f;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #f3faee 0%, #e9f4e2 100%);
  border-bottom: 1px solid #d5e6cd;
}
.branch-ledger-tab--unassigned {
  background: linear-gradient(180deg, #f6faf3 0%, #edf5e8 100%);
  border-bottom-color: #dbe7d2;
  color: #31362d;
}
.branch-ledger-tab--observed {
  background: linear-gradient(180deg, #f7faf5 0%, #eff4eb 100%);
  border-bottom-color: #dfe7d9;
  color: #31362d;
}
.branch-ledger-tab-note {
  font-size: 12px;
  font-weight: 600;
  color: rgba(49, 54, 45, 0.72);
}
.branch-ledger-body {
  padding: 12px 14px 16px;
  background-color: #fcfefb;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 26px,
    rgba(108, 141, 93, 0.08) 26px,
    rgba(108, 141, 93, 0.08) 27px
  );
}
.branch-ledger-page--unassigned .branch-ledger-body {
  background-color: #fcfefb;
}
.branch-ledger-page--observed .branch-ledger-body {
  background-color: #fcfefb;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 26px,
    rgba(120, 140, 120, 0.08) 26px,
    rgba(120, 140, 120, 0.08) 27px
  );
}
.branch-ledger-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.branch-ledger-empty {
  margin: 8px 0 4px;
  font-size: 14px;
  color: var(--muted);
}
.branch-ledger-foot {
  margin: 10px 0 0;
}
.branch-ledger-table-wrap {
  max-height: min(72vh, 720px);
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(175, 201, 165, 0.6);
  background: rgba(255, 255, 255, 0.92);
  min-width: 0;
}
.branch-ledger-table {
  margin: 0;
}
.branch-ledger-table-wrap .branch-ledger-table {
  width: max-content;
  min-width: 100%;
  overflow: visible;
}
.branch-ledger-table thead th {
  background: linear-gradient(180deg, #f4faf0 0%, #ebf5e5 100%);
  color: #2e4f2e;
  font-size: 12px;
  border-bottom: 1px solid #d6e5cf;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(86, 115, 63, 0.12);
}
.branch-ledger-table tbody td {
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.branch-ledger-table tbody tr:nth-child(even) td {
  background: rgba(247, 251, 244, 0.92);
}
.branch-ledger-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}
.branch-ledger-table .nowrap {
  white-space: nowrap;
}
.branch-filter-banner strong {
  color: #2b8e3d;
}
.branch-store-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 16px;
  margin-bottom: 16px;
  background: #fafcf8;
}
.branch-store-panel-title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #2a291f;
}
.branch-store-panel-hint {
  margin: 0 0 12px;
  font-size: 13px;
}
.branch-store-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: end;
}
@media (max-width: 640px) {
  .branch-store-panel-grid {
    grid-template-columns: 1fr;
  }
}
.branch-store-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 13px;
}
.branch-store-field-wide {
  grid-column: 1 / -1;
}
.branch-store-label {
  color: var(--muted);
  font-size: 12px;
}
.branch-store-field input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.branch-store-panel-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.branch-store-msg {
  margin: 10px 0 0;
  font-size: 13px;
}
.rooms-register-block {
  margin: 20px 0 14px;
}
.rooms-register-heading {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #2a291f;
}
.rooms-register-hint {
  margin: 0 0 10px;
  line-height: 1.45;
}
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fdfefb 100%);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 28px rgba(86, 115, 63, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  min-width: 0;
  max-width: 100%;
}
.page-wrap {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fdfefb 100%);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 28px rgba(86, 115, 63, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.page-header {
  margin-bottom: 14px;
}
.page-title {
  margin: 0;
  font-size: 1.35rem;
  color: #2a291f;
  letter-spacing: -0.01em;
}
.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.row-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.field-grow-1 {
  flex: 1 1 200px;
}
.field-grow-2 {
  flex: 2 1 280px;
}
.field-grow-compact {
  flex: 1 1 120px;
}
.field-fixed {
  flex: 0 0 auto;
}
.mt-4 {
  margin-top: 4px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.w-full {
  width: 100%;
}
.text-danger {
  color: var(--danger);
}
.mono-xs {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}
.preserve-newline {
  white-space: pre-wrap;
}
.report-box {
  white-space: pre-wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.875rem;
  line-height: 1.7;
  max-height: 70vh;
  overflow-y: auto;
}
.maxw-600 {
  max-width: 600px;
}
.cleanup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.cleanup-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  background: #fff;
  cursor: pointer;
}
.cleanup-item.is-selected-safe {
  border-color: #b8d8a8;
  background: #f4fbf0;
}
.cleanup-item.is-selected-danger {
  border-color: #edc7cf;
  background: #fff7f8;
}
.cleanup-item-checkbox {
  margin-top: 2px;
}
.cleanup-item-title {
  font-weight: 600;
  font-size: 14px;
}
.cleanup-item-title.is-danger {
  color: #b73950;
}
.cleanup-item-danger-chip {
  margin-left: 6px;
  font-size: 11px;
  color: #d14562;
  font-weight: 500;
}
.cleanup-item-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.notice-success {
  padding: 10px 14px;
  background: #f4fbf0;
  border: 1px solid #b8d8a8;
  border-radius: 8px;
  color: #2e6e2e;
  margin-bottom: 16px;
  font-size: 13px;
}
.notice-danger {
  padding: 10px 14px;
  background: #fff7f8;
  border: 1px solid #edc7cf;
  border-radius: 8px;
  color: #b73950;
  margin-bottom: 16px;
  font-size: 13px;
}
.confirm-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #edc7cf;
  border-radius: 8px;
  background: #fff7f8;
  max-width: 480px;
}
.toast-fixed {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  background: var(--accent, #22c55e);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
}
.section-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 4px;
}
.section-head-title {
  margin: 0;
}
.mb-16 {
  margin-bottom: 16px;
}
.env-group-card {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.env-group-toggle {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.env-group-toggle-label {
  flex: 1;
}
.env-group-table {
  margin: 0;
  border-top: 1px solid var(--line);
}
.env-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}
.env-textarea {
  width: 100%;
  min-width: 200px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.env-meta {
  font-size: 11px;
  color: var(--muted, #9ca3af);
  margin-top: 2px;
}
.link-button-inline {
  margin-left: 6px;
  font-size: 11px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent, #3b82f6);
}
.warn-inline {
  margin-left: 8px;
  color: var(--warn, #f59e0b);
}
.field-min-280 {
  min-width: 280px;
}
.field-w-120 {
  width: 120px;
}
.actions-end {
  margin-left: auto;
}
.progress-track {
  height: 6px;
  border-radius: 3px;
  background: #2d3148;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.progress-mini-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
}
.progress-mini-track {
  height: 4px;
  border-radius: 2px;
  background: #2d3148;
  overflow: hidden;
}
.progress-mini-fill {
  height: 100%;
  width: 40%;
  background: #f59e0b;
  border-radius: 2px;
  animation: shimmer 1.4s infinite;
}
.status-label-xs {
  font-size: 0.75rem;
}
.inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.row-actions-compact {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  align-items: center;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-shadow: none;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--bg);
  border-color: var(--muted);
  transform: none;
  box-shadow: none;
}
.icon-btn:focus-visible {
  outline: 2px solid rgba(69, 191, 71, 0.45);
  outline-offset: 2px;
}
.icon-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
.icon-btn.icon-btn-danger:hover {
  color: var(--danger);
  border-color: var(--danger);
  background: rgba(209, 69, 98, 0.07);
}
.icon-text-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.nowrap {
  white-space: nowrap;
}
.card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}
.card-title-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.refresh-hint {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.refresh-hint.ok {
  color: #2d7a33;
}
.refresh-hint.err {
  color: var(--danger);
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: middle;
  background: #ffffff;
  font-size: 14px;
}
.table th {
  background: linear-gradient(180deg, #f3faee 0%, #edf7e7 100%);
  color: #3f5f30;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr:nth-child(even) td {
  background: #fcfefb;
}
.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll > .table {
  width: max-content;
  min-width: 100%;
}
.tickets-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 12px 0 16px;
}
.tickets-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tickets-filter input {
  min-width: 140px;
}
select.secondary {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #cfe2c5;
  color: #4f6348;
  box-shadow: none;
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 12px;
}
select.secondary:hover {
  border-color: var(--brand);
}
.ticket-status-select {
  min-width: 11rem;
  font-size: 13px;
}
.tickets-table td.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}
.tickets-table .nowrap {
  white-space: nowrap;
}
.tickets-table .break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ticket-desc {
  max-width: min(360px, 40vw);
  font-size: 13px;
  line-height: 1.4;
}
.ticket-edit-row td {
  background: #f4fbf0;
  vertical-align: top;
}
.ticket-desc-edit {
  width: 100%;
  min-width: 200px;
  font-size: 13px;
  resize: vertical;
}
.advanced-zone {
  margin-top: 16px;
}
.advanced-zone-summary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  list-style: none;
  user-select: none;
}
.advanced-zone-summary::-webkit-details-marker {
  display: none;
}
.advanced-zone-summary::before {
  content: "▶";
  font-size: 10px;
  transition: transform 0.18s;
  margin-right: 6px;
  color: var(--text-3);
}
.advanced-zone[open] > .advanced-zone-summary::before {
  transform: rotate(90deg);
}
.advanced-zone[open] > .advanced-zone-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.advanced-zone-danger-summary {
  color: #7a201f;
  background: #fff5f5;
  border-color: #f2caca;
}
.log-tab-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.log-tab-row .tab-bar {
  flex: 1;
  margin-bottom: 0;
}
.log-download-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}
.log-chat-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.members-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.members-adv-toggle {
  font-size: 12px;
  white-space: nowrap;
}
.members-adv-toggle.has-active {
  color: var(--brand);
  border-color: var(--brand);
}
.members-adv-filter {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f7fcf4;
  border: 1px solid #dcead5;
  border-radius: 8px;
  margin-bottom: 14px;
}
.members-adv-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.config-pending-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #fffbe6;
  border: 1px solid #f5d060;
  border-radius: 8px;
  margin-bottom: 12px;
}
.form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}
.cleanup-preset-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.cleanup-preset-row button {
  text-align: left;
  padding: 10px 12px;
  height: auto;
  line-height: 1.3;
}
.cleanup-action-bar {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tracked-users-table {
  table-layout: fixed;
}
.tracked-users-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tracked-rooms-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.login-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-wrap {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.login-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 380px;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(69, 191, 71, 0.2) 0%, rgba(69, 191, 71, 0) 70%);
  pointer-events: none;
}
.login-hero {
  position: relative;
  margin-bottom: 12px;
}
.login-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cfe8c8;
  background: #f0fbef;
  color: #2f7a35;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.login-form {
  margin-top: 8px;
}
.login-form > div,
.login-form > .password-field {
  margin-bottom: 2px;
}
.login-form input {
  width: 100%;
}
.login-form > button[type="submit"] {
  width: 100%;
  margin-top: 8px;
}
.login-error-slot {
  min-height: 44px;
}
.password-field {
  position: relative;
}
.password-field input {
  width: 100%;
  padding-right: 42px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.35;
}
.eye-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
  font-weight: 600;
  transition: color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.eye-button:hover {
  color: var(--text);
  transform: translateY(-50%);
  border-color: rgba(69, 191, 71, 0.5);
  background: rgba(69, 191, 71, 0.1);
  box-shadow: 0 1px 3px rgba(56, 120, 56, 0.12);
}
.eye-button:active {
  transform: translateY(-50%);
  background: rgba(69, 191, 71, 0.16);
  box-shadow: none;
}
.eye-button:focus-visible {
  transform: translateY(-50%);
  outline: 2px solid rgba(73, 185, 75, 0.45);
  outline-offset: 2px;
}
.error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.stats-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  border: 1px solid #dcead5;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf4 100%);
  padding: 14px;
}
.perf-stats-grid .stat-card-with-tooltip {
  position: relative;
}
.stat-desc-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(320px, 90vw);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d5e6cb;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(41, 61, 31, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}
.stat-card-with-tooltip:hover .stat-desc-tooltip {
  opacity: 1;
  visibility: visible;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #5b6a54;
  font-size: 13px;
}
.stat-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #2f7e35;
}
.uptime-spark-wrap {
  margin-top: 10px;
  height: 30px;
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 2px;
  align-items: end;
}
.uptime-components {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.uptime-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.uptime-chip.ok {
  color: #0e5b2b;
  background: #e8f7ee;
  border-color: #bde7cb;
}
.uptime-chip.bad {
  color: #7a201f;
  background: #fdeeee;
  border-color: #f2caca;
}
.uptime-spark-item {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
}
.uptime-spark-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: #9ac79f;
  opacity: 0.95;
}
.uptime-spark-bar.good {
  background: #58b56a;
}
.uptime-spark-bar.warn {
  background: #d4a84b;
}
.uptime-spark-bar.bad {
  background: #cb6666;
}
.uptime-spark-bar.idle {
  background: #c5d0c0;
  opacity: 0.75;
}
.uptime-spark-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid #d5e6cb;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(41, 61, 31, 0.15);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 15;
  white-space: normal;
  max-width: 240px;
}
.uptime-spark-item:hover .uptime-spark-tooltip,
.uptime-spark-item:focus-within .uptime-spark-tooltip {
  opacity: 1;
  visibility: visible;
}
.stat-value-stack {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-value-stack .stat-line-main {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #2f7e35;
}
.stat-value-stack .stat-line-sub {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #5b6a54;
}
.stat-value-stack .stat-line-hint {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  color: #7a8a72;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.form-row > input,
.form-row > select {
  min-width: 180px;
  flex: 1 1 220px;
}
.split-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bot-controls-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bot-control-card {
  border: 1px solid #d9e8d3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf5 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bot-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.bot-control-head h3 {
  margin: 0;
  font-size: 15px;
}
.bot-control-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.bot-control-status.is-on {
  color: #1f7a33;
  background: #e9f9ec;
  border-color: #bde5c4;
}
.bot-control-status.is-off {
  color: #7f5b13;
  background: #fff7e7;
  border-color: #f0d7a5;
}
.bot-control-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px;
}
.bot-env-textarea {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}
.bot-env-textarea::placeholder {
  color: #9a978d;
}
.bot-env-textarea:focus {
  outline: 2px solid rgba(73, 185, 75, 0.25);
  border-color: var(--brand);
}
.bot-env-section-title {
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(69, 191, 71, 0.1);
  border: 1px solid rgba(69, 191, 71, 0.25);
}
.promotions-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin: 14px 0 18px;
}
.promo-toolbar-refresh,
.promo-toolbar-delete-all {
  align-self: center;
}
.promo-dropzone {
  position: relative;
  flex: 1 1 280px;
  min-height: 132px;
  margin: 0;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 16px;
  border: 2px dashed #c5d9b4;
  background: linear-gradient(165deg, #fefff9 0%, #f3f7ed 48%, #eef4e6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}
.promo-dropzone:hover {
  border-color: #8ec487;
  background: linear-gradient(165deg, #ffffff 0%, #f5faf1 55%, #edf6e8 100%);
}
.promo-dropzone:focus-within {
  outline: 2px solid rgba(69, 191, 71, 0.45);
  outline-offset: 3px;
}
.promo-dropzone.is-dragover {
  border-color: var(--brand);
  border-style: solid;
  background: linear-gradient(165deg, #f4fff4 0%, #e8f6e4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 3px rgba(69, 191, 71, 0.14);
}
.promo-dropzone.is-busy {
  pointer-events: none;
  opacity: 0.78;
}
.promo-dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}
.promo-dropzone-icon {
  color: #6a9a5e;
  opacity: 0.92;
  margin-bottom: 2px;
}
.promo-dropzone.is-dragover .promo-dropzone-icon {
  color: var(--brand-2);
}
.promo-dropzone-title {
  font-size: 15px;
  font-weight: 700;
  color: #2f3d28;
  letter-spacing: -0.02em;
}
.promo-dropzone-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 28rem;
}
.promo-dropzone-formats {
  font-size: 12px;
  font-weight: 600;
  color: #5a7a52;
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
}
.promotions-table .promo-name-cell {
  max-width: 280px;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.promotions-table .small-cell {
  font-size: 13px;
  max-width: 140px;
}
.promo-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(40, 35, 25, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
}
.promo-edit-modal {
  width: min(720px, 100%);
  margin: 0;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.promo-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 14px 0 18px;
}
@media (max-width: 640px) {
  .promo-edit-grid {
    grid-template-columns: 1fr;
  }
}
.promo-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.promo-edit-field input,
.promo-edit-field textarea {
  font-weight: 400;
  color: var(--text);
}
.room-name-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 26rem;
}
.room-name-title {
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.room-name-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.room-name-members {
  font-size: 12px;
  color: var(--muted);
}
.badge.inferred {
  font-size: 11px;
  padding: 3px 8px;
  border-color: #c5dcc0;
  color: #355a2e;
  background: #f4faf1;
}
.badge.inferred-ops {
  border-color: #d4e8c8;
  color: #2f6b28;
  background: #eef8e8;
}
.badge.inferred-mgmt {
  border-color: #e8d4b8;
  color: #8a5a12;
  background: #fff6e8;
}
.room-branch-input {
  width: 100%;
  max-width: 104px;
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.table td.td-actions {
  vertical-align: top;
  padding-top: 12px;
  min-width: 190px;
  white-space: normal;
}
.room-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 9.5rem;
  max-width: 12rem;
}
.room-action-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
button.room-action-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 9px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
button.room-action-btn.room-action-fill {
  width: 100%;
  justify-content: center;
}
button.room-action-btn.room-action-ops {
  background: linear-gradient(180deg, #f0faf0 0%, #e2f2df 100%);
  border-color: #a8d4a0;
  color: #256b22;
}
button.room-action-btn.room-action-ops:hover {
  background: linear-gradient(180deg, #e4f5e2 0%, #d4ebd0 100%);
  border-color: #8fc488;
  color: #1a5218;
}
button.room-action-btn.room-action-mgmt {
  background: linear-gradient(180deg, #fffaf3 0%, #fff0dc 100%);
  border-color: #e8c98a;
  color: #8a5a12;
}
button.room-action-btn.room-action-mgmt:hover {
  background: linear-gradient(180deg, #fff4e4 0%, #ffe8c4 100%);
  border-color: #ddb56e;
  color: #6b450e;
}
button.room-action-btn.room-action-suggested {
  box-shadow: 0 0 0 2px #2a6b24;
  font-weight: 800;
}
button.room-action-btn.room-action-mgmt.room-action-suggested {
  box-shadow: 0 0 0 2px #a67c1a;
}
.room-source-link {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #2d6a3a;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.room-source-link:hover {
  background: #f0faf0;
  border-color: #c5dcc0;
}
.room-name-clickable {
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 4px;
  margin: -2px -4px;
}
.room-name-clickable:hover {
  background: #f4faf1;
}
.room-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(30, 40, 28, 0.35);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}
.room-drawer {
  width: min(420px, 100vw);
  max-height: 100vh;
  overflow: auto;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.room-drawer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.room-drawer-header h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  flex: 1 1 12rem;
}
.room-drawer-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.room-drawer-id {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.room-drawer-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3f5f30;
}
.room-perm-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 10px;
}
.room-perm-note {
  font-size: 12px;
  line-height: 1.45;
  margin: -4px 0 10px;
}
.room-perm-note code {
  font-size: 11px;
}
.room-perm-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
label.room-perm-choice-label {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
label.room-perm-choice-label:hover {
  border-color: #b8c9ae;
}
input.room-perm-radio {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
label.room-perm-choice-label span {
  pointer-events: none;
}
label.room-perm-choice-label.is-active {
  box-shadow: 0 0 0 2px #2a6b24;
}
label.room-perm-choice-label.room-perm-mgmt-choice.is-active {
  box-shadow: 0 0 0 2px #a67c1a;
}
button.room-perm-choice {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
}
button.room-perm-choice.is-active {
  box-shadow: 0 0 0 2px #2a6b24;
}
button.room-perm-choice.room-perm-mgmt-choice.is-active {
  box-shadow: 0 0 0 2px #a67c1a;
}
.room-drawer-branch {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 14px;
  margin-bottom: 12px;
}
.room-members-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.room-members-table th,
.room-members-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.room-members-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}
.badge.ok {
  border-color: #a9dba7;
  color: #257735;
  background: var(--brand-soft);
}
.badge.warn {
  border-color: #f1d79d;
  color: #9c6716;
  background: #fff8ea;
}
.page-head {
  margin-bottom: 20px;
}
.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #2a291f;
  line-height: 1.2;
}
.page-subtitle {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2a291f;
  letter-spacing: -0.01em;
}
.card-title-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a0997e;
  margin: 20px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-ok {
  color: #0e5b2b;
  background: #e8f7ee;
  border-color: #bde7cb;
}
.chip-warn {
  color: #7f5b13;
  background: #fff7e7;
  border-color: #f0d7a5;
}
.chip-danger {
  color: #7a201f;
  background: #fdeeee;
  border-color: #f2caca;
}
.chip-info {
  color: #1a4f7c;
  background: #e8f1fd;
  border-color: #b8d0f5;
}
.chip-off {
  color: #6e6859;
  background: #f5f5f0;
  border-color: #e0ddd4;
}
.table tbody tr:hover td {
  background: #f4fbf0;
}
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 44px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  cursor: pointer;
  z-index: 1;
}
.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #d4d0c8;
  border: 1px solid #c0bdb5;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.toggle-switch input[type="checkbox"]:checked + .toggle-track {
  background: var(--brand);
  border-color: var(--brand-2);
}
.toggle-switch input[type="checkbox"]:checked + .toggle-track::after {
  transform: translateX(20px);
}
.toggle-switch input[type="checkbox"]:focus-visible + .toggle-track {
  outline: 2px solid rgba(69, 191, 71, 0.45);
  outline-offset: 2px;
}
.tab-bar {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -2px;
  box-shadow: none;
  cursor: pointer;
  letter-spacing: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn:hover {
  color: var(--text);
  background: transparent;
  transform: none;
  box-shadow: none;
}
.tab-btn.active {
  color: var(--brown);
  border-bottom-color: var(--brand-2);
}
.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.bot-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bot-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bot-toggle-title {
  font-size: 14px;
  font-weight: 700;
  color: #2a291f;
  margin: 0;
}
.bot-toggle-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.bot-toggle-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease;
}
.bot-toggle-card.is-on {
  border-color: #b8ddb5;
  background: linear-gradient(180deg, #ffffff 0%, #f9fef8 100%);
}
.bot-toggle-card.is-off {
  background: #fafaf8;
}
.bot-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .bot-toggle-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .admin-shell {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(45, 62, 34, 0.07);
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--panel);
  }
  .sidebar-brand {
    padding: 10px 14px;
  }
  .hamburger-btn {
    display: flex;
  }
  .admin-content {
    overflow-y: visible;
  }
  .admin-content-inner {
    padding: 20px 16px 40px;
  }
  .sidebar-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 2px solid var(--line);
    box-shadow: 0 10px 28px rgba(45, 62, 34, 0.14);
    z-index: 201;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
  }
  .sidebar-nav.nav-open {
    max-height: 78vh;
    overflow-y: auto;
  }
  .sidebar-nav-links {
    flex-direction: column;
    overflow-y: visible;
    padding: 8px 12px 4px;
    gap: 2px;
  }
  .sidebar-nav-group {
    flex-direction: column;
    gap: 1px;
    margin-bottom: 0;
    padding: 6px 0;
  }
  .sidebar-nav-group + .sidebar-nav-group {
    margin-top: 0;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
  .sidebar-nav-group-label {
    display: block;
    padding: 4px 12px 3px;
    font-size: 10px;
  }
  .sidebar-nav-link {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 9px;
    white-space: normal;
    flex-shrink: unset;
  }
  .sidebar-nav-footer {
    padding: 8px 12px 14px;
    border-top: 1px solid var(--line);
    margin-top: 0;
    flex-shrink: 0;
    flex-direction: column;
  }
  .sidebar-nav-footer .nav-sign-out {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 9px;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bot-controls-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .admin-content-inner {
    padding: 16px 14px 36px;
  }
  .page-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .log-tab-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .log-tab-row .tab-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .log-tab-row .tab-bar::-webkit-scrollbar {
    display: none;
  }
  .log-download-btn {
    width: 100%;
    justify-content: center;
  }
  .cleanup-preset-row {
    grid-template-columns: 1fr 1fr;
  }
  .tickets-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .members-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .members-adv-toggle {
    align-self: flex-start;
  }
}
@media (max-width: 480px) {
  .admin-content-inner {
    padding: 12px 10px 32px;
  }
  .card {
    padding: 14px 12px;
  }
  .page-title {
    font-size: 22px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .perf-stats-grid {
    grid-template-columns: 1fr;
  }
  .cleanup-preset-row {
    grid-template-columns: 1fr;
  }
  .config-pending-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .advanced-zone-summary {
    font-size: 12px;
    padding: 8px 12px;
  }
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .form-row > input,
  .form-row > select {
    min-width: 0;
    width: 100%;
  }
  .bot-toggle-card {
    padding: 12px;
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

