:root {
  color-scheme: light;
  --background: #f5f7fa;
  --surface: #fff;
  --ink: #17243b;
  --muted: #5b6a7d;
  --line: #e3e9f0;
  --accent: #076f62;
  --accent-light: #e6f5f1;
  --navy: #132842;
  --danger: #ac3e43;
  --shadow: 0 1px 2px #16284108, 0 4px 12px #16284104;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  font-size: 16px;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); min-width: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #218b7b; outline-offset: 3px; }
a { color: var(--accent); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.65rem; letter-spacing: -.045em; font-weight: 740; line-height: 1.25; }
h2 { font-size: 1.08rem; font-weight: 720; }
.icon { flex: none; width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 750; letter-spacing: -.045em; }
.brand-symbol { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: white; }
.brand-symbol .icon { width: 21px; height: 21px; }
.sidebar { display: none; }
.topbar { background: var(--surface); padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); }
.ghost, .icon-btn { border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; padding: 8px; min-height: 42px; font-size: .85rem; font-weight: 650; }
.ghost:hover, .icon-btn:hover { background: #edf2f7; color: var(--ink); }
.main { max-width: 1130px; margin: 0 auto; padding: 16px 16px calc(82px + env(safe-area-inset-bottom)); }
.main-head { margin: 3px 0 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.main-head > div { min-width: 0; }
.subtitle { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.hero {
  color: #fff; position: relative; isolation: isolate; overflow: hidden; border-radius: 17px; padding: 19px 17px 18px;
  background: radial-gradient(ellipse at 100% 0%, #23534f 0%, transparent 55%), linear-gradient(130deg, #152942, #13243b 72%);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 17px;
  box-shadow: 0 8px 24px #192b4020;
}
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle, #c5f7eb 1px, transparent 1.4px) 0 0 / 14px 14px; opacity: .15; mask-image: linear-gradient(110deg, transparent 51%, #000); pointer-events: none; }
.hero .hero-identity { font-size: .81rem; color: #c4dedc; margin-bottom: 5px; display: flex; gap: 7px; align-items: center; }
.hero-identity .icon { width: 15px; height: 15px; }
.hero h1 { font-size: 1.65rem; }
.hero p { color: #d8e2ed; font-size: .85rem; margin-top: 6px; }
.hero .btn-primary { color: #0f362c; background: #a1e6cc; border-color: #a1e6cc; }
.hero .btn-primary:hover { background: #b9f1df; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 7px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: .88rem; font-weight: 680; text-decoration: none; }
.btn .icon { width: 17px; height: 17px; }
.btn:hover { border-color: #c7d8dd; background: #f6faf9; }
.btn-primary { color: white; background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #075e53; color: white; border-color: #075e53; }
.btn-danger { color: var(--danger); border-color: #eccfd2; }
.btn-danger:hover { color: #8b3138; background: #fff2f3; border-color: #e3b3b7; }
.stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 12px 0 22px; }
.stat { display: grid; grid-template-columns: 29px minmax(0,1fr); align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: left; color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.stat:hover { border-color: #99c7bc; }
.stat-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; align-self: start; margin-top: 2px; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat strong { display: block; line-height: 1.15; font-size: 1.32rem; font-weight: 735; font-variant-numeric: tabular-nums; }
.stat small { font-size: .81rem; color: #516378; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 0 0 7px; }
.card-list { display: grid; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.task-row, .message-row { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 13px 12px; text-align: left; color: var(--ink); }
.task-row:hover, .message-row:hover { border-color: #b6d3cd; background: #fcfefd; }
.task-row .row-main, .message-row .row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-size: .96rem; font-weight: 700; overflow-wrap: anywhere; line-height: 1.4; }
.row-meta { color: var(--muted); font-size: .79rem; display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 6px; }
.row-desc { display: block; font-size: .84rem; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.row-icon { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; background: #edf3f8; color: #38607c; flex: none; }
.row-icon .icon { width: 17px; height: 17px; }
.row-tail { flex: none; display: flex; align-items: center; gap: 4px; color: #748197; }
.row-tail .icon { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; flex: none; max-width: 100%; border-radius: 6px; padding: 2px 6px; font-size: .75rem; font-weight: 670; white-space: nowrap; }
.tone-neutral { background: #edf1f5; color: #46596f; }
.tone-blue { background: #eaf2ff; color: #315e9b; }
.tone-purple { background: #f1ecfb; color: #664b96; }
.tone-green { background: #e3f4ed; color: #166854; }
.tone-amber { background: #fff1dc; color: #855616; }
.tone-red { background: #fcebef; color: #a03544; }
.progress-line { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: .77rem; font-variant-numeric: tabular-nums; color: #426e66; }
.track { display: block; height: 5px; border-radius: 8px; background: #e9eff3; width: 72px; overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.filter { font-size: .82rem; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.filter[aria-pressed="true"] { color: var(--accent); background: var(--accent-light); border-color: #b6d9d1; font-weight: 730; }
.empty { text-align: center; color: var(--muted); padding: 26px 12px; font-size: .9rem; }
.back { margin: -4px 0 6px -7px; }
.detail { padding: 15px 13px; }
.detail h1 { word-break: break-word; }
.detail-code { margin-bottom: 5px; color: var(--muted); font-size: .79rem; font-variant-numeric: tabular-nums; }
.detail-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.detail-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0 0; padding: 13px 0 0; border-top: 1px solid var(--line); }
.detail-meta dt { font-size: .79rem; color: var(--muted); }
.detail-meta dd { margin: 2px 0 0; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; }
.detail-grid { display: grid; gap: 10px; margin-top: 10px; }
.detail-section { padding: 14px 13px; min-width: 0; }
.detail-section h2 + p, .detail-section h3 + p { margin-top: 5px; }
.detail-section h3 { font-size: .9rem; }
.detail-section p, .callout p, .log-body { font-size: .89rem; color: #46586e; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-section h3 { margin-top: 12px; }
.detail-section button[data-open-task] { max-width: 100%; min-width: 0; }
.detail-section button[data-open-task] span { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.detail-section a, .log-link { overflow-wrap: anywhere; font-size: .87rem; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.callout { margin-top: 10px; padding: 11px 13px; border-radius: 10px; background: #e9f6f2; color: #12594f; }
.callout strong { font-size: .88rem; }
.callout.warn { background: #fff1df; color: #82521a; }
.callout p { margin-top: 3px; color: inherit; }
.timeline { list-style: none; margin: 12px 0 0; padding: 0; }
.timeline li { position: relative; margin: 0 0 0 4px; padding: 0 0 14px 12px; border-left: 1px solid var(--line); }
.timeline li::before { position: absolute; top: 6px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #63ac9a; content: ""; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline b { display: block; font-size: .85rem; }
.log-meta { display: block; color: var(--muted); font-size: .76rem; margin: 2px 0 4px; }
.message-row.unread { border-color: #c1ddd6; background: #fcfefd; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: #168374; display: inline-block; margin-left: 5px; vertical-align: 2px; }
.mobile-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 2; display: flex; padding: 4px 4px max(5px, env(safe-area-inset-bottom)); background: #fffffffa; border-top: 1px solid var(--line); box-shadow: 0 -6px 22px #16284108; }
.nav-btn { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 46px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: .72rem; padding: 3px; font-weight: 630; }
.nav-btn .icon { width: 20px; height: 20px; }
.nav-btn[aria-current="page"] { color: var(--accent); background: #e8f6f2; font-weight: 750; }
.nav-symbol { display: inline-flex; position: relative; }
.badge { border-radius: 12px; background: #aa4050; color: white; padding: 0 4px; font-size: .65rem; line-height: 1.35; min-width: 13px; min-height: 13px; text-align: center; font-weight: 720; }
.mobile-nav .badge { position: absolute; top: -5px; right: -11px; }

dialog { width: min(100% - 24px, 540px); padding: 0; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--surface); max-height: min(87dvh, 760px); box-shadow: 0 18px 75px #17284250; overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #15233c70; }
.dialog-head { background: var(--surface); z-index: 1; position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 12px 8px 15px; }
.dialog-head h2 { font-size: 1.13rem; }
.dialog-body { display: grid; gap: 12px; padding: 13px 15px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; background: var(--surface); position: sticky; bottom: 0; border-top: 1px solid var(--line); padding: 10px 15px; }
.field { display: grid; gap: 5px; min-width: 0; font-size: .88rem; font-weight: 650; }
.field-note { color: var(--muted); font-weight: 500; font-size: .78rem; }
.field-grid { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
input:not([type="checkbox"]), textarea, select { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #d9e2ed; border-radius: 9px; background: #f8fafc; color: var(--ink); padding: 8px 9px; font-size: 1rem; font-weight: 500; }
input[type="datetime-local"] { appearance: none; -webkit-appearance: none; }
textarea { resize: vertical; min-height: 74px; }
input:focus, textarea:focus, select:focus { border-color: #218b7b; outline: 2px solid #b6e0d7; outline-offset: 0; }
.form-error { color: var(--danger); font-size: .87rem; overflow-wrap: anywhere; }
.check-field { display: flex; align-items: center; gap: 8px; min-height: 42px; font-size: .89rem; }
.check-field input { width: 19px; height: 19px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.retro-fields { display: grid; gap: 12px; }
.toast { position: fixed; z-index: 4; bottom: calc(67px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); padding: 9px 13px; max-width: calc(100% - 38px); border-radius: 10px; background: #1a3246; color: white; text-align: center; box-shadow: 0 5px 18px #16284135; font-size: .86rem; pointer-events: none; }
@media (max-width: 359px) {
  .main, .topbar { padding-inline: 11px; }
  .task-row, .message-row { gap: 8px; }
  .task-row .row-tail .icon, .message-row .row-tail .icon { display: none; }
  .form-actions { padding-inline: 11px; }
}
@media (max-width: 650px) {
  dialog { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: 90dvh; border-radius: 17px 17px 0 0; border-width: 1px 0 0; }
  .form-actions { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (min-width: 680px) {
  .main { padding-inline: 28px; padding-top: 25px; }
  .topbar { padding-inline: 28px; }
  .hero { padding: 23px; }
  .stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .stat { padding: 12px; }
  .task-row, .message-row, .detail, .detail-section { padding: 15px 17px; }
  .detail-meta { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (min-width: 1000px) {
  body { display: grid; grid-template-columns: 216px minmax(0,1fr); }
  .sidebar { display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100dvh; background: var(--surface); border-right: 1px solid var(--line); }
  .sidebar .brand { margin: 0 8px 31px; }
  .sidebar nav { display: grid; gap: 4px; }
  .sidebar .nav-btn { flex-direction: row; justify-content: start; gap: 10px; padding: 9px 12px; font-size: .9rem; }
  .sidebar .desktop-count { margin-left: auto; }
  .avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-light); font-weight: 700; font-size: .88rem; }
  .app { min-width: 0; }
  .topbar { display: flex; justify-content: space-between; align-items: center; padding: 11px 28px; }
  .main { padding-bottom: 38px; }
  .hero { min-height: 150px; padding: 26px; }
  .hero h1 { font-size: 2rem; }
  .stats { gap: 12px; margin-bottom: 24px; }
  .stat { gap: 10px; padding: 14px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat strong { font-size: 1.48rem; }
  .toast { bottom: 25px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .12s, border-color .12s; }
}

:root {
  --background: #f4f7f8;
  --accent: #087465;
  --line: #e0e9ec;
  --navy: #132b39;
  --shadow: 0 2px 3px #183e3b05, 0 8px 22px #183e3b05;
}
body { min-height: 100dvh; display: block; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; background: var(--surface); padding: 8px 12px; }
.main:focus { outline: none; }
button:disabled { cursor: wait; opacity: .56; }
.btn { gap: 6px; }
.btn svg { flex-shrink: 0; }
.standalone-message { padding: 26px; color: var(--muted); text-align: center; }
.brand { color: #1e373e; }
.brand-symbol { background: #097768; }
.gate { min-height: 100dvh; display: grid; align-items: center; padding: 15px; background: radial-gradient(ellipse at right top, #dcf0e8 0%, transparent 60%), var(--background); }
.gate-frame { margin-inline: auto; display: grid; width: min(100%, 430px); border: 1px solid #d9e7e5; background: white; border-radius: 22px; box-shadow: 0 18px 50px #16372d12; overflow: hidden; }
.gate-intro { position: relative; isolation: isolate; overflow: hidden; color: white; background: radial-gradient(ellipse at 100% 10%, #116b5a, transparent 68%), #122a36; padding: 22px; }
.gate-intro::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle, #c5f7eb 1px, transparent 1.4px) 0 0 / 16px 16px; opacity: .16; mask-image: linear-gradient(125deg, transparent 48%, #000); pointer-events: none; }
.gate-intro .brand { color: white; }
.gate-intro .brand-symbol { background: #13534f; color: #b1e9d5; }
.gate-intro-text { margin-top: 22px; }
.gate-eyebrow { font-size: .78rem; letter-spacing: .15em; color: #a8d9ce; font-weight: 660; }
.gate-title { font-size: clamp(1.55rem, 6.6vw, 2.65rem); letter-spacing: -.045em; font-weight: 750; line-height: 1.24; margin: 5px 0 8px; }
.gate-title br { display: none; }
.gate-copy { color: #c8dcd9; font-size: .86rem; max-width: 25em; }
.gate-cycle { display: flex; align-items: center; gap: 5px; color: #a8d9ce; font-size: .74rem; margin-top: 15px; }
.gate-cycle span { border: 1px solid #94c8bb4e; border-radius: 7px; padding: 3px 6px; }
.gate-cycle .icon { width: 12px; height: 12px; }
.gate-content { padding: 23px 21px 26px; }
.gate-content > .brand { display: none; }
.gate-content h1 { margin: 0 0 5px; }
.gate-note { color: var(--muted); font-size: .9rem; margin: 4px 0 17px; }
.gate-form { display: grid; gap: 13px; }
.gate-submit { justify-content: center; width: 100%; margin-top: 5px; }
.gate-content > .ghost { margin-top: 6px; }
.code-field { display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 8px; }
.code-field button { min-width: 94px; }
.pending-company-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--accent-light); color: var(--accent); margin-bottom: 12px; }
.pending-company-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pending-company-actions + .field-note { margin-top: 9px; }
.test-gate-label { margin-bottom: 9px; }
.test-gate-actions { margin-top: 12px; }
.test-login-copy { margin-top: 4px; color: var(--muted); font-size: .88rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.test-session-topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.test-session-topbar .top-profile { max-width: 100%; justify-self: end; }
.test-session-banner { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 4px 10px; gap: 8px; border-radius: 10px; background: #fff8e9; }
.desktop-breadcrumb { display: none; }
.profile-button { display: flex; align-items: center; text-align: left; gap: 8px; border: 0; color: var(--ink); background: transparent; border-radius: 9px; }
.profile-button:hover { background: #edf5f2; }
.profile-button .icon { width: 16px; height: 16px; color: var(--muted); }
.profile-text { overflow: hidden; display: grid; align-items: center; min-width: 0; }
.profile-text strong, .profile-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-text strong { font-size: .85rem; }
.profile-text small { font-size: .72rem; color: var(--muted); }
.top-profile { max-width: 51%; padding: 3px 6px; }
.avatar { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--accent-light); font-weight: 720; font-size: .91rem; }
.hero { min-height: 137px; padding: 19px 17px; background: radial-gradient(ellipse at 108% -10%, #137664 0%, transparent 64%), linear-gradient(135deg,#183940,#112c38); }
.hero-content { min-width: 0; }
.hero h1 { overflow-wrap: anywhere; }
.hero p { color: #ccdedc; }
.hero .btn-primary { background: #b1eed9; border-color: #b1eed9; }
.hero .btn-primary:hover { background: #cefaea; }
.stats { margin: 12px 0 18px; }
.stat { grid-template-columns: 29px minmax(0,1fr) 14px; }
.stat > .icon { width: 14px; height: 14px; color: #67808b; }
.main-head > .btn { flex: none; }
.home-grid, .retro-list, .settings-grid, .detail-column { display: grid; align-items: start; gap: 13px; }
.home-grid > *, .detail-column > *, .settings-grid > * { min-width: 0; }
.main-section { min-width: 0; }
.section-head .ghost .icon { width: 14px; height: 14px; }
.compact .row-icon { width: 29px; height: 29px; }
.compact .row-icon .icon { width: 15px; height: 15px; }
.progress-line .track { appearance: none; -webkit-appearance: none; border: 0; color: #36a58c; accent-color: #36a58c; }
.track::-webkit-progress-bar { background: #e8eff0; border-radius: 8px; }
.track::-webkit-progress-value { background: #36a58c; border-radius: 8px; }
.track::-moz-progress-bar { background: #36a58c; border-radius: 8px; }
.search-form, .member-toolbar { display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 8px; margin: 0 0 12px; }
.search-field { display: flex; position: relative; min-width: 0; }
.search-field .icon { position: absolute; width: 17px; height: 17px; left: 11px; top: 13px; color: var(--muted); }
.search-field input[type=search] { background: #fff; padding-inline-start: 35px; }
.member-toolbar .search-field { grid-column: span 2; }
.member-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
.member-toolbar > .btn { grid-column: span 2; justify-self: end; }
.member-toolbar select { background: #fff; }
.company-member-toolbar > .btn { grid-column: auto; }
.company-task-search .search-field { grid-column: 1 / -1; }
.company-task-search select { background: #fff; }
.company-meta { display: inline-flex; align-items: center; gap: 3px; min-width: 0; overflow-wrap: anywhere; color: #25685c; }
.company-meta .icon { width: 13px; height: 13px; }
.company-panel { margin-bottom: 12px; }
.company-panel summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 13px; min-height: 44px; cursor: pointer; list-style: none; }
.company-panel summary::-webkit-details-marker { display: none; }
.company-panel summary:focus-visible { outline: 2px solid #218b7b; outline-offset: 2px; border-radius: 10px; }
.company-panel-label { display: flex; align-items: center; gap: 8px; }
.company-panel-label .icon { width: 17px; height: 17px; color: var(--accent); }
.company-count, .company-panel-empty { color: var(--muted); font-size: .86rem; }
.company-panel summary > .icon { width: 15px; height: 15px; color: var(--muted); }
.company-panel[open] summary > .icon { transform: rotate(90deg); }
.company-list { list-style: none; padding: 0 13px; margin: 0; }
.company-list li { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-block: 3px; border-top: 1px solid var(--line); }
.company-list li span { overflow-wrap: anywhere; min-width: 0; font-size: .9rem; }
.company-list .ghost { flex: none; }
.company-panel-empty { padding: 0 13px 12px; }
.form-company { display: flex; gap: 8px; align-items: baseline; font-size: .86rem; color: var(--muted); }
.form-company span { flex: none; }
.form-company strong { color: var(--ink); overflow-wrap: anywhere; }
.assignment-group { display: grid; gap: 6px; }
.assignment-group .callout { margin: 0; }
.member-row { display: flex; align-items: center; gap: 11px; padding: 12px; }
.member-actions { display: flex; align-items: center; flex: none; gap: 6px; }
.member-info { flex: 1; min-width: 0; }
.member-name { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.member-name h2 { font-size: .95rem; overflow-wrap: anywhere; }
.member-name .pill { white-space: normal; overflow-wrap: anywhere; }
.member-info p { margin-top: 3px; font-size: .81rem; color: var(--muted); overflow-wrap: anywhere; }
.message-toolbar { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.message-toolbar .filters { margin: 0; }
.empty { display: grid; justify-items: center; gap: 4px; padding: 28px 15px; }
.empty strong { color: var(--ink); font-size: .94rem; }
.empty p { font-size: .85rem; }
.empty .btn { margin-top: 8px; }
.empty-icon { display: grid; place-items: center; color: var(--accent); background: var(--accent-light); width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
.detail-actions { border-top: 1px solid var(--line); padding-top: 11px; }
.detail .progress-line { margin-top: 11px; }
.detail .track { width: min(190px,70%); }
.detail .retro-link { margin-top: 12px; }
.retro-link { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 10px; }
.retro-link button, .actions button[data-task] { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.retro-heading { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.retro-heading h2 { overflow-wrap: anywhere; }
.retro-company { display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.retro-company .icon { width: 14px; height: 14px; }
.retro-fields { border: 1px solid var(--line); padding: 10px 12px 12px; border-radius: 11px; }
.retro-fields legend { padding-inline: 5px; font-size: .86rem; font-weight: 700; }
.submission-date { margin-top: 7px; }
.log-body strong { font-weight: 660; }
.account-card { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.account-card strong { overflow-wrap: anywhere; }
.account-card p { overflow-wrap: anywhere; }
.settings-entry { padding-block: 12px; }
.settings-entry + .settings-entry { border-top: 1px solid var(--line); }
.settings-entry:last-child { padding-bottom: 0; }
.settings-entry-title { display: flex; align-items: center; gap: 6px; }
.settings-entry-title .icon { width: 17px; height: 17px; color: var(--accent); }
.settings-entry-title h3 { margin: 0; font-size: .94rem; }
.settings-entry-title + p { margin-top: 6px; }
.settings-entry .settings-error { color: var(--danger); }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; color: var(--muted); font-size: .9rem; }
.spinner { width: 18px; height: 18px; border: 2px solid #d6e8e3; border-top-color: var(--accent); border-radius: 50%; }
@media (prefers-reduced-motion:no-preference) {
  .spinner { animation: spin .8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
@media (max-width: 370px) {
  .gate { padding: 10px; }
  .gate-content, .gate-intro { padding-inline: 16px; }
  .main-head .btn { padding-inline: 8px; }
  .profile-text { display: none; }
}
@media (max-width: 540px) {
  .member-actions { flex-direction: column; align-items: stretch; }
}
@media (min-width: 720px) {
  .gate-frame { grid-template-columns: minmax(0,.95fr) minmax(0,1fr); width: min(100%, 840px); min-height: 460px; }
  .gate-intro, .gate-content { display: flex; flex-direction: column; justify-content: center; padding: 35px; }
  .gate-intro .brand { position: absolute; top: 30px; left: 35px; }
  .gate-intro-text { margin-top: 0; }
  .gate-title br { display: initial; }
  .gate-copy { font-size: .99rem; }
  .gate-cycle { margin-top: 21px; }
  .gate-content > .ghost { align-self: flex-start; }
  .search-form { max-width: 450px; }
  .company-task-search { grid-template-columns: minmax(0,1fr) minmax(130px,.68fr) max-content; max-width: 610px; }
  .company-task-search .search-field { grid-column: auto; }
  .member-toolbar { grid-template-columns: minmax(190px,1fr) minmax(110px,max-content) minmax(110px,max-content) max-content; }
  .company-member-toolbar { grid-template-columns: minmax(150px,1fr) minmax(110px,1fr) repeat(2,minmax(92px,max-content)) max-content; }
  .member-toolbar .search-field, .member-toolbar > .btn { grid-column: auto; }
  .settings-grid { grid-template-columns: minmax(205px,.62fr) minmax(0,1.38fr); }
  .retro-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 1000px) {
  body.logged-in { display: grid; grid-template-columns: 210px minmax(0,1fr); }
  .mobile-nav { display: none; }
  .top-brand > .brand { display: none; }
  .desktop-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .87rem; }
  .desktop-breadcrumb strong { color: var(--ink); }
  .desktop-breadcrumb .icon { width: 15px; }
  .hero { padding: 25px 26px; min-height: 156px; }
  .hero .btn { min-width: 130px; }
  .stat { grid-template-columns: 34px minmax(0,1fr) 14px; }
  .home-grid { grid-template-columns: minmax(0,1.7fr) minmax(245px,1fr); gap: 16px; }
  .detail-grid { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 13px; }
}
