:root {
  --ink: #17231f;
  --muted: #6f7c77;
  --soft: #98a39f;
  --line: #e4e9e6;
  --canvas: #f5f7f5;
  --card: #ffffff;
  --brand: #2f7d65;
  --brand-dark: #185744;
  --brand-soft: #e9f3ef;
  --mint: #dff1ea;
  --danger: #b84a4a;
  --shadow: 0 18px 50px rgba(26, 60, 48, .08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); }
button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(420px, .92fr); background: #fff; }
.login-story { position: relative; overflow: hidden; color: white; background: linear-gradient(140deg, #0b3f32 0%, #14523f 54%, #246c53 100%); }
.login-story::before, .login-story::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); }
.login-story::before { width: 680px; height: 680px; right: -290px; top: -190px; box-shadow: 0 0 0 90px rgba(255,255,255,.018), 0 0 0 180px rgba(255,255,255,.018); }
.login-story::after { width: 280px; height: 280px; left: -120px; bottom: -130px; box-shadow: 0 0 0 70px rgba(255,255,255,.018); }
.story-content { min-height: 100vh; padding: 52px clamp(42px, 7vw, 112px); display: flex; flex-direction: column; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 800; letter-spacing: .14em; }
.brand-mark { width: 36px; height: 33px; display: block; object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(15, 46, 35, .08); flex: 0 0 auto; }
.brand-light .brand-mark { background: rgba(255,255,255,.96); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.story-copy { margin: auto 0; max-width: 660px; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.eyebrow.light { color: #9fd3c0; }
.story-copy h1 { font-size: clamp(38px, 4.5vw, 67px); line-height: 1.18; letter-spacing: -.055em; margin: 25px 0 24px; font-weight: 650; }
.story-copy p { max-width: 560px; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.85; margin: 0; }
.story-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 25px; color: rgba(255,255,255,.78); font-size: 13px; }
.story-features span { display: flex; align-items: center; gap: 12px; }.story-features b { color: #8fc8b3; font-size: 10px; letter-spacing: .1em; }
.login-panel { display: grid; place-items: center; padding: 60px clamp(38px, 8vw, 110px); }
.login-card { width: min(100%, 440px); }
.login-card h2 { margin: 14px 0 8px; font-size: 36px; letter-spacing: -.04em; }
.login-intro { color: var(--muted); margin: 0 0 38px; }
.mobile-brand { display: none; margin-bottom: 46px; }
.field { display: block; margin: 0 0 20px; }
.field > span:first-child { display: block; font-size: 13px; font-weight: 650; margin: 0 0 9px; }
.input-shell { min-height: 50px; border: 1px solid #dfe6e2; background: white; display: flex; align-items: center; border-radius: 10px; transition: .2s ease; }
.input-shell:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,125,101,.09); }
.input-shell input { border: 0; outline: 0; flex: 1; min-width: 0; padding: 13px 14px; background: transparent; color: var(--ink); }
.input-shell input::placeholder, textarea::placeholder { color: #a8b1ad; }
.field-icon { padding-left: 15px; color: #84918c; }.icon-button.inside { margin-right: 7px; font-size: 11px; width: auto; padding: 0 8px; }
.field small { color: var(--muted); display: block; margin-top: 7px; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 9px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button.primary { color: #fff; background: var(--brand); box-shadow: 0 8px 18px rgba(47,125,101,.18); }
.button.primary:hover:not(:disabled) { background: var(--brand-dark); transform: translateY(-1px); }
.button.secondary { background: #fff; border-color: #dfe5e2; box-shadow: 0 2px 5px rgba(31,57,48,.03); }
.button.secondary:hover { border-color: #b9c9c3; }.button.ghost { background: transparent; border-color: #dfe5e2; }
.button.wide { width: 100%; justify-content: space-between; min-height: 52px; padding: 0 20px; margin-top: 5px; }
.button.compact { min-height: 38px; padding: 0 13px; font-size: 12px; }
.login-help { display: flex; justify-content: center; align-items: center; gap: 9px; color: #8c9893; margin-top: 28px; font-size: 11px; }
.status-dot, .sync-state i { width: 7px; height: 7px; border-radius: 50%; background: #42ad79; box-shadow: 0 0 0 4px rgba(66,173,121,.1); }
.help-divider { height: 12px; width: 1px; background: #dce3df; }
.form-error { color: var(--danger); background: #fff1f1; padding: 10px 12px; border-radius: 8px; font-size: 12px; margin: -7px 0 16px; }

.app-view { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 246px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 28px 18px 20px; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; }
.sidebar-head .brand-mark { width: 34px; height: 31px; }
.nav-list { margin-top: 52px; display: grid; gap: 7px; }
.nav-item { border: 0; background: transparent; color: #64716c; border-radius: 9px; padding: 12px 13px; text-align: left; display: flex; gap: 13px; align-items: center; cursor: pointer; font-weight: 600; }
.nav-item:hover { background: #f3f7f5; }.nav-item.active { background: var(--brand-soft); color: var(--brand-dark); }.nav-icon { font-size: 20px; width: 20px; text-align: center; }
.sidebar-note { margin: auto 3px 22px; display: flex; gap: 10px; padding: 14px; background: #f7f9f8; border: 1px solid #edf0ee; border-radius: 10px; }
.note-icon { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; background: #daeae4; color: var(--brand); border-radius: 50%; font-size: 11px; font-weight: 800; }
.sidebar-note strong { font-size: 11px; }.sidebar-note p { color: #84908b; font-size: 10px; line-height: 1.6; margin: 5px 0 0; }
.profile-block { display: flex; align-items: center; gap: 10px; padding: 17px 6px 0; border-top: 1px solid var(--line); }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; color: var(--brand-dark); background: #dcece6; font-size: 13px; font-weight: 800; }
.profile-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }.profile-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.profile-copy span { color: #8a9691; font-size: 10px; margin-top: 3px; }
.icon-button, .text-button { border: 0; background: transparent; cursor: pointer; }.icon-button { width: 34px; height: 34px; border-radius: 8px; color: #75817d; }.icon-button:hover { background: #f1f5f3; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 3.5vw, 52px); background: rgba(255,255,255,.91); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(13px); }
.crumb { color: #96a09c; font-size: 11px; display: flex; gap: 9px; }.crumb b { color: #cad0cd; }.crumb strong { color: #4d5b56; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }.sync-state { display: flex; align-items: center; gap: 8px; color: #6e7a76; font-size: 10px; }.sync-state i { width: 6px; height: 6px; }.text-button { color: var(--brand); font-weight: 700; font-size: 12px; padding: 7px; }
.page { max-width: 1540px; margin: 0 auto; padding: 40px clamp(22px, 3.5vw, 52px) 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 7px 0 5px; font-size: clamp(27px, 3vw, 37px); letter-spacing: -.045em; }.page-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.directory-tab.shared { border-style: dashed; color: var(--brand-dark); border-color: #b7d4c8; background: #f3faf7; }
.directory-tab.shared.active { border-style: solid; color: #fff; background: var(--brand); border-color: var(--brand); }
.directory-tab.admin-dir { color: #6b4f2a; border-color: #e0c89a; background: #fff8ef; }
.directory-tab.admin-dir.active { color: #fff; background: #8b6535; border-color: #8b6535; }
.shared-banner { display: flex; gap: 13px; align-items: flex-start; background: #eef6f3; border: 1px solid #d7e8e1; border-radius: 11px; padding: 14px 16px; margin-bottom: 18px; color: var(--brand-dark); }
.shared-banner > span { font-size: 18px; }
.shared-banner strong { font-size: 12px; }
.shared-banner p { margin: 3px 0 0; color: #70847c; font-size: 10px; line-height: 1.6; }
.quota-banner { display: flex; gap: 13px; align-items: flex-start; background: #fff8ef; border: 1px solid #f0dfc2; border-radius: 11px; padding: 14px 16px; margin-bottom: 18px; color: #8b6535; }
.quota-banner.danger { background: #fff1f1; border-color: #efc9c9; color: #8e3f3f; }
.quota-banner > span { font-size: 16px; }
.quota-banner strong { font-size: 12px; }
.quota-banner p { margin: 3px 0 0; color: inherit; opacity: .85; font-size: 10px; line-height: 1.6; }
.file-action.danger { color: #b84a4a; }
.file-action.danger:hover { border-color: #b84a4a; color: #b84a4a; }
.logs-table { min-width: 920px; }
.action-chip { display: inline-flex; border-radius: 20px; padding: 4px 9px; background: #f0f3f2; color: #65736e; font-size: 9px; font-weight: 700; }
.action-chip.delete { background: #fff1f1; color: #b84a4a; }
.action-chip.restore { background: #e7f2ee; color: var(--brand-dark); }
.action-chip.upload, .action-chip.upload_replace, .action-chip.create_shared { background: #eef4fb; color: #3d5f8a; }
.action-chip.update { background: #fff8ef; color: #8b6535; }
.file-row { position: relative; }
.file-row-actions { display: flex; gap: 4px; }
.file-action { border: 1px solid #dfe5e2; background: #fff; border-radius: 6px; padding: 4px 8px; font-size: 10px; cursor: pointer; color: #65736e; }
.file-action:hover { border-color: var(--brand); color: var(--brand); }
.file-action.disabled { cursor: default; color: #b0bab6; border-style: dashed; background: #f7f9f8; }
.file-action.disabled:hover { border-color: #dfe5e2; color: #b0bab6; }
.file-icon.bin, .file-icon.xlsx, .file-icon.xls, .file-icon.pdf, .file-icon.zip { color: #8b684f; background: #faece2; }
.file-icon.json, .file-icon.xml, .file-icon.md { color: #71678c; background: #eeebf5; }
.type-badge.bin { background: #faece2; color: #8b684f; }
.binary-panel { flex: 1; min-height: 410px; display: grid; place-items: center; padding: 30px; background: #fafbfa; }
.binary-card { text-align: center; max-width: 420px; }
.binary-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #eef6f3; color: var(--brand); font-size: 22px; margin-bottom: 14px; }
.binary-card h3 { margin: 0 0 8px; font-size: 16px; }
.binary-card p { margin: 0 0 22px; color: #84908c; font-size: 12px; line-height: 1.7; }
.binary-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.announcement-card { overflow: hidden; }
.announcement-body { padding: 22px 26px 28px; min-height: 280px; }
.announcement-content { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.85; color: #2b3733; }
.announcement-content.empty { color: #8c9893; font-style: italic; }
.announcement-editor { padding: 18px 22px 22px; }
.announcement-textarea { width: 100%; min-height: 320px; resize: vertical; border: 1px solid #dfe6e2; border-radius: 10px; padding: 14px 16px; font: inherit; font-size: 14px; line-height: 1.75; color: var(--ink); outline: 0; background: #fff; }
.announcement-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,125,101,.09); }
.manual-textarea { min-height: 420px; }
.settings-card { margin-bottom: 18px; overflow: hidden; }
.settings-body { padding: 18px 22px 16px; }
.config-readonly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 18px; }
.config-readonly-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; background: #f7f9f8; border: 1px solid #edf0ee; border-radius: 10px; }
.config-readonly-item.wide { grid-column: 1 / -1; }
.config-label { color: #84908b; font-size: 11px; font-weight: 650; }
.config-readonly-item code, .group-directory-fields.readonly code { display: block; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; color: #2b3733; word-break: break-all; line-height: 1.5; }
.group-directory-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 4px; }
.group-directory-fields.readonly .group-path-field { margin-bottom: 0; }
.group-path-field { margin-bottom: 0; }
.api-hint { color: #8a9691; font-size: 11px; font-family: "SFMono-Regular", Consolas, monospace; }
.admin-notice code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; background: rgba(47,125,101,.08); padding: 1px 5px; border-radius: 4px; }
.ip-locks-card { margin-top: 4px; }
.dialog-textarea { width: 100%; min-height: 140px; resize: vertical; border: 1px solid #dfe6e2; border-radius: 10px; padding: 12px 14px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.7; color: var(--ink); outline: 0; }
.dialog-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,125,101,.09); }
.overview-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 29px; }
.overview-strip > div { display: flex; gap: 13px; align-items: center; min-height: 86px; padding: 17px 24px; }.overview-strip > div + div { border-left: 1px solid var(--line); }
.overview-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; color: #406559; font-size: 18px; }.overview-icon.mint { background: #e4f2ed; }.overview-icon.lilac { background: #eeebf5; color: #71678c; }.overview-icon.peach { background: #faece2; color: #8b684f; }
.overview-strip p { margin: 0; display: flex; flex-direction: column; }.overview-strip b { font-size: 18px; }.overview-strip span:last-child { color: #84908c; font-size: 10px; margin-top: 4px; }
.section-label { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }.section-label span { font-size: 12px; font-weight: 750; }.section-label small { color: #9aa49f; }
.directory-tabs { display: flex; flex-wrap: wrap; gap: 8px; min-height: 39px; margin-bottom: 22px; }
.directory-tab { border: 1px solid #dfe6e2; color: #64716c; background: #fff; padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 650; }
.directory-tab:hover { border-color: #aac1b8; }.directory-tab.active { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 6px 14px rgba(47,125,101,.16); }
.content-grid { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(460px, 1.28fr); gap: 18px; align-items: stretch; }
.card { border: 1px solid var(--line); background: #fff; border-radius: 12px; box-shadow: 0 3px 12px rgba(30,59,48,.025); }
.file-browser, .editor { min-height: 555px; overflow: hidden; }.file-browser { display: flex; flex-direction: column; }
.card-head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }.card-head h2 { font-size: 14px; margin: 0 0 4px; }.card-head > div > span { color: #8a9691; font-size: 10px; }
.search-box { width: min(180px, 45%); height: 36px; border: 1px solid #e2e7e4; border-radius: 8px; display: flex; align-items: center; gap: 7px; padding: 0 9px; color: #8d9893; }.search-box:focus-within { border-color: var(--brand); }.search-box input { min-width: 0; width: 100%; outline: 0; border: 0; font-size: 11px; }
.file-list { padding: 9px; overflow: auto; flex: 1; }
.file-row { width: 100%; border: 1px solid transparent; border-bottom-color: #edf0ee; background: #fff; border-radius: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; }
.file-row:hover { background: #f7faf8; }.file-row.active { background: #eef6f3; border-color: #cee3db; }
.file-main { border: 0; background: transparent; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 13px; text-align: left; padding: 5px 2px; cursor: pointer; color: inherit; min-width: 0; width: 100%; }
.file-icon { width: 38px; height: 40px; display: grid; place-items: center; border-radius: 7px; color: #56806f; background: #e6f2ed; font-size: 9px; font-weight: 850; letter-spacing: .05em; }.file-icon.csv { color: #70648e; background: #efedf6; }
.file-copy { min-width: 0; }.file-copy strong { display: block; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }.file-copy span { display: block; color: #8d9894; font-size: 9px; margin-top: 5px; }.file-arrow { color: #a8b0ad; }
.list-empty { display: grid; place-items: center; text-align: center; min-height: 340px; color: #8c9893; font-size: 12px; }.list-empty strong { color: #5c6964; display: block; margin-bottom: 5px; }
.editor { display: flex; }.empty-editor { flex: 1; display: grid; place-content: center; text-align: center; padding: 30px; }.empty-editor h2 { font-size: 15px; margin: 20px 0 6px; }.empty-editor p { font-size: 11px; color: #929d98; margin: 0; }
.empty-illustration { height: 83px; position: relative; }.empty-illustration span { position: absolute; width: 56px; height: 70px; display: grid; place-items: center; border-radius: 9px; border: 1px solid #cde1da; background: #eff7f4; color: #6a9284; font-size: 10px; font-weight: 800; box-shadow: 0 10px 20px rgba(41,79,65,.08); }.empty-illustration span:first-child { left: calc(50% - 53px); transform: rotate(-7deg); }.empty-illustration span:last-child { left: calc(50% - 3px); top: 8px; color: #796f93; border-color: #ded8e9; background: #f4f1f8; transform: rotate(6deg); }
.editor-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }.editor-head { min-height: 75px; padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }.editor-title-row { min-width: 0; display: flex; align-items: center; gap: 11px; }.editor-title-row > div { min-width: 0; }.editor-title-row h2 { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 4px; }.editor-title-row span:last-child { color: #8b9692; font-size: 9px; }.type-badge { flex: 0 0 auto; padding: 7px 6px; border-radius: 6px; background: #e4f1ec; color: #4c7768; font-size: 8px; font-weight: 850; }.type-badge.csv { background: #eeebf5; color: #74698e; }.editor-actions { flex: 0 0 auto; display: flex; gap: 7px; }
.text-editor-wrap { flex: 1; min-height: 0; position: relative; display: flex; }.text-editor-wrap textarea { flex: 1; width: 100%; min-height: 410px; resize: none; border: 0; outline: 0; padding: 20px 22px 38px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; line-height: 1.8; color: #2b3733; tab-size: 2; }.line-count { position: absolute; bottom: 12px; right: 17px; font: 9px/1 system-ui; color: #9ca6a2; background: rgba(255,255,255,.9); }
.editor-foot { min-height: 40px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #939e99; font-size: 9px; }.editor-foot span:first-child { display: flex; align-items: center; gap: 7px; }.editor-foot i { width: 6px; height: 6px; border-radius: 50%; background: #52ab7e; }.editor-foot .dirty i { background: #dc9d4e; }
.csv-toolbar { min-height: 45px; display: flex; justify-content: space-between; align-items: center; padding: 7px 14px; background: #fafbfa; border-bottom: 1px solid var(--line); }.segmented { display: flex; border: 1px solid #dfe5e2; padding: 2px; border-radius: 7px; background: #fff; }.segmented button { border: 0; background: transparent; border-radius: 5px; padding: 6px 10px; color: #7b8782; cursor: pointer; font-size: 10px; }.segmented button.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.csv-grid-wrap { flex: 1; overflow: auto; min-height: 410px; max-height: 475px; }.csv-grid { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 11px; }.csv-grid th { position: sticky; top: 0; z-index: 2; min-width: 130px; padding: 9px 10px; background: #f1f5f3; border-bottom: 1px solid #dce4e0; border-right: 1px solid #e1e7e4; color: #50615b; text-align: left; }.csv-grid th:first-child { min-width: 42px; width: 42px; left: 0; z-index: 3; }.csv-grid td { border-right: 1px solid #e8ecea; border-bottom: 1px solid #e8ecea; padding: 0; }.csv-grid td:first-child { position: sticky; left: 0; background: #f8faf9; width: 42px; text-align: center; color: #95a09b; }.csv-grid input { width: 100%; min-width: 130px; padding: 9px 10px; border: 0; outline: 0; background: transparent; }.csv-grid input:focus { box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
.xlsx-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; }.xlsx-toolbar { min-height: 45px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 14px; background: #fafbfa; border-bottom: 1px solid var(--line); }.xlsx-tabs { display: flex; flex: 1; gap: 5px; overflow-x: auto; padding: 2px 0; }.xlsx-tab { flex: none; border: 1px solid #dfe5e2; background: #fff; border-radius: 7px; padding: 6px 11px; color: #7b8782; font-size: 10px; cursor: pointer; white-space: nowrap; }.xlsx-tab:hover { border-color: var(--brand); color: var(--brand); }.xlsx-tab.active { background: var(--brand-soft); border-color: #a8cabd; color: var(--brand-dark); font-weight: 700; }.xlsx-tab.hidden-sheet { font-style: italic; opacity: .68; }.xlsx-notice { flex: none; color: #8a9691; font-size: 9px; text-align: right; }
.xlsx-grid-wrap { position: relative; }.xlsx-grid td { padding: 8px 10px; min-width: 130px; max-width: 320px; color: #3f4c47; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; }.xlsx-grid td.xlsx-row-number { position: sticky; left: 0; z-index: 1; min-width: 42px; width: 42px; padding: 8px 4px; background: #f8faf9; text-align: center; color: #95a09b; }.xlsx-grid td.xlsx-merged { background: #fbfcfb; }.xlsx-grid tbody tr:hover td:not(.xlsx-row-number) { background: #f6faf8; }.xlsx-grid td.xlsx-empty { min-width: 0; text-align: center; color: #95a09b; padding: 26px 10px; }.xlsx-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.82); color: #6e7a76; font-size: 11px; }
.admin-notice { display: flex; gap: 13px; align-items: flex-start; background: #eef6f3; border: 1px solid #d7e8e1; border-radius: 11px; padding: 16px 18px; margin-bottom: 20px; color: var(--brand-dark); }.admin-notice > span { font-size: 20px; }.admin-notice strong { font-size: 12px; }.admin-notice p { margin: 3px 0 0; color: #70847c; font-size: 10px; }
.users-card { overflow: hidden; }.users-card .search-box { width: 210px; }.table-wrap { overflow-x: auto; }.users-table { width: 100%; border-collapse: collapse; min-width: 760px; }.users-table th { background: #fafbfa; color: #89948f; font-size: 10px; font-weight: 650; text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); }.users-table td { padding: 15px 20px; border-bottom: 1px solid #edf0ee; font-size: 11px; }.users-table tr:last-child td { border-bottom: 0; }.user-cell { display: flex; gap: 10px; align-items: center; }.user-cell .avatar { width: 32px; height: 32px; }.user-cell strong { font-size: 11px; }.user-cell span { display: block; color: #9aa39f; font-size: 9px; margin-top: 3px; }.role-chip, .access-chip { display: inline-flex; border-radius: 20px; padding: 5px 9px; background: #f0f3f2; color: #65736e; font-size: 9px; }.role-chip.admin { background: #e7f2ee; color: var(--brand-dark); }.access-list { display: flex; max-width: 350px; flex-wrap: wrap; gap: 4px; }.access-chip { padding: 4px 7px; }.edit-user { border: 1px solid #dfe5e2; background: #fff; border-radius: 7px; padding: 6px 10px; font-size: 10px; cursor: pointer; }.edit-user:hover { border-color: var(--brand); color: var(--brand); }
.dialog { width: min(540px, calc(100% - 30px)); max-height: calc(100vh - 40px); border: 0; padding: 0; border-radius: 14px; box-shadow: 0 28px 80px rgba(15,46,35,.23); }.dialog::backdrop { background: rgba(15,35,28,.42); backdrop-filter: blur(3px); }.dialog form { margin: 0; }.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 23px 25px 19px; border-bottom: 1px solid var(--line); }.dialog-head h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.03em; }.dialog-body { max-height: calc(100vh - 220px); overflow-y: auto; padding: 22px 25px 8px; }.dialog-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 25px 21px; border-top: 1px solid var(--line); }.directory-fieldset { border: 0; padding: 2px 0 0; margin: 0 0 20px; }.directory-fieldset legend { font-size: 13px; font-weight: 650; padding: 0; }.directory-fieldset p { margin: 5px 0 12px; color: #8b9692; font-size: 10px; }.directory-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.check-card { position: relative; }.check-card input { position: absolute; opacity: 0; pointer-events: none; }.check-card span { display: flex; align-items: center; justify-content: center; padding: 9px 7px; border: 1px solid #dfe5e2; border-radius: 7px; color: #687570; font-size: 11px; cursor: pointer; }.check-card input:checked + span { background: var(--brand-soft); border-color: #a8cabd; color: var(--brand-dark); font-weight: 700; }
.toast-region { position: fixed; z-index: 100; top: 18px; right: 18px; display: grid; gap: 9px; width: min(360px, calc(100% - 36px)); }.toast { color: #fff; background: #203d33; border-radius: 10px; padding: 13px 15px; box-shadow: 0 16px 40px rgba(18,47,37,.22); font-size: 12px; animation: toast-in .22s ease; }.toast.error { background: #8e3f3f; }.toast.warning { background: #8b6535; } @keyframes toast-in { from { transform: translateY(-7px); opacity: 0; } }
.mobile-only { display: none; }

@media (max-width: 1180px) {
  .login-story { display: none; }.login-view { grid-template-columns: 1fr; }.mobile-brand { display: flex; }
  .content-grid { grid-template-columns: 1fr; }.file-browser { min-height: 360px; }.editor { min-height: 520px; }
}
@media (max-width: 900px) {
  .group-directory-fields, .config-readonly-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mobile-only { display: inline-grid; place-items: center; }.app-view { display: block; }.workspace { width: 100%; }.sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(16,44,34,.16); }.sidebar.open { transform: translateX(0); }.sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 19; border: 0; background: rgba(20,39,32,.3); }.topbar { padding: 0 17px; }.topbar .crumb { margin-right: auto; margin-left: 10px; }.sync-state { display: none; }.page { padding: 28px 15px 45px; }.page-heading { align-items: flex-start; flex-direction: column; }.page-heading p { max-width: 270px; }.page-heading .button, .heading-actions .button { min-height: 40px; padding: 0 12px; white-space: nowrap; font-size: 11px; }.overview-strip > div { padding: 13px 12px; min-height: 75px; }.overview-strip span:last-child { font-size: 8px; }.overview-icon { width: 32px; height: 32px; }.content-grid { grid-template-columns: 1fr; }.editor-head { align-items: flex-start; flex-direction: column; }.editor-actions { align-self: flex-end; margin-top: -45px; }.editor-title-row { max-width: 55%; }.card-head { padding: 14px; }.directory-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }.directory-tab { flex: 0 0 auto; }.editor-foot { padding: 0 12px; }.editor-foot span:last-child { display: none; }.login-panel { padding: 38px 25px; }.directory-checks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 470px) {
  .overview-strip { grid-template-columns: 1fr 1fr; }.overview-strip > div:nth-child(3) { display: none; }.overview-strip > div:nth-child(2) { border-left: 1px solid var(--line); }.page-heading h1 { font-size: 28px; }.refresh-icon { display: none; }.card-head { align-items: flex-start; flex-direction: column; }.card-head .search-box { width: 100%; }.users-card .card-head .search-box { width: 100%; }.editor-title-row { max-width: 50%; }.editor-actions { gap: 4px; }.button.compact { padding: 0 9px; }.login-help { flex-wrap: wrap; }
}
