/* ==========================================================================
   Feather – panel components (hosting, protection, staff)
   ========================================================================== */

.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
code { padding: 1px 6px; border-radius: 6px; background: var(--line-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: var(--ink); }
.section-gap { margin-top: 24px; }
.hint-error { color: var(--red); }

/* --- Sidebar extras -------------------------------------------------------- */
.side-label-staff { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 6px; }
.side-label-staff .badge { text-transform: none; letter-spacing: 0; font-size: 10px; padding: 1px 7px; }
.nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--v700); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* --- Badges -------------------------------------------------------------- */
.badge .icon { width: 12px; height: 12px; }
.r-user { background: var(--line-2); color: var(--muted); }
.r-support { background: var(--blue-bg); color: var(--blue); }
.r-admin { background: var(--v100); color: var(--v800); }
.r-owner { background: linear-gradient(135deg, var(--v800), var(--v600)); color: #fff; }
.s-active { background: var(--green-bg); color: var(--green); }
.s-paused { background: var(--amber-bg); color: var(--amber); }
.s-suspended { background: var(--red-bg); color: var(--red); }

/* --- Buttons --------------------------------------------------------------- */
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }

/* --- Page heads, tabs, search ------------------------------------------- */
.site-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.site-title h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-title p a { color: var(--muted); }
.site-title p a:hover { color: var(--v700); }
.site-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: linear-gradient(135deg, var(--v100), var(--v50)); color: var(--v700); font-size: 20px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--v200); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.tabs .icon { opacity: .8; }
.tabs-page { margin: 0 0 24px; padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs-page::-webkit-scrollbar { display: none; }
.search .input { width: 260px; }
.input-sm { padding: 8px 12px; font-size: 14px; }
.segmented { display: inline-flex; gap: 2px; margin-bottom: 16px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.segmented a { padding: 6px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.segmented a:hover { color: var(--ink); }
.segmented a.active { background: var(--v50); color: var(--v800); font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }

/* --- KPIs ------------------------------------------------------------------ */
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi-link { color: inherit; transition: border-color .15s, box-shadow .15s; }
.kpi-link:hover { border-color: var(--v200); box-shadow: var(--shadow); color: inherit; }
.kpi strong.v, .site-card-stats .v { color: var(--v700); }
.kpi-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.big-number { margin: 4px 0 12px; font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--v700); line-height: 1; }

/* --- Site cards -------------------------------------------------------------- */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.site-card { display: flex; flex-direction: column; padding: 22px; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.site-card:hover { border-color: var(--v200); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.site-card-head { display: flex; align-items: center; gap: 12px; }
.site-card-head .site-mark { width: 42px; height: 42px; font-size: 17px; border-radius: 12px; }
.site-card-title { flex: 1; min-width: 0; }
.site-card-title strong, .site-card-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card-title strong { font-size: 16px; color: var(--ink); }
.site-card-title small { font-size: 13px; color: var(--muted); }
.site-card-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 12px; }
.site-card-stats div { min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--soft); }
.site-card-protect { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; color: var(--text); }
.site-card-protect > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.site-card-protect .icon { color: var(--v700); }
.site-card-stats small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-card-stats strong { font-size: 16px; color: var(--ink); }
.site-card-stats .ok { color: var(--green); }
.site-card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; font-size: 13px; color: var(--muted); }
.site-card-foot span { display: inline-flex; align-items: center; gap: 6px; }
.site-card-new { align-items: center; justify-content: center; gap: 10px; min-height: 200px; border-style: dashed; background: transparent; box-shadow: none; color: var(--muted); }
.site-card-new .empty-icon { margin: 0; }
.site-card-new:hover { color: var(--v700); }

/* --- Traffic chart -------------------------------------------------------- */
.traffic-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.tb { position: relative; flex: 1; display: flex; align-items: flex-end; min-height: 2px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--v400), var(--v200)); overflow: hidden; }
.tb i { display: block; width: 100%; background: #F97316; opacity: .85; }
.tb:hover { filter: brightness(.92); }
.traffic-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--text); }
.traffic-legend span { display: inline-flex; align-items: center; gap: 6px; }
.traffic-legend .muted { margin-left: auto; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-req { background: var(--v400); }
.lg-blk { background: #F97316; }

/* --- Forms: input group, choices, dropzone, switches ----------------------- */
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-addon { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--soft); color: var(--muted); font-size: 14px; white-space: nowrap; }
.choice-group { margin: 0 0 18px; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.choice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--v200); }
.choice:has(input:checked) { border-color: var(--v500); background: var(--v50); }
.choice input { margin-top: 4px; accent-color: var(--v700); }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 15px; color: var(--ink); }
.choice small { font-size: 13px; color: var(--muted); }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 20px; border: 2px dashed var(--line); border-radius: 14px; background: var(--soft); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--v400); background: var(--v50); }
.dropzone .empty-icon { margin: 0 0 6px; }
.dropzone strong { color: var(--ink); }
.dropzone small { font-size: 13px; color: var(--muted); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .form-actions { margin-top: 16px; }

.toggles .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.toggles .toggle-row:first-child { padding-top: 0; }
.toggle-row > span, .toggle-row > label { flex: 1; cursor: pointer; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); }
.toggle-row small { margin-top: 2px; font-size: 13px; color: var(--muted); }
.toggle-attack strong { color: var(--amber); }
.toggle-compact { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; cursor: pointer; }
.inline-field { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.inline-field .input { width: 120px; }
.toggles .field:last-of-type { margin-top: 18px; }
textarea.mono { font-size: 13px; }

.switch { appearance: none; position: relative; width: 42px; height: 24px; flex: none; margin: 0; border-radius: 999px; background: #D9D6E3; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 12, 40, .25); transition: transform .2s; }
.switch:checked { background: var(--v700); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--v500); outline-offset: 2px; }

.check-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.check-label input { accent-color: var(--amber); }
.form-actions-split { justify-content: space-between; align-items: center; }

/* --- Settings ------------------------------------------------------------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.danger-title { color: var(--red); }
.danger-card { border-color: #FECACA; }

/* --- Tables ---------------------------------------------------------------- */
.cell-clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-user { display: block; color: inherit; }

/* --- Lists & people -------------------------------------------------------- */
.list-plain li { padding: 12px 22px; }
.person { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0; }
.empty-sm { padding: 40px 24px; }
.empty-sm p { margin: 0; }

/* --- Ticket thread: internal notes --------------------------------------- */
.msg.internal .msg-body { border-style: dashed; border-color: #FCD34D; background: var(--amber-bg); }
.msg.internal .avatar { background: #FDE68A; color: var(--amber); }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
  .search, .search .input { width: 100%; }
  .page-head .search { flex: 1 1 100%; }
  .kpis-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-mark { width: 40px; height: 40px; font-size: 17px; }
  .traffic-bars { height: 120px; gap: 2px; }
  .form-actions-split { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   v0.3 – analytics, uptime, rules, rollback, account security, AI prompt
   ========================================================================== */
.kpi strong.bad { color: var(--red); }
.row-tight { flex-wrap: nowrap; margin-bottom: 12px; }
.row-tight .card-title { margin: 0; }
.section-bottom { margin-bottom: 16px; }
.section-gap-sm { margin-top: 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Alerts */
.alert-warn { display: flex; align-items: center; gap: 8px; background: var(--amber-bg); border-color: #FDE68A; color: #92400E; }
.alert-row { justify-content: space-between; flex-wrap: wrap; }
.alert-row > span { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 240px; }
.alert-row a { font-weight: 600; }
.alert-row form { margin: 0; }

/* Uptime */
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-up .status-chip, .status-chip.st-up { background: var(--green-bg); color: var(--green); }
.status-chip.st-up i { animation: pulse 1.8s infinite; }
.status-chip.st-down { background: var(--red-bg); color: var(--red); }
.status-chip.st-pending, .status-chip.st-off, .status-chip.st-paused { background: var(--line-2); color: var(--muted); }
.uptime-bars { display: flex; gap: 2px; height: 34px; }
.ub { flex: 1; min-width: 2px; border-radius: 3px; }
.ub-good { background: #22C55E; }
.ub-warn { background: #F59E0B; }
.ub-bad { background: var(--red); }
.ub-none { background: var(--line); }
.ub:hover { filter: brightness(.9); }
.uptime-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.meta-top { margin-top: 12px; }

/* AI prompt */
.ai-prompt { margin-bottom: 20px; padding: 16px; border: 1px solid var(--v200); border-radius: 14px; background: linear-gradient(135deg, var(--v50), #fff 70%); }
.ai-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--v800); }
.ai-badge .icon { color: var(--v600); }
.ai-prompt-desc { margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.prompt-box { width: 100%; padding: 12px 14px; border: 1px solid var(--v200); border-radius: 10px; background: #fff; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; resize: vertical; }
.prompt-box:focus { outline: none; border-color: var(--v500); box-shadow: 0 0 0 4px var(--v100); }
[data-copy].copied { border-color: #BBF7D0; background: var(--green-bg); color: var(--green); }

/* Analytics */
.analytics-note { display: inline-flex; align-items: center; gap: 6px; }
.segmented-flat { margin: 0; }
.day-bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; }
.day-bars.dense { gap: 3px; }
.day-col { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.day-col .db { position: relative; display: flex; align-items: flex-end; width: 100%; margin-top: auto; border-radius: 5px 5px 2px 2px; background: var(--v200); overflow: hidden; }
.day-col .db i { display: block; width: 100%; background: var(--v600); }
.day-col small { font-size: 10px; color: var(--muted); }
.day-bars.dense .day-col small { font-size: 9px; }
.day-bars.dense .day-col:nth-child(odd) small { visibility: hidden; }
.lg-vis { background: var(--v600); }
.lg-req { background: var(--v200); }
.rank { margin: 0; padding: 0; list-style: none; }
.rank li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; font-size: 14px; }
.rank li + li { margin-top: 4px; }
.rank-bar { position: absolute; inset: 0 auto 0 0; border-radius: 7px; background: var(--v50); }
.rank-label, .rank-count { position: relative; }
.rank-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-count { font-weight: 600; color: var(--ink); }
.rank code { background: transparent; padding: 0; }
.split-bar { display: flex; height: 12px; margin: 4px 0 12px; overflow: hidden; border-radius: 999px; background: var(--line-2); }
.sb-desktop { background: var(--v600); }
.sb-mobile { background: var(--v400); }
.sb-tablet { background: var(--v200); }
.legend-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.legend-list li { display: inline-flex; align-items: center; gap: 8px; }
.legend-list i { width: 10px; height: 10px; border-radius: 3px; }
.legend-list span { font-weight: 600; color: var(--ink); }

/* Rules */
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field-wide { grid-column: 1 / -1; }
.rules-grid .field label, .card-head h2 { display: flex; align-items: center; gap: 8px; }
.rules-grid .field label .icon { color: var(--v700); }
.hint-above { margin: 0 0 8px; }
.list-bordered { margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: 12px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.list-row form { margin: 0; }
.protect-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.protect-form .field { margin: 0; }

/* Account security */
.icon-ok { background: var(--green-bg); color: var(--green); box-shadow: none; }
.person .product-icon { margin: 0; }
.person strong { color: var(--ink); }
.person .hint { margin-top: 2px; }
.twofa-actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.code-input { width: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-align: center; }
.code-lg { width: 100%; max-width: 220px; padding: 12px 14px; font-size: 20px; }
.auth-card .code-lg { max-width: none; }
.disable-2fa summary { padding: 8px 0; font-size: 14px; font-weight: 600; color: var(--red); cursor: pointer; }
.disable-2fa[open] { flex-basis: 100%; }
.disable-2fa form { margin-top: 10px; }
.setup-steps { display: flex; flex-direction: column; gap: 26px; margin: 0; padding-left: 22px; }
.setup-steps li::marker { font-weight: 800; color: var(--v700); }
.setup-steps strong { display: block; margin-bottom: 6px; color: var(--ink); }
.qr-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 10px; }
.qr { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.secret-key { display: inline-block; margin-top: 6px; padding: 8px 12px; font-size: 14px; letter-spacing: .08em; word-break: break-all; }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.code-grid code { display: block; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--soft); font-size: 16px; letter-spacing: .08em; text-align: center; }
.login-mini { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.login-mini li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.login-mini strong, .login-mini small { display: block; }
.login-mini small { color: var(--muted); }
.login-mini .dot { width: 8px; height: 8px; margin-top: 6px; flex: none; border-radius: 50%; }
.login-mini .dot.ok { background: #22C55E; }
.login-mini .dot.bad { background: var(--red); }
.auth-card > .product-icon { margin-bottom: 18px; }

/* Public status page */
body.status-body { background: var(--soft); }
.status-page { max-width: 760px; margin: 0 auto; padding: 40px 16px 56px; display: flex; flex-direction: column; gap: 20px; }
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status-site { display: flex; align-items: center; gap: 14px; min-width: 0; }
.status-site h1 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.status-site a { font-size: 14px; color: var(--muted); }
.status-hero { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 16px; color: #fff; }
.status-hero h2 { color: inherit; font-size: 20px; }
.status-hero p { font-size: 14px; opacity: .85; }
.status-hero.st-up { background: linear-gradient(135deg, #15803D, #22C55E); }
.status-hero.st-down { background: linear-gradient(135deg, #B91C1C, #EF4444); }
.status-hero.st-pending, .status-hero.st-paused { background: linear-gradient(135deg, #4B5563, #9CA3AF); }
.status-dot-lg { width: 16px; height: 16px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
.meta-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 0; }
.incident-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.incident-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.status-foot { display: flex; justify-content: center; padding-top: 8px; }
.brand-sm { gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.brand-sm .logo { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .rules-grid, .meta-inline { grid-template-columns: 1fr; }
  .protect-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .protect-form, .code-grid { grid-template-columns: 1fr; }
  .day-bars { height: 150px; gap: 2px; }
  .day-col small { display: none; }
  .ai-prompt-head { flex-wrap: wrap; }
}

/* --- Plan badges & Feather status page ------------------------------------ */
.plan-badge { margin-left: 4px; font-size: 10px; padding: 1px 7px; vertical-align: middle; }
.pb-pro { background: var(--v100); color: var(--v800); }
.pb-business { background: linear-gradient(135deg, var(--v800), var(--v600)); color: #fff; }
.status-page-wide { max-width: 880px; }
.status-hero.st-partial { background: linear-gradient(135deg, #B45309, #F59E0B); }
.status-hero.st-major { background: linear-gradient(135deg, #B91C1C, #EF4444); }
.component { padding: 20px 24px; }
.component-sep { border-top: 1px solid var(--line-2); }
.component-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.component-head strong, .component-head small { display: block; }
.component-head strong { font-size: 15px; color: var(--ink); }
.component-head small { font-size: 13px; color: var(--muted); }
.component-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.component-meta strong { color: var(--ink); }
.status-top .brand { font-size: 20px; }

/* --- v0.5: forms, team, maintenance, downloads ------------------------------ */
.flip { transform: rotate(180deg); }
.fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.fs[disabled] .input, .fs[disabled] .switch, .fs[disabled] select { opacity: .65; cursor: not-allowed; }
.danger-text { color: var(--red); }
.danger-text:hover { background: var(--red-bg); color: var(--red); }
.page-head-tight { margin-bottom: 18px; }
.h-lg { font-size: 22px; font-weight: 800; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-body-top { border-top: 1px solid var(--line-2); }
.form-counts { display: inline-flex; align-items: center; gap: 10px; }
.list a.unread .list-main strong { color: var(--v800); }
.pager-inline { margin: 0; padding: 14px; border-top: 1px solid var(--line-2); }
.choice-extra { margin: -2px 0 10px 30px; }
.field-list { margin: 0; }
.field-list div { padding: 14px 22px; border-bottom: 1px solid var(--line-2); }
.field-list div:last-child { border-bottom: 0; }
.field-list dt { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.field-list dd { margin: 0; font-size: 15px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.list-row-pad { padding: 12px 22px; }
.list-row-pad + .list-row-pad { border-top: 1px solid var(--line-2); }
.list-row .person { margin: 0; }
.role-list { margin: 0; }
.role-list div { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.role-list div:last-child { border-bottom: 0; }
.role-list dt { font-size: 14px; font-weight: 700; color: var(--ink); }
.role-list dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.role-badge { background: var(--blue-bg); color: var(--blue); font-size: 11px; }
.opt-note { display: block; margin-top: 2px; font-size: 12px; color: var(--green); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; }
.field-gap { margin-top: 16px; }
.maint-state { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.maint-state span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ms-off, .ms-over { background: var(--line-2); color: var(--muted); }
.ms-active { background: var(--amber-bg); color: var(--amber); }
.ms-scheduled { background: var(--blue-bg); color: var(--blue); }
.status-chip.st-maintenance { background: var(--amber-bg); color: var(--amber); }
.maint-banner { padding: 18px 22px; border: 1px solid #FDE68A; border-radius: 16px; background: var(--amber-bg); color: #92400E; }
.maint-banner strong { display: flex; align-items: center; gap: 8px; }
.maint-banner p { margin-top: 4px; font-size: 14px; }
.maint-msg { white-space: pre-wrap; }
@media (max-width: 620px) { .copy-row { flex-direction: column; } .list-row-pad { flex-wrap: wrap; } }
