:root {
  color-scheme: dark;
  --ink: #eef3ff;
  --muted: #9ba8c1;
  --accent: #75a0ff;
  --cyan: #75e3ee;
  --paper: #0b101c;
  --panel: #121a2b;
  --line: #253047;
  --radius: 18px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
a[aria-disabled="true"] { cursor: default; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(30px, 3vw, 43px); line-height: 1.2; letter-spacing: -1.7px; font-weight: 650; margin-bottom: 10px; overflow-wrap: anywhere; }
h2 { font-weight: 600; line-height: 1.3; letter-spacing: -.7px; }
h3 { font-size: 23px; letter-spacing: -.6px; line-height: 1.3; }
.icon { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.muted, .lead { color: var(--muted); }
.lead { font-size: 15px; margin-bottom: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 2px; font-weight: 650; color: var(--accent); margin-bottom: 17px; }
.eyebrow-line { display: inline-block; width: 23px; height: 2px; background: var(--accent); }
.portal-layout { display: flex; min-height: 100vh; }
.sidebar { width: 246px; flex-shrink: 0; padding: 34px 22px 28px; background: #0d1320; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 650; letter-spacing: -1px; line-height: 1.2; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 46px; flex-shrink: 0; background: #244dba; border: 1px solid #5f87e4; color: #f4f8ff; border-radius: 13px; font-size: 31px; font-weight: 700; letter-spacing: -2px; padding-bottom: 5px; box-shadow: 0 0 28px #3668f222; }
.brand-domain { font-weight: 400; color: #8393b0; }
.brand small { display: block; margin-top: 7px; color: #8393b0; font-size: 8px; letter-spacing: 2.6px; font-weight: 500; }
.nav-label { font-size: 9px; letter-spacing: 1.7px; color: #8492ab; font-weight: 600; margin: 57px 12px 16px; }
.navigation { display: flex; flex-direction: column; gap: 9px; }
.navigation a { position: relative; padding: 13px 12px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; color: #a0adc4; display: flex; align-items: center; gap: 12px; transition: background .18s, color .18s, border-color .18s; }
.navigation a:hover { background: #151e31; color: var(--ink); }
.navigation a[aria-current="page"] { background: #1b2b4a; border-color: #294675; color: #bcd0ff; }
.navigation a[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #83aeff; margin-left: auto; box-shadow: 0 0 10px #80acff70; }
.navigation .icon { width: 18px; height: 18px; }
.sidebar-note { margin-top: auto; padding: 38px 12px 3px; font-size: 11px; }
.sidebar-note-icon { display: block; color: var(--accent); font-size: 27px; margin-bottom: 15px; }
.sidebar-note strong { font-size: 12px; font-weight: 550; color: #d1dbee; }
.sidebar-note p { color: #8a99b3; line-height: 1.8; margin: 7px 0 20px; }
.sidebar-note-label { font-size: 7px; letter-spacing: 1.4px; color: #8a99b3; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--cyan); }
.workspace { flex: 1; min-width: 0; background: radial-gradient(ellipse at 100% 0, #14203c50, transparent 48%), var(--paper); }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 44px; border-bottom: 1px solid #202a3e; background: #0e1522b3; }
.breadcrumb { font-size: 11px; color: #a2aec5; letter-spacing: .25px; }
.breadcrumb::before { content: "/"; color: #5d8de7; margin-right: 12px; }
.account { display: flex; align-items: center; gap: 11px; font-size: 12px; min-width: 0; }
.account-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; background: #1d2b43; border: 1px solid #354a70; border-radius: 10px; font-weight: 600; color: #a3c2ff; font-size: 20px; padding-bottom: 3px; }
.text-button { border: 1px solid #2b3851; background: #131d2e; color: #b7c4dc; font-size: 11px; margin-left: 10px; padding: 7px 13px; border-radius: 7px; min-height: 34px; }
.text-button:hover { color: #fff; background: #1c2940; }
.main { max-width: 1250px; margin: auto; padding: 40px 44px 30px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.page-heading h1 span { color: #f4f6ff; }
.private-badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #9ed9e4; background: #122735; border: 1px solid #264655; padding: 7px 11px; border-radius: 7px; font-size: 10px; }
.private-badge .icon { width: 14px; height: 14px; }
.welcome-panel { min-height: 304px; background: radial-gradient(ellipse at 80% 50%, #1c3a6f66, transparent 57%), #111c32; border: 1px solid #2b4165; border-radius: var(--radius); padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 14px; overflow: hidden; position: relative; }
.welcome-panel::before { content: ""; position: absolute; left: 36px; right: 36px; top: 0; height: 1px; background: linear-gradient(90deg, #75a5ff00, #79a4ff70, #75a5ff00); }
.welcome-copy { position: relative; z-index: 1; }
.welcome-panel .eyebrow { font-size: 8px; letter-spacing: 1.7px; color: #95b7ff; margin-bottom: 17px; }
.welcome-panel h2 { font-size: clamp(28px, 2.8vw, 39px); line-height: 1.2; letter-spacing: -1.2px; margin-bottom: 17px; }
.welcome-panel h2 span { color: #91b6ff; }
.welcome-panel p:not(.eyebrow) { font-size: 12px; line-height: 1.9; color: #a5b5cf; margin-bottom: 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid #658feb; background: #436ed5; color: #fff; padding: 11px 19px; border-radius: 8px; font-size: 12px; font-weight: 600; min-height: 44px; transition: background .18s, border-color .18s; }
.button:hover { background: #527fe7; border-color: #9ab9ff; }
.welcome-action { min-height: 39px; padding: 9px 14px; font-size: 11px; }
.welcome-action span { font-size: 17px; line-height: 1; }
.orbit-art { position: relative; width: 310px; height: 250px; flex-shrink: 0; }
.orbit-grid { position: absolute; inset: -40px; opacity: .45; background-image: linear-gradient(#6f9bea12 1px, transparent 1px), linear-gradient(90deg, #6f9bea12 1px, transparent 1px); background-size: 25px 25px; mask-image: radial-gradient(ellipse, #000 25%, transparent 70%); }
.orbit { position: absolute; width: 212px; height: 212px; top: 13px; left: 48px; border: 1px solid #41649c80; border-radius: 50%; }
.orbit-two { width: 265px; height: 160px; left: 22px; top: 40px; transform: rotate(-29deg); border-color: #527dc280; }
.orbit-three { width: 265px; height: 160px; left: 22px; top: 40px; transform: rotate(34deg); border-style: dashed; border-color: #5b86c34d; }
.orbit-center { position: absolute; left: 116px; top: 81px; display: flex; justify-content: center; align-items: center; width: 77px; height: 77px; border-radius: 23px; background: linear-gradient(135deg, #527fdc, #254a9f); border: 1px solid #83b0ff; color: #fff; font-size: 53px; font-weight: 600; letter-spacing: -5px; padding-bottom: 10px; box-shadow: 0 0 0 10px #689aff08, 0 0 55px #336df64a; transform: rotate(-7deg); }
.orbit-node { position: absolute; width: 55px; height: 55px; background: #182c48; border: 1px solid #416388; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #90d8f4; box-shadow: 0 8px 24px #050b2050; }
.orbit-node small { position: absolute; bottom: -23px; color: #9cafd0; font-size: 7px; letter-spacing: 1.8px; font-weight: 500; }
.node-photo { left: 23px; top: 39px; transform: rotate(-7deg); }
.node-trip { right: 13px; bottom: 48px; background: #20294d; border-color: #53588d; color: #c0b0ff; transform: rotate(7deg); }
.orbit-point { position: absolute; width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px #75e3ee88; }
.point-one { top: 20px; left: 193px; }
.point-two { bottom: 37px; left: 92px; background: #719aff; }
.orbit-caption { position: absolute; bottom: 1px; width: 100%; text-align: center; color: #91a5c5; font-size: 7px; letter-spacing: 2.1px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 31px 0 18px; }
.section-index { display: block; font-size: 8px; letter-spacing: 1.8px; color: #91a0ba; margin-bottom: 6px; font-family: Consolas, "SFMono-Regular", monospace; }
.section-heading h2 { font-size: 20px; margin: 0; }
.section-hint { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #9caac3; padding-bottom: 2px; }
.section-hint .status-dot { background: #7598df; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 21px; }
.app-card { background: #121a29; border: 1px solid #29344b; border-radius: 15px; overflow: hidden; transition: border-color .2s; }
.app-card:hover { border-color: #51658d; }
.app-art { height: 168px; position: relative; overflow: hidden; border-bottom: 1px solid #29344b; }
.art-label, .art-coordinate { position: absolute; z-index: 2; left: 20px; font-size: 7px; letter-spacing: 1.7px; font-family: Consolas, "SFMono-Regular", monospace; }
.art-label { top: 17px; color: #a4c5e4; }
.art-coordinate { bottom: 14px; color: #9fb5d0; font-size: 6px; }
.photo-art { background: radial-gradient(ellipse at 55% 80%, #25497866, transparent 65%), #13263d; display: flex; align-items: center; justify-content: center; }
.photo-art::before, .travel-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#93b8f035 1px, transparent 1px); background-size: 18px 18px; opacity: .5; }
.photo-frame { position: absolute; width: 145px; height: 95px; border: 1px solid #81b6ec; border-top: 10px solid #416386; border-radius: 6px; overflow: hidden; background: #1d4262; box-shadow: 0 8px 25px #020b2460; }
.back-photo { transform: translate(-29px, -5px) rotate(-11deg); border-color: #5378a4; background: #1e3659; opacity: .8; }
.front-photo { transform: translate(27px, 5px) rotate(8deg); }
.sun { position: absolute; right: 24px; top: 13px; width: 16px; height: 16px; background: #9adeee; box-shadow: 0 0 17px #75e3ee40; border-radius: 50%; }
.mountain { position: absolute; width: 98px; height: 98px; bottom: -65px; transform: rotate(45deg); border: 1px solid #84b9db; border-radius: 4px; background: #346787; }
.mountain-one { left: -12px; }
.mountain-two { right: -8px; background: #2d8091; bottom: -56px; border-color: #76ccd5; }
.frame-cross { position: absolute; font-family: monospace; font-size: 9px; color: #90c7e8; }
.cross-one { left: 6px; top: 0; }
.cross-two { right: 6px; bottom: 0; }
.travel-art { background: radial-gradient(ellipse at 55% 50%, #3b396444, transparent 65%), #1b203a; }
.travel-art .art-label { color: #b6b3e2; }
.travel-art .art-coordinate { color: #a9a5cc; }
.travel-globe { position: absolute; left: calc(50% - 150px); top: -6px; width: 300px; height: 180px; fill: none; stroke: #666ba4; stroke-width: .7; }
.travel-globe .globe-route { stroke: #bbb4fa; stroke-width: 1.5; stroke-dasharray: 4 4; }
.travel-globe .globe-dot { fill: #a3a8e6; stroke: #d4d6ff; }
.travel-globe .destination-dot { fill: #bdadfa; stroke: #e0d7ff; }
.travel-plane { position: absolute; left: calc(50% + 39px); top: 21px; color: #d1c4ff; font-size: 37px; line-height: 1; }
.app-body { padding: 23px 25px 22px; }
.app-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-title-row h3 { margin: 0; font-size: 21px; }
.app-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #315671; color: #94d8ed; background: #192e42; }
.app-icon .icon { width: 19px; height: 19px; }
.trip-icon { color: #c7b7fa; border-color: #494069; background: #29243d; }
.app-body p { color: #a4b0c7; font-size: 12px; line-height: 1.9; margin-bottom: 24px; }
.app-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #273145; padding-top: 16px; flex-wrap: wrap; }
.coming-soon { display: inline-flex; gap: 7px; align-items: center; color: #acb8d2; border: 1px solid #344059; border-radius: 5px; font-size: 9px; padding: 4px 7px; }
.coming-soon .status-dot { background: #8395b7; width: 4px; height: 4px; }
.app-category { color: #94a3bf; font-size: 7px; letter-spacing: 1.1px; }
.quiet-note { display: flex; align-items: center; gap: 16px; margin-top: 23px; padding: 18px 21px; border: 1px dashed #35445e; border-radius: 12px; color: #b6c4de; }
.note-symbol { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; background: #172339; border: 1px solid #304363; border-radius: 10px; color: #a0b9ec; font-size: 24px; font-weight: 300; }
.quiet-note strong { font-size: 11px; font-weight: 550; }
.quiet-note p { color: #97a5be; font-size: 10px; margin: 3px 0 0; }
.note-end { margin-left: auto; color: #7f98c1; font-size: 23px; }
.footer { padding: 0 44px 25px; max-width: 1250px; margin: auto; font-size: 9px; color: #8c9bb5; display: flex; justify-content: space-between; gap: 15px; }
.footer > span:last-child { font-size: 7px; letter-spacing: 1.5px; }
.footer-divider { margin: 0 8px; color: #486591; }
.form-panel { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 28px; }
.form-panel h2 { font-size: 21px; margin-bottom: 8px; }
.form-panel p { color: var(--muted); font-size: 13px; }
.narrow { max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; }
.field label { font-size: 12px; font-weight: 550; color: #d0daef; }
.field input { width: 100%; background: #0d1525; border: 1px solid #34425d; border-radius: 8px; padding: 12px 14px; color: var(--ink); min-height: 47px; }
.field input:focus { border-color: #81a9fb; }
.field .password-toggle { align-self: flex-end; margin: 0; }
.field input:disabled { color: #94a3bf; opacity: .8; cursor: not-allowed; }
.button:disabled { background: #2e426c; border-color: #465d89; color: #c2cee6; cursor: not-allowed; }
.inline-fields { display: flex; align-items: flex-end; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.inline-fields .field { flex: 1; min-width: 170px; margin: 0; }
.message { color: #f0d1a1; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message:not(:empty) { margin: 18px 0; padding: 14px; border-radius: 9px; background: #34271c; border: 1px solid #78603e; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; margin-top: 20px; }
th { text-align: left; font-weight: 600; color: #a6b4cc; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
th, td { padding: 16px 10px; border-bottom: 1px solid var(--line); }
td small { display: block; color: var(--muted); margin-top: 3px; }
.table-status { font-size: 11px; white-space: nowrap; }
.small-button { border: 1px solid #425778; background: #1b2b44; border-radius: 6px; font-size: 10px; color: #c4d7ff; padding: 8px 10px; margin: 3px; min-height: 34px; }
.small-button:hover { background: #2a3d5b; }
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-story { position: relative; overflow: hidden; background: radial-gradient(ellipse at 75% 75%, #20417d55, transparent 60%), #101c32; border-right: 1px solid #2b3b58; padding: 43px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 45px; }
.login-story::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#759bda0b 1px, transparent 1px), linear-gradient(90deg, #759bda0b 1px, transparent 1px); background-size: 45px 45px; pointer-events: none; }
.login-story > * { position: relative; }
.login-story-copy { padding-top: 20px; }
.login-story h1 { font-size: clamp(35px, 4vw, 59px); line-height: 1.17; letter-spacing: -2.3px; margin-bottom: 24px; }
.login-story h1 span { color: #95b9ff; }
.login-story-copy > p:not(.eyebrow) { color: #a1b3d2; font-size: 14px; line-height: 1.9; }
.login-orbits { position: relative; width: 260px; height: 155px; margin-top: 28px; margin-left: 18px; }
.login-orbits > span { position: absolute; inset: 18px 18px; border: 1px solid #5176b268; border-radius: 50%; transform: rotate(-24deg); }
.login-orbits > span:nth-child(2) { transform: rotate(29deg); }
.login-orbits > span:nth-child(3) { inset: 0 53px; transform: rotate(-15deg); border-style: dashed; }
.login-orbits b { position: absolute; left: 106px; top: 53px; color: #bad4ff; font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -3px; }
.login-orbit-dot { position: absolute; top: 17px; left: 183px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px #75e3ee77; }
.login-footnote { color: #91a6c7; font-size: 8px; letter-spacing: 2px; }
.login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 55px 40px; background: #0c1321; }
.login-card { width: 100%; max-width: 370px; }
.login-step { color: #90a2bf; font-family: Consolas, "SFMono-Regular", monospace; font-size: 8px; letter-spacing: 1.7px; margin: 36px 0 12px; }
.login-card h2 { font-size: 38px; letter-spacing: -1.5px; margin: 0 0 10px; }
.login-card .lead { margin-bottom: 34px; font-size: 14px; }
.login-card .help-text { font-size: 11px; color: #9aaac6; line-height: 1.9; margin-top: 24px; }
.login-submit { width: 100%; margin-top: 4px; min-height: 47px; }
.error-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.error-body .brand-mark { margin-bottom: 30px; }
.error-body h1 { font-size: 30px; }
.skip-link { position: absolute; left: 10px; top: -100px; background: #1c2f52; z-index: 10; padding: 10px; }
.skip-link:focus { top: 10px; }
.preview-notice { display: block; color: #a3b6d7; font-size: 11px; border-top: 1px solid #2b3952; padding-top: 18px; margin-top: 25px; }
.preview-notice a { text-decoration: underline; color: #aac8ff; }

@media (min-width: 1500px) {
  .main { padding-top: 52px; }
  .welcome-panel { min-height: 325px; }
  .app-art { height: 185px; }
}

@media (max-width: 1150px) {
  .sidebar { width: 218px; padding: 30px 17px 25px; }
  .brand { font-size: 23px; gap: 9px; }
  .topbar { padding: 0 30px; }
  .main { padding: 32px 30px 28px; }
  .footer { padding-left: 30px; padding-right: 30px; }
  .welcome-panel { padding: 29px; }
  .orbit-art { width: 255px; transform: scale(.88); transform-origin: center; margin-right: -14px; }
  .orbit { left: 21px; }
  .orbit-two, .orbit-three { left: -5px; }
  .orbit-center { left: 89px; }
  .node-photo { left: -4px; }
  .point-one { left: 166px; }
  .point-two { left: 65px; }
  .app-body { padding: 22px; }
  .app-category { display: none; }
  .login-story { padding: 38px; }
}

@media (max-width: 850px) {
  .portal-layout { display: block; }
  .sidebar { width: 100%; padding: 20px 25px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { font-size: 23px; }
  .brand-mark { width: 38px; height: 40px; font-size: 28px; }
  .brand small { margin-top: 5px; font-size: 7px; }
  .nav-label, .sidebar-note { display: none; }
  .navigation { flex-direction: row; flex-wrap: wrap; margin-top: 20px; gap: 7px; }
  .navigation a { padding: 9px 12px; font-size: 11px; gap: 8px; }
  .navigation a[aria-current="page"]::after { display: none; }
  .navigation .icon { width: 16px; height: 16px; }
  .topbar { height: 64px; padding: 0 25px; }
  .main { padding: 30px 25px; }
  .footer { padding: 0 25px 23px; }
  .welcome-panel h2 { font-size: 34px; }
  .app-grid { gap: 17px; }
  .login-layout { grid-template-columns: 1fr 1fr; }
  .login-story { padding: 30px; }
  .login-story h1 { font-size: 35px; }
  .login-main { padding: 40px 28px; }
  .login-orbits { transform: scale(.85); transform-origin: left center; margin-left: 0; }
}

@media (max-width: 640px) {
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 25px; }
  h1 { font-size: 33px; }
  .page-heading .lead { font-size: 13px; }
  .welcome-panel { padding: 26px; min-height: 285px; }
  .welcome-panel h2 { font-size: 31px; }
  .orbit-art { width: 110px; transform: scale(.7); transform-origin: left center; margin-right: -15px; opacity: .6; }
  .orbit-center { left: 60px; }
  .orbit-caption, .orbit-node small { display: none; }
  .node-photo { left: 0; }
  .node-trip { right: -100px; }
  .section-heading h2 { font-size: 18px; }
  .section-hint { display: none; }
  .app-grid { grid-template-columns: 1fr; }
  .app-art { height: 175px; }
  .app-body { padding: 23px; }
  .app-category { display: inline; }
  .quiet-note { padding: 17px; }
  .quiet-note p { font-size: 11px; }
  .footer { flex-direction: column; gap: 5px; }
  .form-panel { padding: 22px; }
  .inline-fields { flex-direction: column; align-items: stretch; }
  .inline-fields .field { width: 100%; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { padding: 25px 28px 28px; gap: 30px; }
  .login-story-copy { padding-top: 0; }
  .login-story h1 { font-size: 35px; margin-bottom: 17px; }
  .login-orbits, .login-footnote { display: none; }
  .login-story-copy > p:not(.eyebrow) { margin-bottom: 0; font-size: 12px; }
  .login-main { padding: 38px 28px 45px; }
  .login-card { max-width: 450px; }
  .login-step { margin-top: 26px; }
  .login-card h2 { font-size: 33px; }
}

@media (max-width: 420px) {
  .sidebar { padding: 19px 18px 13px; }
  .navigation { gap: 2px; }
  .navigation a { font-size: 10px; padding: 10px 8px; gap: 6px; }
  .navigation .icon { width: 14px; height: 14px; }
  .topbar { padding: 0 19px; }
  .breadcrumb { display: none; }
  .topbar { justify-content: flex-end; }
  .main { padding: 26px 19px; }
  .welcome-panel { min-height: 280px; padding: 25px 22px; }
  .welcome-panel h2 { font-size: 30px; }
  .welcome-panel .eyebrow { font-size: 7px; letter-spacing: 1.3px; }
  .welcome-panel p:not(.eyebrow) { font-size: 11px; }
  .orbit-art { display: none; }
  .quiet-note { gap: 12px; }
  .note-end { display: none; }
  .footer { padding-left: 19px; padding-right: 19px; }
}

.media-breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 22px 0; overflow-wrap: anywhere; }
.media-breadcrumbs a:hover, .media-back:hover { color: var(--cyan); }
.media-toolbar { display: flex; align-items: flex-end; gap: 14px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.media-toolbar .field { flex: 1; margin-bottom: 0; min-width: 0; }
.media-toolbar .media-filter { flex: 0 0 160px; }
.field select { font: inherit; width: 100%; min-height: 47px; border-radius: 8px; background: #0d1525; color: var(--ink); border: 1px solid #34425d; padding: 10px 12px; }
.field select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.media-toolbar .button { min-height: 47px; }
.media-summary { display: flex; justify-content: space-between; gap: 15px; align-items: center; color: var(--muted); font-size: 11px; margin: 25px 0 15px; flex-wrap: wrap; }
.media-back { color: #bed2f5; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.media-tile { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.media-tile:hover { border-color: #6b8bbb; }
.media-tile-art { position: relative; height: 160px; display: flex; align-items: center; justify-content: center; background: #15243b; overflow: hidden; }
.media-folder-art { background: #202840; }
.media-placeholder { font-size: 50px; color: #8bafd7; }
.media-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-thumbnail[hidden] { display: none; }
.media-video-play { position: absolute; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #07101dcc; color: #fff; border: 1px solid #ffffff60; font-size: 20px; padding-left: 3px; pointer-events: none; }

#chess-app { min-width: 0; }
#chess-app [hidden] { display: none !important; }
.chess-library details { margin-top: 20px; }
.chess-quota { padding: 16px 20px; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.chess-quota strong { color: var(--cyan); font-size: 15px; }
.chess-quota p { color: var(--muted); font-size: 12px; margin: 9px 0; }
.chess-guide.form-panel { margin: 0 0 24px; background: linear-gradient(120deg, #162643, #101d32); border-color: #3e5c85; }
.chess-guide > p:first-child { font-size: 10px; letter-spacing: .18em; color: var(--cyan); }
.chess-guide h2 { font-size: 23px; }
.chess-guide-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 16px 0 22px; }
.chess-guide-steps li { min-width: 0; padding: 10px 12px; border: 1px solid #344763; border-radius: 8px; color: #9daec6; font-size: 12px; }
.chess-guide-steps .is-current { background: #274879; border-color: #8cb9ff; color: #fff; font-weight: 650; }
.chess-guide-steps .is-done { border-color: #39706f; color: #a3d9cc; }
.chess-guide .chess-guide-mode { border-left: 3px solid var(--cyan); padding-left: 12px; font-size: 12px; }
.chess-guide .trip-form-actions { flex-wrap: wrap; }
@media (max-width: 700px) { .chess-guide-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chess-library summary, #chess-editor summary { cursor: pointer; font-weight: 600; margin-bottom: 18px; }
.chess-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 32px 0 20px; }
.chess-heading h2 { overflow-wrap: anywhere; }
.chess-heading p { color: var(--muted); font-size: 13px; }
.chess-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.chess-layout > div { min-width: 0; }
.chess-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); position: relative; width: 100%; aspect-ratio: 1; border: 5px solid #29364e; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 40px #0004; }
.chess-square { display: grid; place-items: center; position: relative; border: 0; border-radius: 0; margin: 0; padding: 0; min-width: 0; min-height: 0; font-family: 'Arial Unicode MS', 'Segoe UI Symbol', serif; font-size: clamp(23px, 3.7vw, 54px); line-height: 1; cursor: pointer; }
.chess-light { background: #c6d5dd; }
.chess-dark { background: #58738a; }
.chess-white-piece { color: #fff; text-shadow: 0 1px 2px #000, 1px 0 #26364b, -1px 0 #26364b; }
.chess-black-piece { color: #101c2d; text-shadow: 0 1px 1px #e1e9ef80; }
.chess-square small { position: absolute; bottom: 3px; left: 3px; color: #16283b; font: 9px system-ui, sans-serif; text-shadow: none; }
.chess-dark small { color: #fff; }
.chess-square.chess-selected { box-shadow: inset 0 0 0 4px #f7cb63; }
.chess-square.chess-suggested { background: #91c495; }
.chess-square:focus-visible { outline: 4px solid #ffcc62; outline-offset: -4px; z-index: 2; }
.chess-arrow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chess-arrow path { fill: none; stroke: #d97c19d9; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.chess-analysis.form-panel { margin-top: 0; }
.chess-confirm { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; margin: 20px 0; }
.chess-confirm input { width: auto; margin-top: 5px; accent-color: var(--cyan); }
.chess-variation { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.chess-variation h3 { color: var(--cyan); }
.chess-history { max-height: 320px; overflow-y: auto; padding-left: 24px; color: var(--muted); line-height: 1.9; }
#chess-fen { width: 100%; box-sizing: border-box; resize: vertical; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
#chess-app button:disabled { opacity: .45; cursor: not-allowed; }
#chess-app .quiet-note { display: block; line-height: 1.7; }
.chess-photo-panel { margin-bottom: 28px; }
.chess-photo-panel summary { cursor: pointer; font-weight: 600; margin-bottom: 18px; }
.chess-photo-panel input[type="file"] { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.chess-photo-canvases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.chess-photo-canvases > div { min-width: 0; }
.chess-photo-canvases canvas { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
#chess-photo-original { cursor: crosshair; touch-action: manipulation; }
#chess-photo-preview .trip-form-actions { margin: 20px 0; }
.chess-square.chess-doubtful { outline: 3px dashed #eb9b2b; outline-offset: -5px; }
.chess-replay { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.chess-replay summary { cursor: pointer; font-weight: 650; }
.chess-replay-board { max-width: 560px; margin: 16px 0; }
.chess-replay-square { cursor: default; font-size: clamp(24px, 6vw, 48px); }
.chess-replay-highlight { box-shadow: inset 0 0 0 4px #77aaff; }
.chess-replay-board[data-candidate="true"] .chess-replay-highlight { box-shadow: inset 0 0 0 4px #ffcc62; }
.chess-replay-board .chess-arrow path { stroke: #498aebdc; }
.chess-replay-board[data-candidate="true"] .chess-arrow path { stroke: #d99622e8; }
.chess-replay-controls button:disabled { opacity: .45; cursor: default; }
.chess-replay-moves { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chess-replay-moves [aria-current="step"] { border-color: #ffcc62; background: #44371e; color: #fff1c9; }
@media (max-width: 700px) { .chess-photo-canvases { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .chess-layout { grid-template-columns: 1fr; } .chess-board { max-width: 600px; margin: 0 auto; } .chess-square { font-size: clamp(25px, 7vw, 54px); } }
@media (max-width: 480px) { .chess-heading { align-items: flex-start; flex-direction: column; } #chess-app .form-panel { padding: 16px; } .chess-layout { gap: 20px; } }
.media-kind { position: absolute; bottom: 10px; right: 10px; z-index: 1; border: 1px solid #425674; border-radius: 4px; background: #0b1425ed; color: #d4e2f8; font-size: 8px; letter-spacing: .6px; padding: 3px 6px; }
.media-thumbnail-tools { padding: 20px; margin: 20px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.media-thumbnail-tools h2 { font-size: 18px; }
.media-thumbnail-tools p { color: var(--muted); font-size: 13px; }
.media-thumbnail-tools button:disabled { opacity: .5; cursor: not-allowed; }
.media-thumbnail-tools .field { margin-top: 20px; }
.media-thumbnail-tools input[type="file"] { max-width: 100%; }
.media-cover-preview { display: block; max-width: min(100%, 320px); max-height: 180px; border-radius: 8px; }
.media-cover-preview[hidden], .media-thumbnail-tools [hidden] { display: none !important; }
.media-tile[data-kind="video"] .media-thumbnail { object-fit: contain; background: #07101d; }
.media-tile-caption { padding: 13px 15px; }
.media-tile-caption strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 550; }
.media-tile-caption span { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.media-empty { text-align: center; padding: 50px 25px; color: var(--muted); }
.media-empty h2 { color: var(--ink); font-size: 20px; }
.media-empty p, .media-footnote { font-size: 12px; color: var(--muted); }
.media-pagination { display: flex; gap: 15px; justify-content: center; align-items: center; margin: 25px 0; font-size: 11px; color: var(--muted); }
.media-view-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.media-file-title { font-size: clamp(22px, 2.5vw, 34px); overflow-wrap: anywhere; }
.media-viewer { margin-top: 28px; display: flex; align-items: center; justify-content: center; min-height: 250px; background: #050911; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.media-viewer img, .media-viewer video { display: block; max-width: 100%; max-height: 75vh; object-fit: contain; }
.media-viewer video { width: 100%; }
.media-viewer:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; margin: 0; }
.media-viewer:fullscreen img, .media-viewer:fullscreen video { max-height: 100vh; }
.media-view-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.media-view-actions > span { color: var(--muted); font-size: 11px; flex: 1; min-width: 200px; }
.media-view-actions button[hidden] { display: none; }
@media (min-width: 1450px) { .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .media-toolbar { flex-wrap: wrap; } .media-toolbar .field { flex-basis: 100%; } .media-toolbar .media-filter { flex: 1; } .media-tile-art { height: 135px; } }
@media (max-width: 380px) { .media-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.app-permission { padding: .75rem 0; }
.app-permission + .app-permission { border-top: 1px solid rgba(148, 163, 184, .2); }
.app-permission strong, .app-permission small { display: block; }

.trip-intro { display: flex; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(ellipse at top right, #1e3854, var(--panel) 70%); margin-bottom: 28px; }
.trip-intro h2 { margin: 0 0 8px; font-size: clamp(20px, 2.5vw, 28px); }
.trip-intro p { margin: 0; color: var(--muted); line-height: 1.7; }
.trip-intro-symbol { display: grid; place-items: center; width: 72px; height: 72px; flex-shrink: 0; border: 1px solid #75e3ee40; border-radius: 20px; color: var(--cyan); background: #75e3ee0b; font-size: 48px; }
.trip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.trip-card { display: block; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #16263a, var(--panel) 70%); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; overflow-wrap: anywhere; }
.trip-card:hover, .trip-card:focus-visible { border-color: var(--cyan); transform: translateY(-2px); }
.trip-card-heading, .trip-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.trip-card-heading { margin-bottom: 24px; }
.trip-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #75e3ee12; color: var(--cyan); font-size: 28px; }
.trip-card .eyebrow { margin-bottom: 10px; color: var(--cyan); }
.trip-card h2 { margin: 0 0 14px; font-size: 23px; color: var(--ink); }
.trip-dates { font-size: 14px; color: var(--muted); }
.trip-card-footer { padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.trip-card > small { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }
.trip-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.trip-facts .form-panel { margin-top: 0; }
.trip-facts h2 { margin: 12px 0; }
.trip-people { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.trip-people li { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 12px; }
.trip-person-icon { color: var(--cyan); }
.trip-notes { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); line-height: 1.8; }
.trip-form { max-width: 850px; }
.trip-form textarea { width: 100%; resize: vertical; min-height: 120px; padding: 12px 14px; font: inherit; color: var(--ink); background: #0b1220; border: 1px solid var(--line); border-radius: 10px; }
.trip-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.trip-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.trip-participant-fieldset { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.trip-participant-fieldset legend { padding: 0 8px; font-weight: 600; }
.trip-participant-fieldset p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.trip-participant-options { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.trip-participant-options li { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.trip-participant-options input[type="checkbox"] { width: auto; flex-shrink: 0; accent-color: var(--cyan); }
.trip-participant-options label { overflow-wrap: anywhere; cursor: pointer; }
.trip-form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 700px) { .trip-grid, .trip-facts, .trip-date-fields, .trip-participant-options { grid-template-columns: 1fr; } .trip-intro { padding: 20px; gap: 15px; } .trip-intro-symbol { width: 50px; height: 50px; font-size: 34px; } .trip-card { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .trip-card:hover, .trip-card:focus-visible { transform: none; } }

.traveler-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.traveler-card { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.traveler-card h2 { font-size: 20px; }
.traveler-card p, .traveler-card small { color: var(--muted); }
.traveler-upload-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.traveler-upload-options input[type="file"] { width: 100%; min-width: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); background: #0b1220; }
.traveler-documents { display: grid; gap: 18px; }
.traveler-document { display: flex; gap: 22px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.traveler-document > img { width: 140px; max-height: 180px; object-fit: contain; background: #080e19; border-radius: 10px; flex-shrink: 0; }
.traveler-document > div { min-width: 0; overflow-wrap: anywhere; }
.traveler-document h3 { margin: 12px 0; }
.traveler-document p { color: var(--muted); font-size: 12px; }
@media (max-width: 1050px) { .traveler-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .traveler-grid, .traveler-upload-options { grid-template-columns: 1fr; } .traveler-document { flex-direction: column; } .traveler-document > img { width: 100%; max-height: 240px; } }

.booking-sharing { margin: 22px 0; padding: 18px; background: #75a0ff0b; border: 1px solid var(--line); border-radius: 12px; }
.booking-sharing > span { display: flex; align-items: baseline; gap: 10px; }
.booking-sharing input[type="checkbox"] { width: auto; flex-shrink: 0; accent-color: var(--cyan); }
.booking-sharing label { cursor: pointer; font-weight: 600; }
.booking-sharing p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.booking-details { display: grid; grid-template-columns: minmax(90px, 130px) minmax(0, 1fr); gap: 14px 20px; margin: 24px 0; }
.booking-details dt { color: var(--muted); }
.booking-details > div { display: contents; }
.booking-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .booking-details { grid-template-columns: 1fr; gap: 8px; } .booking-details dd { margin-bottom: 12px; } }

.agenda-day { margin: 32px 0; }
.expense-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.expense-stats h2 { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.expense-breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.expense-totals { list-style: none; padding: 0; margin: 24px 0 0; }
.expense-totals li { padding: 14px 0; border-top: 1px solid var(--line); }
.expense-totals li > div { display: flex; justify-content: space-between; gap: 16px; overflow-wrap: anywhere; }
.expense-totals strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.expense-totals small, .expense-days small { color: var(--muted); }
.expense-totals meter { display: block; width: 100%; height: 12px; margin: 10px 0 6px; accent-color: var(--cyan); }
.expense-totals meter::-webkit-meter-bar { background: var(--line); border: 0; border-radius: 8px; }
.expense-totals meter::-webkit-meter-optimum-value { background: var(--cyan); border-radius: 8px; }
.expense-totals meter::-moz-meter-bar { background: var(--cyan); border-radius: 8px; }
.expense-days { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.expense-days > div { display: grid; gap: 8px; min-width: 150px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.expense-table-scroll { overflow-x: auto; }
.expense-table { width: 100%; border-collapse: collapse; text-align: left; }
.expense-table th, .expense-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); }
.expense-table th { color: var(--muted); font-size: 12px; }
.expense-table td { overflow-wrap: anywhere; min-width: 110px; }
.expense-table td:nth-child(2) { min-width: 180px; }
.expense-table small { display: block; color: var(--muted); margin-top: 6px; }
.expense-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .expense-stats, .expense-breakdowns { grid-template-columns: 1fr; gap: 0; } }
.agenda-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.agenda-day-heading h2 { margin: 0; text-transform: capitalize; }
.agenda-day .trip-card h3 { font-size: 22px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .agenda-day-heading { align-items: flex-start; flex-direction: column; } }
