@font-face { font-family: 'Gotham Pro'; src: url('/assets/GothamPro.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/assets/GothamPro-Medium.woff2') format('woff2'); font-style: normal; font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Gotham Pro'; src: url('/assets/GothamPro-Bold.woff2') format('woff2'); font-style: normal; font-weight: 700 900; font-display: swap; }

:root {
  color-scheme: light;
  font-family: 'Gotham Pro', 'Segoe UI', Arial, sans-serif;
  font-synthesis: none;
  --bg: #f4f5f6;
  --surface: #fff;
  --sidebar: #393939;
  --text: #393939;
  --muted: #7a7e7c;
  --line: #e7e9e7;
  --accent: #477f28;
  --control: #83c150;
  --control-hover: #76b544;
  --soft: #f2f6ed;
  --danger: #b54237;
  --radius: 12px;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 13px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, .button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid #dedfdd; border-radius: 8px; color: var(--text); background: #fff; font-weight: 500; line-height: 1.4; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
button:hover, .button:hover { background: #f6f8f4; border-color: #cbd3c5; }
button:disabled { cursor: not-allowed; opacity: .48; }
button.primary { background: var(--control); border-color: var(--control); color: #24351a; }
button.primary:hover { background: var(--control-hover); border-color: var(--control-hover); }
button.danger { color: var(--danger); }
button.danger:hover { background: #fff5f3; border-color: #edc6c0; }
button.text-button { border-color: transparent; background: transparent; padding: 7px 9px; min-height: 34px; color: var(--accent); }
button.text-button:hover { background: var(--soft); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-height: 34px; padding: 7px; flex-shrink: 0; border: 0; border-radius: 7px; background: transparent; color: #92978f; text-decoration: none; }
.icon-button:hover { background: var(--soft); color: var(--accent); }
.icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
a { color: var(--accent); }
a, button { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #83c15080; outline-offset: 3px; }
input, select, textarea { width: 100%; min-width: 0; min-height: 41px; padding: 10px 12px; border: 1px solid #dfe3de; border-radius: 7px; color: var(--text); background: #fff; line-height: 1.4; }
input::placeholder { color: #9a9e99; }
input:disabled { background: #f5f6f4; color: var(--muted); }
input[readonly] { background: #f6f7f5; }
select { padding-right: 26px; cursor: pointer; }
input[type='checkbox'] { width: 17px; height: 17px; min-height: 17px; accent-color: var(--accent); flex-shrink: 0; margin: 0; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 500; }
label.check { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 400; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; font-weight: 700; line-height: 1.3; letter-spacing: -.8px; }
h2 { font-size: 15px; font-weight: 500; line-height: 1.45; }
h3 { font-size: 13px; font-weight: 500; }
small { font-size: 11px; color: var(--muted); }
strong { font-weight: 500; }
code { padding: 3px 6px; border-radius: 4px; background: #f4f5f3; color: #7b8276; font-size: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; left: 12px; top: 12px; padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--sidebar); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 18px; }
.stack small { line-height: 1.7; }

.shell { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; min-height: 580px; display: flex; flex-direction: column; padding: 26px 16px 16px; overflow: hidden; color: #fff; background: var(--sidebar); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.sidebar .brand { padding: 0 7px; }
.brand img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand strong { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.5px; }
.brand small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .1px; color: #b9bcb7; }
.nav-label { margin: 40px 12px 12px; color: #a9ada5; font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; }
.nav { display: grid; gap: 6px; position: relative; z-index: 1; }
.nav-item { display: flex; align-items: center; min-height: 46px; gap: 11px; padding: 11px 12px; border-radius: 9px; color: #dcdfd8; text-decoration: none; font-size: 12px; transition: background .15s; }
.nav-item .icon { color: #b4b9ae; }
.nav-item:hover { background: #ffffff0a; color: #fff; }
.nav-item.selected { background: var(--control); color: #26361b; font-weight: 500; }
.nav-item.selected .icon { color: #344729; }
.nav-count { margin-left: auto; min-width: 23px; padding: 1px 6px; background: #ffffff10; color: #ccd2c5; border-radius: 5px; text-align: center; font-size: 10px; }
.nav-item.selected .nav-count { color: #344729; background: #ffffff35; }
.sidebar-scene { flex: 1; min-height: 72px; position: relative; margin: 30px -16px 0; background: linear-gradient(180deg, #393939 0%, #39393920 40%, #39393910 66%, #393939 100%), url('/assets/sidebar-interior-room.webp') center 64% / 270px auto no-repeat; opacity: .32; filter: grayscale(1); }
.sidebar-bottom { position: relative; padding: 15px 7px 0; border-top: 1px solid #ffffff12; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-profile > div { min-width: 0; }
.sidebar-profile strong { display: block; font-size: 11px; overflow-wrap: anywhere; }
.sidebar-profile small { display: block; margin-top: 3px; color: #a4a99e; font-size: 9px; }
.sidebar .avatar { width: 33px; height: 33px; font-size: 10px; background: #535b4e; color: #d7e4ca; }
.profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 12px; }
.profile-actions button { min-height: 32px; padding: 5px 0; background: transparent; border-color: transparent; color: #b5bbae; font-size: 10px; font-weight: 400; }
.profile-actions button:hover { color: #fff; }
.profile-actions .icon { width: 15px; height: 15px; }
.profile-actions .icon-button { width: 28px; padding: 5px; }
.main { min-width: 0; }
.topbar { height: 76px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 13px; color: #989d95; font-size: 11px; min-width: 0; }
.breadcrumbs .icon { width: 12px; height: 12px; color: #bec3b9; }
.breadcrumbs a { text-decoration: none; color: #767e6e; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-caption { font-size: 10px; color: #a0a59b; white-space: nowrap; }
.content { max-width: 1600px; margin: 0 auto; padding: 30px 32px 44px; }
.content:focus { outline: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.page-heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.page-heading > div { min-width: 0; }
.title-line { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.title-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 8px; border-radius: 6px; background: #e9ece5; color: #828b77; font-size: 12px; }
.page-head p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-actions { display: flex; gap: 10px; flex-shrink: 0; }
.page-actions button { min-height: 42px; font-size: 12px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 19px; color: #848b7d; text-decoration: none; font-size: 11px; }
.back-link:hover { color: var(--accent); }
.back-link .icon { width: 14px; height: 14px; }
.summary-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 25px; margin: -3px 0 20px; font-size: 11px; color: #7f8578; }
.summary-line > span { display: inline-flex; align-items: center; gap: 7px; }
.summary-line strong { color: #51594a; }
.summary-line > span + span { padding-left: 24px; border-left: 1px solid #dce1d8; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 3px #313c2403; }
.toolbar { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.search-field { position: relative; flex: 1; max-width: 400px; }
.search-field > .icon { position: absolute; left: 12px; top: 12px; width: 16px; height: 16px; color: #a3a998; pointer-events: none; }
.search-field input { padding-left: 37px; font-size: 12px; }
.toolbar > select { flex: 0 1 220px; width: auto; max-width: 250px; font-size: 11px; }
.toolbar-hint { margin-left: auto; font-size: 10px; color: #999f94; }
.member-toolbar > select { flex-basis: 195px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
thead { background: #f8f9f7; }
th { padding: 12px 20px; color: #888f81; font-size: 10px; font-weight: 500; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 16px 20px; border-bottom: 1px solid #eff1ed; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfa; }
td small { display: block; margin-top: 4px; font-size: 10px; }
.row-action { width: 1%; white-space: nowrap; text-align: right; padding-left: 8px; }
.row-action button { font-size: 11px; }
.person { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; min-width: 185px; }
.person strong { display: block; font-size: 13px; }
.person:hover strong, .application-cell:hover strong { color: var(--accent); }
.person small { margin-top: 3px; font-size: 11px; color: #858e7a; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex-shrink: 0; border-radius: 50%; background: #f0f3eb; color: #8b9b77; font-size: 11px; font-weight: 500; }
.avatar.large { width: 54px; height: 54px; font-size: 17px; background: #e9eddf; color: #7b8d63; }
.app-tags, .role-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.app-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 7px; border: 1px solid #e6e9e1; border-radius: 5px; color: #747e67; background: #fff; text-decoration: none; font-size: 10px; white-space: nowrap; }
.app-tag:hover { border-color: #a5be8f; background: var(--soft); color: var(--accent); }
.app-tag.more { background: #f4f6f0; }
.role-tag { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 8px; border-radius: 5px; color: #7c8472; background: #f3f5ef; font-size: 10px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; background: #f3f4f1; color: #727c67; font-size: 10px; font-weight: 400; white-space: nowrap; line-height: 1.5; }
.dot { display: inline-block; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.good { color: #5a7d36; background: #f0f6e8; }
.badge.warning { color: #977331; background: #fbf5e8; }
.badge.off { color: #787f70; background: #f1f3ee; }
.dot.good { color: #83b650; }
.panel-footer { min-height: 48px; padding: 14px 20px; border-top: 1px solid var(--line); color: #939a88; font-size: 10px; }
.panel-footer button { font-size: 11px; }
.page-note { padding: 14px 2px 0; color: #989e90; font-size: 10px; line-height: 1.7; }
.empty { display: grid; justify-items: center; gap: 12px; padding: 56px 28px; text-align: center; color: #949c89; }
.empty .icon { width: 26px; height: 26px; color: #b5c0a6; margin-bottom: 2px; }
.empty strong { color: #6b765e; font-size: 13px; }
.empty p { max-width: 410px; font-size: 11px; line-height: 1.8; }
.application-cell { display: inline-flex; align-items: center; gap: 12px; min-width: 168px; text-decoration: none; color: var(--text); }
.application-cell strong { display: block; font-size: 13px; }
.application-cell small { margin-top: 4px; font-size: 10px; color: #858e7a; }
.app-icon { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; flex-shrink: 0; border: 1px solid #e7eade; border-radius: 9px; background: #f7f9f3; color: #8b9f70; }
.page-heading > .app-icon { width: 54px; height: 54px; border-radius: 13px; background: #edf2e4; border-color: #e3e9da; }
.page-heading > .app-icon .icon { width: 26px; height: 26px; }
.member-count { display: inline-flex; align-items: center; gap: 9px; color: #8b967d; text-decoration: none; padding: 5px 8px 5px 0; }
.member-count strong { color: #566647; }
.member-count > .icon:first-child { width: 15px; height: 15px; }
.member-count > .icon:last-child { width: 12px; height: 12px; color: #b7c0ae; }
.member-count:hover strong { color: var(--accent); }
.applications-table td { padding-top: 18px; padding-bottom: 18px; }
.tabs { display: flex; align-items: center; gap: 28px; margin: -3px 0 23px; border-bottom: 1px solid #dfe4d9; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 0 15px; color: #969e8b; text-decoration: none; font-size: 12px; white-space: nowrap; }
.tab span { padding: 1px 6px; border-radius: 5px; background: #e9ede3; color: #969f89; font-size: 9px; }
.tab:hover { color: var(--accent); }
.tab.active { color: #5e813d; font-weight: 500; }
.tab.active::after { content: ''; height: 3px; position: absolute; bottom: -1px; left: 0; right: 0; background: var(--control); border-radius: 2px 2px 0 0; }
.tab.active span { background: #e7f0db; color: #7c965d; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 23px; }
.section-heading p { color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.7; }
.section-heading button { font-size: 11px; }
.form-panel { max-width: 700px; }
.section-body { padding: 0 23px 26px; max-width: 570px; }
.section-body .note { margin-top: -4px; }
.security-row { display: flex; align-items: center; gap: 18px; padding: 26px 23px; border-bottom: 1px solid var(--line); }
.security-row:last-child { border-bottom: 0; }
.security-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #e8eddf; border-radius: 10px; background: #f8faf3; color: #94a67b; }
.security-description { flex: 1; }
.security-description h2 { font-size: 13px; }
.security-description p { color: var(--muted); margin-top: 5px; max-width: 530px; font-size: 11px; line-height: 1.7; }
.security-row > button { flex-shrink: 0; font-size: 11px; }
.password-pending { padding-left: 46px; color: #aa925f; }
.notice { padding: 14px 18px; margin-bottom: 24px; border: 1px solid #eadfc9; border-radius: 8px; background: #fffaf0; color: #967b4b; font-size: 12px; }
.audit-table td { font-size: 11px; line-height: 1.7; }
.audit-table .date-cell { white-space: nowrap; color: #999f91; font-size: 10px; }
.audit-table td:nth-child(2) { min-width: 200px; }

dialog { padding: 0; width: min(530px, calc(100% - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 14px; color: var(--text); box-shadow: 0 20px 100px #26331924; }
dialog::backdrop { background: #252e235e; backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 26px 21px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; letter-spacing: -.4px; }
.modal-head p { color: var(--muted); font-size: 11px; margin-top: 6px; line-height: 1.7; }
.modal-head .icon-button { margin: -4px -8px 0 0; }
.modal-body { padding: 24px 26px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.modal-actions button { font-size: 12px; }
.modal-secondary { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.modal-secondary button { font-size: 11px; }
.note { padding: 12px 14px; border-radius: 7px; background: #f5f7f1; color: #8a947b; font-size: 11px; font-weight: 400; line-height: 1.75; }
.error { color: var(--danger); font-size: 12px; line-height: 1.65; }
.error:empty { display: none; }
.access-choices { display: grid; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.access-choice { display: grid; grid-template-columns: 1fr 156px; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.access-choice:last-child { border-bottom: 0; }
.access-choice .check { font-size: 11px; }
.access-choice select { min-height: 34px; padding-top: 6px; padding-bottom: 6px; font-size: 10px; }
.session-row { border-bottom: 1px solid var(--line); padding: 0 0 20px; margin-bottom: 20px; }
.session-row p { color: var(--muted); font-size: 11px; margin: 10px 0; overflow-wrap: anywhere; }
.session-row small { display: block; margin-top: 4px; }
.session-row button { min-height: 32px; font-size: 11px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 10% 10%, #ebf1e2, transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 440px; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 15px 60px #34471c0b; }
.login-card .brand { margin-bottom: 34px; }
.login-card .brand small { color: #949e88; }
.login-card h1 { font-size: 23px; }
.login-card > p { font-size: 12px; line-height: 1.8; margin: 12px 0 25px; }
.login-card .primary { min-height: 44px; }
.login-footer { text-align: center; color: #a1a998; font-size: 10px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
.login-card > .text-button { margin-top: 16px; }
.loading { display: grid; place-items: center; min-height: 100vh; color: var(--muted); font-size: 14px; }
#toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 13px 22px; border: 1px solid #dbe8cd; border-radius: 10px; background: #f4faec; color: #537b36; font-size: 12px; box-shadow: 0 6px 25px #344e201a; }
#toast.failure { border-color: #edcec8; color: #a1493c; background: #fff5f2; }

@media (min-width: 1500px) {
  .content { padding: 36px 42px 48px; }
  .topbar { padding: 0 42px; }
  td { padding-top: 19px; padding-bottom: 19px; }
}
@media (max-width: 1180px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { padding-right: 12px; padding-left: 12px; }
  .nav-item { gap: 9px; padding-left: 10px; padding-right: 10px; font-size: 11px; }
  .nav-label { margin-top: 32px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; }
  .sidebar-scene { margin-left: -12px; margin-right: -12px; }
  .content { padding: 26px 24px 38px; }
  .topbar { padding: 0 24px; }
  .topbar-caption { display: none; }
  h1 { font-size: 25px; }
  th, td { padding-left: 15px; padding-right: 15px; }
  .applications-table .role-tags { max-width: 190px; }
  .toolbar { padding: 16px; gap: 9px; }
  .toolbar > select { max-width: 180px; }
  .person { min-width: 172px; }
  .page-actions button { font-size: 11px; padding-left: 12px; padding-right: 12px; }
  .security-row { flex-wrap: wrap; }
  .security-description { min-width: 220px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding: 23px 11px 14px; min-height: 490px; }
  .sidebar .brand { padding: 0 5px; }
  .sidebar .brand > span, .nav-label, .nav-item > span, .sidebar-profile > div, .profile-actions button > span { display: none; }
  .nav { margin-top: 35px; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-item .icon { width: 20px; height: 20px; }
  .sidebar-scene { background-size: auto 230px; opacity: .15; }
  .sidebar-bottom { padding-left: 0; padding-right: 0; }
  .sidebar-profile { justify-content: center; }
  .profile-actions { justify-content: center; gap: 8px; }
  .profile-actions button { padding: 5px; }
  .page-head { gap: 16px; }
  .page-head p { max-width: 370px; }
  .breadcrumbs { gap: 9px; }
  .applications-table { min-width: 690px; }
}
@media (max-width: 650px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; min-height: 0; padding: 12px 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 12px; overflow: visible; }
  .sidebar .brand { padding: 0; }
  .brand img { width: 34px; height: 34px; }
  .sidebar .brand > span { display: block; }
  .sidebar .brand strong { font-size: 13px; }
  .sidebar .brand small { font-size: 8px; }
  .nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 6px; margin: 0; padding-bottom: 10px; }
  .nav-item { min-height: 37px; gap: 7px; padding: 8px 10px; font-size: 10px; }
  .nav-item .icon { width: 15px; height: 15px; }
  .nav-item > span:not(.nav-count) { display: inline; }
  .sidebar-scene, .sidebar-profile, .sidebar .nav-count { display: none; }
  .sidebar-bottom { padding: 0; border: 0; grid-column: 2; grid-row: 1; align-self: center; }
  .profile-actions { margin: 0; gap: 10px; }
  .profile-actions button { min-height: 30px; }
  .topbar { height: 53px; padding: 0 18px; }
  .breadcrumbs { font-size: 9px; gap: 7px; }
  .breadcrumbs > span:first-child { display: none; }
  .breadcrumbs > .icon:first-of-type { display: none; }
  .content { padding: 23px 16px 32px; }
  h1 { font-size: 23px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 22px; }
  .page-head p { font-size: 11px; margin-top: 7px; }
  .page-heading { gap: 12px; }
  .page-heading > .app-icon, .avatar.large { width: 44px; height: 44px; border-radius: 10px; }
  .avatar.large { border-radius: 50%; font-size: 14px; }
  .title-line { gap: 9px; }
  .title-count { min-width: 24px; height: 23px; font-size: 10px; }
  .summary-line { gap: 8px 15px; font-size: 10px; margin-bottom: 17px; }
  .summary-line > span + span { padding-left: 0; border: 0; }
  .toolbar { padding: 14px; flex-wrap: wrap; gap: 9px; }
  .toolbar .search-field { flex-basis: 100%; max-width: none; }
  .toolbar > select { max-width: none; flex: 1; }
  .toolbar-hint { display: none; }
  table { min-width: 600px; }
  .applications-table { min-width: 680px; }
  .tabs { gap: 22px; overflow-x: auto; margin-bottom: 21px; }
  .tab { font-size: 10px; padding-bottom: 13px; }
  .tab span { font-size: 9px; }
  .section-heading { align-items: flex-start; padding: 19px; flex-direction: column; gap: 16px; }
  .section-heading h2 { font-size: 14px; }
  .section-body { padding: 0 19px 22px; }
  .security-row { padding: 22px 19px; gap: 12px; }
  .security-description { min-width: 0; flex-basis: calc(100% - 60px); }
  .security-row > button { margin-left: 52px; }
  .panel-footer { padding: 13px 15px; }
  .back-link { margin-bottom: 16px; }
  dialog { max-height: calc(100dvh - 28px); }
  .modal-head, .modal-body { padding: 21px; }
  .modal-head h2 { font-size: 17px; }
  .access-choice { grid-template-columns: minmax(0, 1fr) 128px; gap: 6px; }
  .login-card { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Hub alignment 11.11.2026 (Mapping Hub / Interior Hub, Anastasia's brand layer) */
.topbar { height: 72px; box-shadow: 0 8px 28px rgba(57,57,57,.06); border-bottom: 0; position: sticky; top: 0; z-index: 3; }
.topbar-title { display: grid; gap: 4px; min-width: 0; }
.topbar-title strong { font-size: 15px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyebrow { color: #686868; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
a.eyebrow:hover { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions .button { min-height: 36px; font-size: 12px; }
thead { background: #f2f6ed; }
th { color: #5f6a55; font-weight: 600; font-size: 11px; }
.person strong { color: var(--accent); }
.person:hover strong { color: #2f5a18; }
.page-head.wide p { max-width: 720px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card { min-height: 112px; padding: 18px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-value { display: block; margin-top: 14px; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.metric-detail { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.metric-indicator { width: 9px; height: 9px; border-radius: 50%; background: var(--control); }
.metric-indicator.is-warn { background: #ffa22a; }
.ai-section { margin-bottom: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 20px 16px; }
.panel-head h2 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.02em; }
.panel-head p { margin: 6px 0 0; max-width: 640px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.panel-head button { flex-shrink: 0; }
.cell-title { display: block; font-weight: 600; }
.cell-sub { display: block; margin-top: 3px; color: #858e7a; font-size: 11px; }
.row-actions { width: 1%; white-space: nowrap; text-align: right; }
.row-actions button + button { margin-left: 6px; }
button.small, .button.small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
button.small .icon { width: 14px; height: 14px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge.danger { color: var(--danger); background: #fff0ee; }
.warning-note { margin-bottom: 16px; background: #fff5e7; color: #8a5600; }
.limit-list { display: grid; gap: 16px; }
.limit-head { display: flex; justify-content: space-between; font-size: 12px; }
.limit-bar { height: 8px; margin: 7px 0 5px; border-radius: 99px; background: #eef1ea; overflow: hidden; }
.limit-bar i { display: block; height: 100%; border-radius: 99px; background: var(--control); }
.limit-bar i.warn { background: #ffa22a; }
.limit-bar i.danger { background: var(--danger); }
.limit small { color: var(--muted); font-size: 11px; }
.device-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px dashed #c9d8bb; border-radius: 10px; background: #f6faf1; }
.device-code span { font-size: 26px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.steps { margin: 0; padding-left: 20px; color: #5d6458; line-height: 1.9; font-size: 12px; }
@media (max-width: 1100px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .metric-grid { grid-template-columns: 1fr; } .panel-head { flex-direction: column; } .topbar-actions .button span { display: none; } }
.button.primary { background: var(--control); border-color: var(--control); color: #24351a; }
.button.primary:hover { background: var(--control-hover); border-color: var(--control-hover); }
.subscription-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 18px; }
.subscription-card { display: flex; flex-direction: column; }
.subscription-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 4px; }
.subscription-head h2 { margin: 6px 0 0; font-size: 17px; letter-spacing: -.02em; word-break: break-all; }
.subscription-body { flex: 1; padding: 14px 20px 18px; }
.subscription-body .device-code { margin-bottom: 10px; }
.subscription-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.subscription-foot button + button { margin-left: 6px; }
.subscription-grid + .panel, .content > .panel + .ai-section, .content > .panel + .panel { margin-top: 18px; }
.subscription-foot > span { display: flex; gap: 6px; flex-shrink: 0; }
.subscription-foot button + button { margin-left: 0; }
.start-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(circle at 15% 10%, #eef6e4 0, transparent 45%), var(--bg); }
.start-card { width: min(680px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(57,57,57,.08); display: grid; gap: 14px; }
.start-card h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.start-card .brand { margin-bottom: 10px; }
.start-prompt { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed #c9d8bb; border-radius: 12px; background: #f6faf1; }
.start-prompt code { flex: 1; padding: 0; background: none; color: var(--text); font-size: 13px; line-height: 1.6; word-break: break-word; }
.start-steps { margin: 4px 0; padding-left: 20px; display: grid; gap: 8px; color: #5d6458; line-height: 1.6; }
.start-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .start-prompt { flex-direction: column; align-items: stretch; } .start-card { padding: 24px; } }
.start-aside { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.start-aside a { color: var(--accent); }

/* Мой LifeMebel: first-login steps, application tiles, attention strip */
.link-button { min-height: 0; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 500; }
.link-button:hover { background: none; text-decoration: underline; }
.login-card .note { margin-top: 12px; }
.welcome-card { max-width: 560px; }
.welcome-card h1 { margin-top: 0; }
.welcome-card .subscription-card { margin: 0 0 14px; }
.welcome-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -14px 0 22px; padding: 0; list-style: none; counter-reset: step; font-size: 12px; color: var(--muted); }
.welcome-steps li { counter-increment: step; display: flex; align-items: center; gap: 6px; }
.welcome-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; }
.welcome-steps li.current { color: var(--text); font-weight: 600; }
.welcome-steps li.current::before { background: var(--control); border-color: var(--control); color: #24351a; }
.welcome-steps li.done::before { content: "✓"; background: var(--soft); border-color: var(--soft); color: var(--accent); }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.app-tile { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.app-tile-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-tile-head strong { font-size: 15px; }
.app-tile .button { margin-top: auto; }
.welcome-card .app-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.home-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
textarea { resize: vertical; font-size: 12px; line-height: 1.6; }

/* Разработка: steps with their own actions, inline requests */
.develop-step { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.develop-step:last-child { border-bottom: 0; }
.develop-step-text { min-width: 0; flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.develop-step-text .badge { margin-top: 2px; }
.develop-step-text form { margin-top: 8px; }
.develop-step-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.request-form { padding: 18px; margin-bottom: 18px; }
.request-form h3 { margin: 0; }
#agent-phrase { display: block; white-space: pre-wrap; word-break: break-word; }
.security-row > .row-actions { width: auto; flex-shrink: 0; display: flex; gap: 6px; }
.security-row > .row-actions button + button { margin-left: 0; }
/* Phone: the section menu scrolls within its own strip instead of widening the page. */
@media (max-width: 650px) {
  .sidebar { grid-template-columns: minmax(0, 1fr) auto; }
  .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: none; white-space: nowrap; }
}
