:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e2931;
  background: #dfe9ef;
  font-synthesis: none;
  --blue: #2697cf;
  --blue-dark: #147aaa;
  --ink-soft: #71808b;
  --line: rgba(43, 77, 96, .14);
  --card: rgba(255, 255, 255, .88);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.88), transparent 27%),
    radial-gradient(circle at 90% 70%, rgba(110,190,221,.32), transparent 32%),
    linear-gradient(135deg, #edf4f6 0%, #d4e2e9 46%, #c3dce8 100%);
}

button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(236,246,249,.54), rgba(210,229,237,.72));
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.group-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  font-size: 23px;
  background: linear-gradient(145deg, #57c9e7, #2e9bc8);
  box-shadow: 0 5px 16px rgba(43, 144, 183, .26);
}

.group-heading { min-width: 0; flex: 1; }
.group-title-row { display: flex; align-items: center; gap: 9px; }
.group-heading h1 { margin: 0; font-size: 20px; letter-spacing: .01em; }
.group-heading p { margin: 3px 0 0; color: #85919a; font-size: 13px; }
.group-heading .space-notice { margin-top: 2px; color: #c87945; font-size: 11px; font-weight: 700; }
.demo-tag { padding: 3px 7px; border-radius: 6px; color: #1888bb; background: #e3f5fc; font-size: 11px; }
.top-actions { display: flex; gap: 4px; }
.top-actions button { width: 35px; height: 35px; color: #75838a; background: transparent; font-size: 27px; line-height: 1; }
.top-actions button:hover { color: var(--blue-dark); background: #eaf5f9; border-radius: 50%; }

.pinned-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 59px;
  padding: 8px clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.68);
  border-bottom: 1px solid var(--line);
}
.pin-mark { color: #35a7da; font-size: 26px; }
.pinned-rule div:nth-child(2) { min-width: 0; flex: 1; }
.pinned-rule span { display: block; color: #2290c2; font-size: 13px; }
.pinned-rule strong { display: block; overflow: hidden; margin-top: 3px; color: #2b3337; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pinned-rule button { color: #8b969c; background: transparent; font-size: 28px; }

.workspace { width: min(1480px, 100%); display: flex; flex: 1; gap: 18px; margin: 0 auto; padding: 18px clamp(12px, 4vw, 48px) 22px; }
.chat-column { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.message-list { display: flex; flex: 1; flex-direction: column; gap: 13px; min-height: 340px; max-height: calc(100vh - 270px); overflow-y: auto; padding: 12px 2px 22px; scroll-behavior: smooth; }
.message-list::-webkit-scrollbar { width: 8px; }
.message-list::-webkit-scrollbar-thumb { border-radius: 8px; background: rgba(64,113,132,.22); }

.message { display: flex; align-items: flex-end; gap: 9px; animation: appear .25s ease both; }
.message.user { justify-content: flex-end; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: #35a8d6; font-size: 15px; box-shadow: 0 3px 8px rgba(38, 116, 143, .22); }
.message.user .avatar { order: 2; background: #e2a0bd; }
.bubble { max-width: min(680px, 78%); padding: 10px 13px 8px; border-radius: 16px 16px 16px 5px; background: rgba(255,255,255,.93); box-shadow: 0 5px 18px rgba(72, 106, 119, .10); }
.message.user .bubble { order: 1; border-radius: 16px 16px 5px 16px; background: #eaf8fd; }
.bubble-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; color: #198ebd; font-size: 13px; font-weight: 700; }
.message.user .bubble-meta { justify-content: flex-end; color: #b45f87; }
.bubble-meta time { color: #a0abb1; font-size: 11px; font-weight: 400; }
.user-text { margin: 0; white-space: pre-wrap; word-break: break-word; color: #202b30; font-size: 17px; line-height: 1.5; }
.bot-intro { margin-bottom: 7px; color: #1592bd; font-size: 14px; font-weight: 700; }
.result-list { display: grid; gap: 8px; }
.result-card { padding: 8px 10px; border-left: 4px solid #40b981; border-radius: 0 10px 10px 0; background: #eefaf5; }
.result-card.duplicate { border-color: #e9a945; background: #fff8ec; }
.result-card.invalid { border-color: #dc6a74; background: #fff0f1; }
.result-title { display: flex; align-items: center; gap: 7px; color: #18262c; font-size: 15px; font-weight: 700; }
.result-title code { color: #24739a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; }
.copy-number { display: inline-flex; align-items: center; gap: 5px; padding: 2px 6px; border-radius: 6px; color: #24739a; background: rgba(255,255,255,.58); }
.copy-number:hover { color: #126f99; background: #dff3fa; }
.copy-number span { color: #6fa5b8; font-size: 13px; }
.result-detail { margin-top: 4px; color: #5e7078; font-size: 13px; line-height: 1.55; }
.result-detail b { color: #293941; font-weight: 600; }
.history { margin-top: 4px; padding-top: 4px; border-top: 1px dashed rgba(102,125,132,.28); }
.message-foot { display: flex; justify-content: flex-end; margin-top: 5px; color: #a1adb2; font-size: 11px; }

.empty-state { margin: auto; padding: 30px; text-align: center; color: #637781; }
.empty-icon { color: #2d9cca; font-size: 36px; }
.empty-state h2 { margin: 4px 0; color: #2b434c; font-size: 20px; }
.empty-state p { margin: 6px 0; font-size: 13px; }

.composer { padding: 12px 14px 10px; border: 1px solid rgba(103,147,162,.22); border-radius: 16px; background: rgba(255,255,255,.89); box-shadow: 0 10px 30px rgba(70, 111, 129, .13); backdrop-filter: blur(15px); }
.workbench-bar { display: flex; align-items: center; gap: 12px; min-height: 34px; margin-bottom: 8px; }
.workbench-title { color: #2b596a; font-size: 13px; font-weight: 700; }
.enter-mode-label { display: inline-flex; align-items: center; gap: 5px; color: #84939a; font-size: 11px; }
.enter-mode-label select, .identity-row select { padding: 6px 8px; border: 1px solid #d5e2e6; border-radius: 8px; outline: none; color: #2d3b40; background: #f8fcfd; font-size: 12px; }
.workbench-bar .connection-state { margin-left: auto; padding-bottom: 0; }
.identity-row { display: flex; align-items: end; gap: 10px; margin-bottom: 9px; }
.identity-row label { display: grid; gap: 4px; color: #75868d; font-size: 11px; }
.identity-row input { width: 130px; padding: 6px 8px; border: 1px solid #d5e2e6; border-radius: 8px; outline: 0; color: #2d3b40; background: #f8fcfd; font-size: 13px; }
.identity-row input:focus, textarea:focus { border-color: #6ec3df; box-shadow: 0 0 0 3px rgba(75,179,216,.12); }
.connection-state { margin-left: auto; padding-bottom: 7px; color: #43a374; font-size: 12px; }
.input-row { display: flex; align-items: end; gap: 10px; }
textarea { width: 100%; resize: vertical; min-height: 55px; max-height: 180px; padding: 10px 12px; border: 1px solid #d5e2e6; border-radius: 12px; outline: 0; color: #25373d; background: #fbfeff; line-height: 1.45; }
.send-button { width: 45px; height: 45px; flex: 0 0 auto; border-radius: 50%; color: white; background: linear-gradient(145deg, #43b6dc, #218dbb); box-shadow: 0 6px 13px rgba(42, 143, 185, .25); font-size: 21px; }
.send-button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.send-button:disabled { cursor: wait; opacity: .6; }
.composer-hint { display: flex; justify-content: space-between; margin-top: 7px; color: #8b999e; font-size: 11px; }

.info-panel { width: 250px; display: grid; align-content: start; gap: 13px; }
.panel-card { padding: 16px; border: 1px solid rgba(103,147,162,.18); border-radius: 15px; background: rgba(255,255,255,.67); box-shadow: 0 7px 22px rgba(73, 112, 124, .08); }
.panel-kicker { margin-bottom: 12px; color: #258eb8; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.stat-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(103,147,162,.14); color: #708087; font-size: 13px; }
.stat-line:last-child { border-bottom: 0; }
.stat-line strong { color: #294b59; font-size: 15px; }
.tips-card p { margin: 0 0 14px; color: #66777e; font-size: 12px; line-height: 1.7; }
.tip-example { display: flex; justify-content: space-between; padding: 7px 0; color: #788b92; font-size: 12px; }
.tip-example code { color: #25749a; font-size: 13px; }

.toast { position: fixed; right: 24px; bottom: 24px; max-width: 330px; padding: 11px 15px; border-radius: 9px; color: white; background: rgba(31, 51, 60, .9); box-shadow: 0 8px 25px rgba(25, 49, 60, .22); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.92), transparent 42%), linear-gradient(135deg, #edf7f9, #c5dfe9); }
.login-card { width: min(390px, 100%); padding: 34px 30px 27px; border: 1px solid rgba(103,147,162,.2); border-radius: 23px; background: rgba(255,255,255,.88); box-shadow: 0 20px 55px rgba(55,104,124,.16); backdrop-filter: blur(18px); }
.login-logo { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 18px; color: white; background: linear-gradient(145deg, #5ecbe9, #228dbc); box-shadow: 0 9px 22px rgba(34,141,188,.25); font-size: 27px; font-weight: 700; }
.login-title { text-align: center; color: #233b45; font-size: 22px; font-weight: 750; }
.login-subtitle { margin: 7px 0 24px; text-align: center; color: #82939a; font-size: 13px; }
.login-form, .admin-form { display: grid; gap: 11px; }
.login-form label { display: grid; gap: 6px; color: #6d8088; font-size: 12px; }
.login-form input, .admin-form input, .admin-form select, .modal-card input, .modal-card select { width: 100%; padding: 10px 11px; border: 1px solid #d5e2e6; border-radius: 10px; outline: none; color: #24373e; background: #fbfeff; font-size: 14px; }
.login-form input:focus, .admin-form input:focus, .admin-form select:focus, .modal-card input:focus, .modal-card select:focus, .identity-row select:focus { border-color: #69bfdc; box-shadow: 0 0 0 3px rgba(75,179,216,.12); }
.primary-button { min-height: 40px; padding: 8px 15px; border-radius: 10px; color: white; background: linear-gradient(145deg, #43b6dc, #218dbb); box-shadow: 0 7px 14px rgba(42,143,185,.2); font-size: 13px; font-weight: 700; }
.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.login-hint { margin: 18px 0 0; color: #9aabb0; text-align: center; font-size: 11px; }
.form-error { min-height: 18px; margin-top: 9px; color: #cc5d67; font-size: 12px; }

.account-area { display: flex; align-items: center; gap: 8px; color: #6d8088; font-size: 12px; }
.account-button { padding: 6px 8px; border-radius: 7px; color: #258db7; background: #edf8fc; font-size: 12px; }
.account-button:hover { background: #d9f1f8; }
.danger-text { color: #c16d75; background: #fff1f1; }
.admin-nav { display: flex; gap: 5px; overflow-x: auto; padding: 9px clamp(12px, 4vw, 48px); background: rgba(255,255,255,.73); border-bottom: 1px solid var(--line); }
.nav-button { padding: 8px 12px; border-radius: 8px; color: #71858d; background: transparent; white-space: nowrap; font-size: 13px; }
.nav-button:hover, .nav-button.active { color: #167ca7; background: #e1f4fa; }

.admin-panel { width: min(1480px, 100%); flex: 1; margin: 0 auto; padding: 25px clamp(12px, 4vw, 48px) 40px; }
.admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 24px; border: 1px solid rgba(103,147,162,.19); border-radius: 17px; background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(229,246,251,.78)); box-shadow: 0 9px 25px rgba(73,112,124,.08); }
.admin-hero h2 { margin: 0 0 5px; color: #253f49; font-size: 24px; }
.admin-hero p { margin: 0; color: #74878e; font-size: 13px; }
.hero-badge { padding: 8px 10px; border-radius: 9px; color: #258eb8; background: #e1f5fb; font-size: 12px; white-space: nowrap; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.admin-stat { display: flex; justify-content: space-between; align-items: end; padding: 15px 16px; border: 1px solid rgba(103,147,162,.17); border-radius: 13px; background: rgba(255,255,255,.72); }
.admin-stat span { color: #74878e; font-size: 12px; }
.admin-stat strong { color: #294d5b; font-size: 22px; }
.scope-selector-card { display: flex; align-items: end; gap: 12px; margin-bottom: 13px; padding: 14px 16px; border: 1px solid rgba(103,147,162,.18); border-radius: 13px; background: rgba(255,255,255,.78); }
.scope-selector-card label { display: grid; gap: 5px; color: #71858d; font-size: 11px; }
.scope-selector-card select { min-width: 190px; padding: 9px 10px; border: 1px solid #d5e2e6; border-radius: 9px; outline: none; color: #2d3b40; background: #f8fcfd; font-size: 13px; }
.scope-selector-card span { padding-bottom: 9px; color: #8a9aa0; font-size: 11px; }
.data-scope-card { grid-column: 1 / -1; justify-content: space-between; align-items: end; margin: 0; }
.data-scope-copy { min-width: 0; display: grid; gap: 4px; }
.data-scope-copy strong { color: #2b596a; font-size: 14px; }
.data-scope-copy span { padding-bottom: 0; }
.data-scope-card label { display: grid; gap: 5px; color: #71858d; font-size: 11px; }
.data-scope-card select { min-width: 240px; }
.overview-content { display: grid; gap: 13px; margin-bottom: 13px; }
.overview-space-card { padding: 17px; border: 1px solid rgba(103,147,162,.18); border-radius: 15px; background: rgba(255,255,255,.78); box-shadow: 0 7px 22px rgba(73,112,124,.06); }
.overview-space-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.overview-space-head h3 { margin: 0 0 4px; color: #274b59; font-size: 17px; }
.overview-space-head p { margin: 0; color: #7b8b91; font-size: 12px; }
.overview-warning { padding: 6px 8px; border-radius: 8px; color: #b86939; background: #fff3e8; font-size: 11px; white-space: nowrap; }
.overview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 15px 0; }
.overview-metrics > div { padding: 11px 12px; border-radius: 10px; background: #f3fafc; }
.overview-metrics span, .overview-metrics small { display: block; color: #7d9299; font-size: 11px; }
.overview-metrics strong { display: block; margin: 3px 0; color: #275467; font-size: 23px; }
.overview-section-title { margin: 4px 0 8px; color: #5f7a84; font-size: 12px; font-weight: 700; }
.overview-account-list { display: grid; gap: 6px; }
.overview-account-row { display: grid; grid-template-columns: minmax(100px, 1.3fr) .5fr .8fr 1.2fr; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(103,147,162,.13); border-radius: 8px; color: #657b83; font-size: 12px; }
.overview-account-row strong { color: #2a5d70; font-size: 15px; }
.overview-account-row em { color: #bf7651; font-style: normal; }
.overview-account-row small { color: #8b9ba0; font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.admin-card { padding: 17px; border: 1px solid rgba(103,147,162,.18); border-radius: 15px; background: rgba(255,255,255,.78); box-shadow: 0 7px 22px rgba(73,112,124,.06); }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #274b59; font-size: 16px; font-weight: 750; }
.card-title span { color: #299bc4; }
.admin-card > p { margin: 0 0 14px; color: #7b8b91; font-size: 12px; line-height: 1.6; }
.data-summary-card { grid-column: 1 / -1; }
.data-management-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.data-management-stat { padding: 12px 13px; border-radius: 10px; background: #f3fafc; }
.data-management-stat span { display: block; color: #7d9299; font-size: 11px; }
.data-management-stat strong { display: block; margin-top: 4px; color: #275467; font-size: 23px; }
.data-summary-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: #8a9aa0; font-size: 11px; }
.admin-form { gap: 9px; }
.primary-info-card { grid-column: 1 / -1; padding: 21px 22px 17px; background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(239,250,253,.82)); }
.primary-info-card .card-title { margin-bottom: 4px; }
.primary-info-description { margin-bottom: 16px !important; color: #82939a !important; }
.primary-info-form { min-width: 0; display: grid; grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) 150px; align-items: end; gap: 13px; }
.account-field, .subscription-field { min-width: 0; display: grid; gap: 7px; color: #607983; font-size: 11px; font-weight: 650; }
.account-field-control, .subscription-field input, .subscription-field select { width: 100%; min-width: 0; min-height: 43px; padding: 9px 12px; border: 1px solid #cfe1e7; border-radius: 10px; outline: none; color: #29444e; background: rgba(255,255,255,.88); box-shadow: 0 2px 7px rgba(67,111,125,.06); font-size: 14px; font-weight: 400; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.account-field-control:hover, .subscription-field input:hover, .subscription-field select:hover { border-color: #9fcbd7; background: #fff; }
.account-field-control:focus, .subscription-field input:focus, .subscription-field select:focus { border-color: #54b6d4; box-shadow: 0 0 0 3px rgba(75,179,216,.14), 0 3px 9px rgba(67,111,125,.08); background: #fff; }
.primary-info-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; padding-top: 2px; }
.primary-info-actions button { min-height: 40px; }
.primary-info-form .danger-button[hidden] { display: none; }
.subscription-summary { padding: 10px 12px; border: 1px solid #d3e8ed; border-radius: 9px; color: #4f7580; background: #eef9fb; font-size: 12px; }
.subscription-field { font-weight: 600; }
.import-column-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 11px; border: 1px solid #d8eaee; border-radius: 10px; background: #f4fbfc; }
.import-preview-status { min-height: 19px; color: #71878f; font-size: 11px; line-height: 1.55; }
.import-preview-status strong { color: #2c6f80; }
#importDataCard input[type="file"] { padding: 9px; border-style: dashed; color: #66818b; background: #f7fcfd; }
.admin-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.wide-card { min-width: 0; }
.entity-list { display: grid; gap: 8px; }
.entity-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid rgba(103,147,162,.14); border-radius: 10px; background: rgba(246,252,253,.9); }
.entity-main { min-width: 0; display: grid; gap: 3px; }
.entity-main strong { color: #2b4b56; font-size: 13px; }
.entity-main strong em { margin-left: 6px; padding: 2px 5px; border-radius: 5px; color: #2e91b6; background: #e3f6fb; font-size: 10px; font-style: normal; font-weight: 500; }
.entity-main span, .entity-main small { overflow: hidden; color: #819198; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.secondary-button { padding: 7px 9px; border: 1px solid #c9e2e9; border-radius: 8px; color: #2785a9; background: #f3fbfd; font-size: 11px; white-space: nowrap; }
.danger-button { padding: 7px 9px; border: 1px solid #f1c6c9; border-radius: 8px; color: #c7616a; background: #fff3f3; font-size: 11px; white-space: nowrap; }
.secondary-button:hover { background: #e0f4f9; }
.danger-button:hover { background: #ffe5e5; }
.account-tree-table { overflow: hidden; border: 1px solid rgba(103,147,162,.14); border-radius: 11px; background: rgba(246,252,253,.72); }
.account-tree-columns, .account-tree-row { display: grid; grid-template-columns: minmax(170px, 1.6fr) .7fr .7fr 1fr minmax(150px, auto); gap: 10px; align-items: center; }
.account-tree-columns { padding: 9px 12px; color: #8a9aa0; background: #eef8fa; font-size: 11px; }
.account-tree-group { border-top: 1px solid rgba(103,147,162,.14); }
.account-tree-group:first-of-type { border-top: 0; }
.account-tree-row { min-height: 54px; padding: 8px 12px; color: #5d747c; font-size: 12px; }
.account-tree-primary { background: rgba(255,255,255,.82); }
.account-tree-child { min-height: 49px; padding-left: 31px; border-top: 1px dashed rgba(103,147,162,.16); background: rgba(251,254,255,.7); }
.account-tree-name { min-width: 0; display: flex; align-items: center; gap: 8px; }
.account-tree-name > div { min-width: 0; display: grid; gap: 3px; }
.account-tree-name strong { overflow: hidden; color: #2b4b56; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-tree-name small { overflow: hidden; color: #819198; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tree-toggle { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; color: #258eb8; background: #e5f6fb; font-size: 17px; line-height: 20px; }
.tree-toggle:hover { background: #d5eff7; }
.tree-branch { width: 19px; flex: 0 0 auto; color: #80b5c4; font-size: 17px; text-align: center; }
.account-role { color: #5e8b9b; }
.account-status { width: max-content; padding: 3px 7px; border-radius: 6px; font-size: 11px; }
.status-active { color: #2a9470; background: #e8f8f0; }
.status-disabled { color: #b86c6f; background: #fff0f0; }
.account-created { color: #819198; font-size: 11px; }
.account-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.account-actions button { padding: 6px 8px; }
.tree-empty { padding: 13px 12px 13px 70px; border-top: 1px dashed rgba(103,147,162,.16); color: #93a2a7; background: rgba(251,254,255,.7); font-size: 11px; }
.empty-list { padding: 18px; text-align: center; color: #93a2a7; font-size: 12px; }
.settings-actions { display: flex; gap: 8px; }
.settings-actions .secondary-button { flex: 1; }
.renew-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.renew-actions .secondary-button { padding-inline: 5px; font-size: 11px; }
.settings-status { color: #8c9da3; font-size: 11px; }
.checkbox-line { display: flex; align-items: center; gap: 7px; color: #687c84; font-size: 12px; }
.checkbox-line input { accent-color: #2da3cf; }
.backup-list-heading { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 13px; border-top: 1px solid rgba(103,147,162,.14); color: #59747d; font-size: 12px; }
.backup-list-heading span { color: #96a4a8; font-size: 11px; }
.backup-file-list { display: grid; gap: 7px; margin-top: 8px; max-height: 230px; overflow-y: auto; }
.backup-file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid rgba(103,147,162,.14); border-radius: 9px; background: #f7fcfd; }
.backup-file-row > div { min-width: 0; display: grid; gap: 3px; }
.backup-file-row strong { overflow: hidden; color: #41636e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.backup-file-row small { color: #8c9da3; font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(28,54,64,.28); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(360px, 100%); display: grid; gap: 10px; padding: 24px; border-radius: 16px; background: white; box-shadow: 0 20px 60px rgba(24,57,70,.25); }
.modal-card p { margin: 0 0 4px; color: #7e8d93; font-size: 12px; }
.modal-card label { display: grid; gap: 6px; color: #647b84; font-size: 12px; }
.modal-close { position: absolute; top: 9px; right: 12px; color: #84939a; background: transparent; font-size: 24px; }
.modal-card .form-error { margin: 0; }

@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .topbar { height: 68px; padding-inline: 12px; }
  .group-avatar { width: 40px; height: 40px; font-size: 19px; }
  .group-heading h1 { font-size: 17px; }
  .top-actions button { width: 29px; }
  .workspace { padding: 8px 8px 14px; }
  .info-panel { display: none; }
  .message-list { max-height: calc(100vh - 225px); padding-top: 7px; }
  .bubble { max-width: 88%; }
  .identity-row { flex-wrap: wrap; }
  .identity-row input { width: 115px; }
  .connection-state { margin-left: 0; }
  .composer-hint { gap: 8px; font-size: 10px; }
  .account-area { gap: 3px; }
  .account-area > span { display: none; }
  .admin-nav { padding-inline: 8px; }
  .admin-panel { padding: 13px 8px 25px; }
  .admin-hero { align-items: flex-start; flex-direction: column; padding: 17px; }
  .admin-hero h2 { font-size: 20px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .scope-selector-card { align-items: stretch; flex-direction: column; }
  .scope-selector-card select { width: 100%; }
  .scope-selector-card span { padding-bottom: 0; }
  .data-scope-card { align-items: stretch; }
  .data-scope-card select { min-width: 0; }
  .data-management-stats { grid-template-columns: repeat(2, 1fr); }
  .data-summary-footer { align-items: stretch; flex-direction: column; }
  .overview-metrics { grid-template-columns: 1fr; }
  .overview-account-row { grid-template-columns: 1fr 1fr; }
  .renew-actions { grid-template-columns: 1fr; }
  .admin-grid, .admin-lists { grid-template-columns: 1fr; }
  .primary-info-form { grid-template-columns: 1fr; align-items: stretch; }
  .import-column-grid { grid-template-columns: 1fr; }
  .entity-row { align-items: flex-start; flex-direction: column; }
  .entity-row .secondary-button { align-self: flex-end; }
  .account-tree-table { overflow-x: auto; }
  .account-tree-columns, .account-tree-row { min-width: 660px; }
}
