:root {
  color-scheme: light;
  --ink: #123247;
  --muted: #627986;
  --navy: #054884;
  --navy-2: #0876a3;
  --gold: #08a6a3;
  --gold-soft: #e8fbfa;
  --surface: #ffffff;
  --canvas: #f3fafb;
  --border: #d6e8ec;
  --success: #19734b;
  --success-soft: #e9f7ef;
  --warning: #9a6100;
  --warning-soft: #fff5d8;
  --danger: #a72d35;
  --danger-soft: #fdecef;
  --info: #075a91;
  --info-soft: #eaf5fb;
  --shadow: 0 20px 55px rgba(3, 72, 132, .13);
  --radius: 16px;
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); line-height: 1.6; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
code { direction: ltr; unicode-bidi: embed; }

.guest-body {
  background:
    radial-gradient(circle at 12% 10%, rgba(8,166,163,.14), transparent 32%),
    radial-gradient(circle at 92% 72%, rgba(5,72,132,.12), transparent 36%),
    var(--canvas);
}
.guest-header, .topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 76px; padding: 14px clamp(18px, 4vw, 56px); background: var(--surface);
  border-bottom: 1px solid var(--border); position: relative; z-index: 30;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); }
.brand-compact img { width: 40px; height: 40px; }
.language-nav, .topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.language-nav a { padding: 7px 11px; border-radius: 999px; }
.language-nav a.active { background: var(--navy); color: white; }

.guest-main { width: min(1180px, calc(100% - 32px)); margin: 54px auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 38px; align-items: center; }
.guest-intro h1 { font-size: clamp(2.1rem, 5vw, 4.4rem); margin: 8px 0 12px; line-height: 1.12; color: var(--navy); }
.guest-intro > p { font-size: 1.18rem; color: var(--muted); max-width: 650px; }
.eyebrow { display: inline-flex; padding: 6px 11px; background: var(--gold-soft); color: #825318; border-radius: 999px; font-weight: 700; font-size: .86rem; }
.intro-panel { margin-top: 28px; max-width: 650px; padding: 18px 20px; background: rgba(255,255,255,.72); border: 1px solid var(--border); border-inline-start: 5px solid var(--gold); border-radius: 12px; display: grid; gap: 4px; }
.intro-panel span { color: var(--muted); }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 5px; color: var(--navy); }
.auth-links { display: grid; gap: 9px; margin-top: 20px; font-size: .94rem; }

.form-stack, .filter-bar, .reason-form, .inline-form { display: grid; gap: 16px; }
.form-stack label, .filter-bar label { display: grid; gap: 7px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cbd6de; border-radius: 10px; padding: 10px 12px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(36,75,109,.12); }
.password-field { display: flex; align-items: stretch; }
.password-field input { border-start-end-radius: 0; border-end-end-radius: 0; }
[dir="ltr"] .password-field input { border-start-start-radius: 10px; border-end-start-radius: 10px; border-start-end-radius: 0; border-end-end-radius: 0; }
.password-field button { min-width: 46px; border: 1px solid #cbd6de; border-inline-start: 0; background: #f7f9fb; border-start-end-radius: 10px; border-end-end-radius: 10px; }
.check-row { grid-template-columns: auto 1fr !important; align-items: center; font-weight: 400 !important; }
.check-row input { width: 18px; height: 18px; }
.muted, small, .block { color: var(--muted); }
.block { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 15px; font-weight: 700; text-decoration: none; transition: .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: white; }
.btn-secondary { background: var(--navy-2); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-ghost { background: white; border-color: var(--border); color: var(--ink); }
.btn-small { padding: 6px 9px; border-radius: 8px; font-size: .84rem; }
.btn-block { width: 100%; }
.link-button { border: 0; background: transparent; color: var(--navy-2); padding: 0; }
.text-link { white-space: nowrap; }
.user-chip { padding: 6px 11px; background: var(--canvas); border-radius: 999px; font-size: .88rem; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.app-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 260px minmax(0,1fr); }
.sidebar { background: var(--navy); color: white; padding: 24px 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100vh - 76px); }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { color: rgba(255,255,255,.82); padding: 10px 12px; border-radius: 9px; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,.12); color: white; text-decoration: none; }
.nav-section { margin: 18px 12px 6px; color: rgba(255,255,255,.55); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.sidebar-meta { display: grid; gap: 9px; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.13); }
.sidebar-meta small { overflow-wrap: anywhere; color: rgba(255,255,255,.65); }
.content { min-width: 0; padding: clamp(22px, 4vw, 46px); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 4px 0 3px; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.page-heading p { margin: 0; color: var(--muted); }
.panel { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 20px rgba(23,50,77,.05); margin-bottom: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; color: var(--navy); }
.metrics-grid, .module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card, .module-grid article { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.metric-card { display: grid; gap: 5px; }
.metric-card > span { color: var(--muted); }
.metric-card strong { font-size: 1.65rem; color: var(--navy); }
.module-grid { grid-template-columns: repeat(5, minmax(0,1fr)); margin-bottom: 0; }
.module-grid article { display: grid; gap: 10px; }
.module-grid h3 { margin: 0; font-size: 1rem; }
.module-icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold-soft); color: #7a4a10; border-radius: 10px; font-weight: 800; }

.badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: #edf1f4; color: #5d6b76; }
.tiny-ok, .tiny-warn { font-size: .75rem; display: inline-block; margin-top: 5px; }
.tiny-ok { color: var(--success); }
.tiny-warn { color: var(--warning); }
.alert { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 10px; margin-bottom: 16px; border: 1px solid transparent; }
.alert button { border: 0; background: transparent; font-size: 1.2rem; line-height: 1; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #c9ead7; }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: #f0dda0; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f3c8ce; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: #c9dff1; }

.filter-bar { grid-template-columns: minmax(220px,1fr) minmax(160px,.35fr) auto auto; align-items: end; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 13px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: #f7f9fb; color: var(--navy); font-size: .85rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.action-stack { display: grid; gap: 7px; min-width: 230px; }
.reason-form { grid-template-columns: minmax(130px,1fr) auto; gap: 7px; }
.inline-form { grid-template-columns: minmax(130px,1fr) auto; gap: 7px; }
.pagination { margin-top: 16px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pager a, .pager-disabled { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: white; }
.pager-disabled { opacity: .45; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px clamp(18px,4vw,56px); background: white; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.site-footer strong { color: var(--navy); }
.offline-card { width: min(520px, calc(100% - 32px)); margin: 12vh auto; text-align: center; background: white; padding: 40px; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }

@media (max-width: 1050px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guest-main { grid-template-columns: 1fr; max-width: 720px; }
  .guest-intro { text-align: center; }
  .guest-intro > p, .intro-panel { margin-inline: auto; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 76px; inset-inline-start: 0; width: min(290px, 88vw); transform: translateX(-110%); z-index: 25; box-shadow: var(--shadow); transition: transform .2s ease; }
  [dir="rtl"] .sidebar { transform: translateX(110%); }
  .sidebar.open { transform: translateX(0); }
  .metrics-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .topbar-actions .user-chip { display: none; }
}
@media (max-width: 600px) {
  .guest-header, .topbar { padding-inline: 14px; }
  .brand-compact span { display: none; }
  .guest-main { margin: 28px auto; }
  .module-grid { grid-template-columns: 1fr; }
  .page-heading, .panel-heading, .site-footer { flex-direction: column; }
  .content { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* OrganizeMe v0.2.0 — brand system and trip workspace */
:root {
  --brand-blue: #054884;
  --brand-blue-deep: #033867;
  --brand-blue-light: #0b74a9;
  --brand-teal: #08a6a3;
  --brand-teal-light: #22bbb5;
  --brand-gradient: linear-gradient(135deg, var(--brand-blue-deep), var(--brand-blue) 52%, var(--brand-teal));
  --accent-soft: #e8fbfa;
  --radius-lg: 24px;
  --radius-md: 16px;
}
body { background: linear-gradient(180deg, #f8fcfd 0, var(--canvas) 42%, #eef7f8 100%); }
a { color: var(--brand-blue); }
.guest-body { min-height: 100vh; background: radial-gradient(circle at 12% 13%, rgba(34,187,181,.16), transparent 31%), radial-gradient(circle at 90% 12%, rgba(5,72,132,.13), transparent 30%), linear-gradient(145deg,#f9fdfd,#edf8fa); }
.guest-header, .topbar { backdrop-filter: blur(16px); background: rgba(255,255,255,.93); border-bottom-color: rgba(8,118,163,.14); box-shadow: 0 4px 22px rgba(5,72,132,.05); }
.brand img { object-fit: contain; filter: drop-shadow(0 7px 12px rgba(5,72,132,.12)); }
.brand strong { color: var(--brand-blue-deep); }
.language-nav a.active, .language-switch { background: var(--brand-gradient); color: white; }
.language-switch { padding: 7px 12px; border-radius: 999px; font-weight: 700; }
.guest-main { grid-template-columns: minmax(0,1.12fr) minmax(360px,.75fr); gap: clamp(30px,5vw,72px); margin-block: clamp(34px,7vh,80px); }
.guest-intro { text-align: center; }
.guest-logo-picture { display: block; margin: -40px auto -60px; }
.guest-logo { width: min(520px,95%); height: auto; filter: drop-shadow(0 22px 28px rgba(5,72,132,.11)); }
.guest-intro h1 { margin: 0 auto 10px; font-size: clamp(2rem,4vw,3.8rem); background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guest-intro > p { margin-inline: auto; }
.hero-points { margin: 24px auto 0; max-width: 620px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.hero-points span { padding: 12px 13px; border: 1px solid rgba(8,166,163,.2); border-radius: 14px; background: rgba(255,255,255,.72); color: var(--brand-blue-deep); font-size: .88rem; font-weight: 700; box-shadow: 0 8px 18px rgba(5,72,132,.05); }
.auth-card { border-color: rgba(8,166,163,.2); border-radius: 28px; box-shadow: 0 28px 70px rgba(3,56,103,.16); position: relative; overflow: hidden; }
.auth-card::before { content:""; position:absolute; inset:0 0 auto; height:5px; background:var(--brand-gradient); }
.auth-card-heading { display:flex; align-items:center; gap:14px; padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--border); }
.auth-card-heading img { flex:0 0 auto; }
.auth-card-heading p { margin:4px 0 0; color:var(--muted); font-size:.86rem; }
.eyebrow { background: var(--accent-soft); color: #047d7a; }
.eyebrow-soft { padding:4px 9px; font-size:.75rem; }
input, select, textarea { border-color:#c8dfe4; border-radius:12px; min-height:44px; }
textarea { min-height:auto; resize:vertical; }
input:focus, select:focus, textarea:focus { border-color:var(--brand-teal); box-shadow:0 0 0 4px rgba(8,166,163,.13); }
.btn { border-radius:12px; }
.btn-primary { background:var(--brand-gradient); box-shadow:0 9px 22px rgba(5,72,132,.18); }
.btn-secondary { background:var(--brand-blue); }
.btn-large { padding:12px 20px; font-size:1rem; }
.btn-ghost:hover { border-color:var(--brand-teal); color:var(--brand-blue); }
.topbar { position:sticky; top:0; }
.user-chip { display:inline-flex; align-items:center; gap:8px; background:#edf7f8; }
.user-avatar { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--brand-gradient); color:white; font-weight:800; }
.sidebar { background:linear-gradient(180deg,var(--brand-blue-deep),var(--brand-blue) 57%,#066f91); padding-top:16px; }
.sidebar-brand-mark { display:grid; justify-items:center; gap:2px; text-align:center; margin-bottom:16px; padding:10px; color:rgba(255,255,255,.72); font-size:.77rem; }
.sidebar-brand-mark img { filter:drop-shadow(0 8px 18px rgba(0,0,0,.2)); }
.sidebar nav a { display:flex; align-items:center; gap:10px; border:1px solid transparent; }
.sidebar nav a:hover, .sidebar nav a.active { background:linear-gradient(90deg,rgba(255,255,255,.16),rgba(34,187,181,.18)); border-color:rgba(255,255,255,.11); }
.nav-icon { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; background:rgba(255,255,255,.1); }
.sidebar-backdrop { display:none; }
.content { background:transparent; }
.page-heading h1 { color:var(--brand-blue-deep); }
.panel { border-color:rgba(8,118,163,.14); box-shadow:0 9px 28px rgba(5,72,132,.06); }
.panel-heading p { margin:3px 0 0; color:var(--muted); }
.badge-accent { background:var(--accent-soft); color:#057f7b; }
.metric-accent { background:linear-gradient(145deg,#fff,#e9fbfa); border-color:rgba(8,166,163,.28); }
.metric-card a { font-size:.86rem; font-weight:700; }
.four-columns { grid-template-columns:repeat(4,minmax(0,1fr)); }
.dashboard-hero { display:grid; grid-template-columns:minmax(0,1fr) 190px; align-items:center; gap:24px; background:linear-gradient(125deg,#fff 0,#f0fbfb 58%,#e9f6fb 100%); border:1px solid rgba(8,166,163,.2); border-radius:28px; padding:clamp(24px,4vw,46px); margin-bottom:24px; box-shadow:var(--shadow); overflow:hidden; position:relative; }
.dashboard-hero::after { content:""; position:absolute; width:260px; height:260px; border-radius:50%; inset-inline-end:-90px; top:-120px; background:rgba(8,166,163,.07); }
.dashboard-hero h1 { margin:7px 0 6px; color:var(--brand-blue-deep); font-size:clamp(1.8rem,3.5vw,3rem); }
.dashboard-hero p { color:var(--muted); margin:0; }
.dashboard-hero > img { z-index:1; filter:drop-shadow(0 18px 25px rgba(5,72,132,.16)); }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.dashboard-trip-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.dashboard-trip-card { display:grid; gap:8px; padding:18px; border:1px solid var(--border); border-radius:18px; background:linear-gradient(150deg,#fff,#f8fcfd); color:var(--ink); transition:.18s ease; }
.dashboard-trip-card:hover { transform:translateY(-3px); border-color:var(--brand-teal); box-shadow:0 14px 26px rgba(5,72,132,.1); text-decoration:none; }
.dashboard-trip-top { display:flex; align-items:center; justify-content:space-between; }
.dashboard-trip-card h3 { margin:0; color:var(--brand-blue-deep); }
.dashboard-trip-card p { margin:0; color:var(--muted); }
.dashboard-trip-card > div:last-child { display:flex; gap:14px; font-size:.84rem; color:var(--brand-blue); }
.segmented-tabs { display:inline-flex; gap:5px; padding:5px; background:#e8f2f5; border-radius:14px; margin-bottom:22px; }
.segmented-tabs a { padding:8px 16px; border-radius:10px; font-weight:700; }
.segmented-tabs a.active { background:white; box-shadow:0 4px 12px rgba(5,72,132,.1); color:var(--brand-blue-deep); }
.trip-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.trip-card { position:relative; display:flex; flex-direction:column; min-height:360px; background:white; border:1px solid rgba(8,118,163,.16); border-radius:22px; overflow:hidden; box-shadow:0 10px 28px rgba(5,72,132,.07); }
.trip-card-accent { height:5px; background:var(--brand-gradient); }
.trip-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 18px 0; }
.role-pill { display:inline-flex; padding:5px 9px; border-radius:999px; background:#edf5f7; color:var(--muted); font-size:.76rem; font-weight:800; }
.trip-card-body { padding:12px 20px 18px; flex:1; }
.trip-mark { float:inline-end; width:58px; height:58px; }
.trip-card h2 { margin:9px 0 8px; color:var(--brand-blue-deep); }
.trip-card h2 a { color:inherit; }
.trip-card p { color:var(--muted); margin:0 0 18px; }
.trip-date-line { display:flex; gap:7px; align-items:center; flex-wrap:wrap; font-size:.88rem; color:var(--brand-blue); }
.trip-card-stats { display:grid; grid-template-columns:repeat(3,1fr); border-block:1px solid var(--border); background:#f7fbfc; }
.trip-card-stats span { display:grid; justify-items:center; padding:11px 5px; font-size:.72rem; color:var(--muted); }
.trip-card-stats strong { color:var(--brand-blue); font-size:1.05rem; }
.trip-card-actions { display:flex; gap:8px; padding:14px 18px; }
.trip-card-actions form { margin:0; }
.trip-card.is-archived { opacity:.76; }
.empty-state { text-align:center; padding:55px 20px; }
.empty-state img { filter:drop-shadow(0 10px 18px rgba(5,72,132,.12)); }
.empty-state h2 { color:var(--brand-blue-deep); }
.trip-hero { display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:18px; background:var(--brand-gradient); color:white; border-radius:28px; padding:clamp(24px,4vw,42px); margin-bottom:18px; box-shadow:0 22px 50px rgba(3,56,103,.2); position:relative; overflow:hidden; }
.trip-hero::after { content:""; position:absolute; width:280px; height:280px; border:1px solid rgba(255,255,255,.12); border-radius:50%; inset-inline-end:-70px; top:-130px; }
.trip-hero-copy, .trip-hero-mark, .trip-hero-actions { position:relative; z-index:1; }
.trip-hero h1 { margin:8px 0 8px; font-size:clamp(2rem,4vw,3.3rem); }
.trip-hero p { margin:0; color:rgba(255,255,255,.8); max-width:760px; }
.trip-hero-badges { display:flex; gap:8px; flex-wrap:wrap; }
.trip-hero .role-pill { background:rgba(255,255,255,.13); color:white; }
.trip-hero-meta { display:flex; gap:18px; flex-wrap:wrap; margin-top:20px; font-size:.86rem; color:rgba(255,255,255,.82); }
.trip-hero-mark { display:grid; place-items:center; }
.trip-hero-mark img { filter:drop-shadow(0 16px 24px rgba(0,0,0,.2)); }
.trip-hero-actions { grid-column:1/-1; display:flex; gap:8px; flex-wrap:wrap; }
.trip-hero .btn-primary { background:white; color:var(--brand-blue); }
.trip-hero .btn-ghost { background:rgba(255,255,255,.11); border-color:rgba(255,255,255,.25); color:white; }
.trip-nav { display:flex; gap:6px; overflow-x:auto; margin:0 0 22px; padding:6px; border:1px solid var(--border); border-radius:16px; background:white; box-shadow:0 7px 19px rgba(5,72,132,.04); }
.trip-nav a { flex:0 0 auto; padding:9px 15px; border-radius:11px; font-weight:700; color:var(--muted); }
.trip-nav a.active, .trip-nav a:hover { background:var(--brand-gradient); color:white; text-decoration:none; }
.workspace-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin-bottom:22px; }
.workspace-shortcuts > a { display:grid; grid-template-columns:48px 1fr auto; gap:13px; align-items:center; padding:18px; background:white; border:1px solid var(--border); border-radius:18px; color:var(--ink); }
.workspace-shortcuts > a:hover { border-color:var(--brand-teal); box-shadow:0 12px 24px rgba(5,72,132,.08); text-decoration:none; }
.shortcut-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:var(--accent-soft); color:var(--brand-teal); font-size:1.4rem; }
.workspace-shortcuts h3 { margin:0; color:var(--brand-blue-deep); }
.workspace-shortcuts p { margin:2px 0 0; color:var(--muted); font-size:.85rem; }
.shortcut-arrow { color:var(--brand-teal); font-size:1.4rem; }
.timeline-list { display:grid; gap:8px; }
.timeline-list article { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--border); border-radius:14px; background:#fbfefe; }
.timeline-number { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:var(--brand-gradient); color:white; font-weight:800; }
.timeline-list article > div { display:grid; }
.timeline-list small { color:var(--muted); }
.centered { text-align:center; }
.mini-empty { display:flex; gap:16px; align-items:center; padding:25px; border:1px dashed #bed9df; border-radius:16px; background:#f8fcfd; }
.mini-empty > span { font-size:2rem; color:var(--brand-teal); }
.mini-empty strong { color:var(--brand-blue-deep); }
.mini-empty p { margin:3px 0; color:var(--muted); }
.danger-zone { display:flex; align-items:center; justify-content:space-between; gap:20px; border-color:#f0cbd0; }
.danger-zone h2 { margin:0; color:var(--danger); }
.danger-zone p { margin:4px 0 0; color:var(--muted); }
.workspace-form { display:grid; gap:18px; }
.form-section { background:white; border:1px solid rgba(8,118,163,.15); border-radius:22px; padding:clamp(20px,3vw,30px); box-shadow:0 8px 26px rgba(5,72,132,.05); }
.form-section-heading { display:flex; align-items:flex-start; gap:14px; margin-bottom:20px; }
.form-section-heading h2 { margin:0; color:var(--brand-blue-deep); }
.form-section-heading p { margin:3px 0 0; color:var(--muted); }
.step-number { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border-radius:12px; background:var(--brand-gradient); color:white; font-weight:900; }
.form-grid { display:grid; gap:16px; }
.two-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
.three-columns { grid-template-columns:repeat(3,minmax(0,1fr)); }
.field { display:grid; gap:7px; min-width:0; }
.field > span, .field legend { color:var(--brand-blue-deep); font-weight:800; }
.field-wide { grid-column:1/-1; }
.radio-field { border:0; padding:0; margin:0; }
.choice-cards { display:grid; gap:8px; }
.choice-cards label { position:relative; }
.choice-cards input { position:absolute; opacity:0; }
.choice-cards span { display:grid; padding:12px 14px; border:1px solid var(--border); border-radius:13px; background:#fbfefe; cursor:pointer; }
.choice-cards small { color:var(--muted); }
.choice-cards input:checked + span { border-color:var(--brand-teal); background:var(--accent-soft); box-shadow:0 0 0 3px rgba(8,166,163,.09); }
.form-actions { display:flex; gap:10px; justify-content:flex-end; align-items:center; flex-wrap:wrap; }
.sticky-actions { position:sticky; bottom:12px; z-index:10; padding:13px; background:rgba(255,255,255,.93); border:1px solid var(--border); border-radius:16px; box-shadow:0 14px 32px rgba(5,72,132,.12); backdrop-filter:blur(12px); }
.accent-panel { background:linear-gradient(145deg,#fff,#f0fbfb); border-color:rgba(8,166,163,.26); }
.subtle-panel { background:#f8fbfc; }
.panel-symbol { font-size:2.2rem; color:var(--brand-teal); }
.traveler-list, .member-list, .lookup-value-list { display:grid; gap:9px; }
.traveler-row, .member-row, .lookup-value-row { display:grid; align-items:center; gap:12px; padding:13px; border:1px solid var(--border); border-radius:15px; background:white; }
.traveler-row { grid-template-columns:54px 44px minmax(0,1fr) auto; }
.traveler-order { display:grid; justify-items:center; gap:3px; color:var(--brand-blue); }
.move-buttons { display:flex; gap:2px; }
.move-buttons form { margin:0; }
.move-buttons button { width:22px; height:22px; padding:0; border:1px solid var(--border); border-radius:6px; background:#f7fbfc; color:var(--brand-blue); }
.traveler-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:var(--brand-gradient); color:white; font-weight:900; }
.traveler-main, .member-main { display:grid; min-width:0; }
.traveler-main strong, .member-main strong { color:var(--brand-blue-deep); }
.traveler-meta, .member-permissions { display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:.82rem; }
.traveler-actions, .member-actions, .lookup-actions, .group-actions { display:flex; align-items:center; gap:6px; }
.traveler-actions form, .member-actions form, .lookup-actions form, .group-actions form { margin:0; }
.action-details { position:relative; }
.action-details > summary { list-style:none; cursor:pointer; }
.action-details > summary::-webkit-details-marker { display:none; }
.popover-form { position:absolute; z-index:40; inset-inline-end:0; top:calc(100% + 7px); width:min(420px,85vw); padding:17px; border:1px solid var(--border); border-radius:16px; background:white; box-shadow:0 22px 48px rgba(3,56,103,.2); }
.wide-popover { width:min(620px,90vw); }
.compact-grid { gap:9px; }
.archived-chips { display:flex; gap:8px; flex-wrap:wrap; }
.archived-chips > span { display:flex; align-items:center; gap:8px; padding:7px 11px; border:1px solid var(--border); border-radius:999px; background:white; color:var(--muted); }
.archived-chips form { margin:0; display:inline; }
.group-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.group-card { display:grid; gap:12px; align-content:start; padding:18px; border:1px solid var(--border); border-radius:18px; background:white; }
.group-card.system-group { background:linear-gradient(145deg,#fff,#eafafa); border-color:rgba(8,166,163,.3); }
.group-card-head { display:flex; justify-content:space-between; gap:12px; }
.group-card h3 { margin:0; color:var(--brand-blue-deep); }
.group-card p { margin:3px 0 0; color:var(--muted); font-size:.85rem; }
.member-bubbles { display:flex; align-items:center; min-height:34px; }
.member-bubbles > span { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:var(--brand-gradient); color:white; font-weight:800; border:2px solid white; margin-inline-start:-7px; }
.member-bubbles > span:first-child { margin-inline-start:0; }
.checkbox-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.checkbox-grid label, .permission-grid label { display:flex; gap:8px; align-items:flex-start; padding:9px 11px; border:1px solid var(--border); border-radius:11px; background:#fbfefe; font-weight:500; }
.checkbox-grid input, .permission-grid input { width:18px; height:18px; flex:0 0 18px; }
.permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.permission-grid span { display:grid; }
.member-row { grid-template-columns:44px minmax(0,1fr) auto; }
.member-main > span { color:var(--muted); font-size:.85rem; }
.member-permissions { margin-top:6px; align-items:center; }
.member-row.is-revoked { opacity:.6; background:#f6f8f9; }
.owner-lock { color:var(--muted); font-size:.8rem; }
.privacy-note { display:flex; gap:15px; align-items:center; }
.privacy-icon { font-size:2.1rem; }
.privacy-note h2 { margin:0; color:var(--brand-blue-deep); }
.privacy-note p { margin:3px 0 0; color:var(--muted); }
.lookup-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:18px; align-items:start; }
.lookup-types { position:sticky; top:94px; padding:14px; }
.lookup-types h2 { margin:4px 8px 12px; font-size:1rem; color:var(--brand-blue-deep); }
.lookup-types nav { display:grid; gap:4px; }
.lookup-types a { padding:9px 11px; border-radius:10px; color:var(--muted); font-weight:700; }
.lookup-types a.active, .lookup-types a:hover { background:var(--accent-soft); color:var(--brand-blue); text-decoration:none; }
.lookup-value-row { grid-template-columns:130px minmax(0,1fr) auto auto; }
.lookup-code { font-family:monospace; direction:ltr; padding:6px 9px; border-radius:8px; background:#edf4f6; color:var(--brand-blue); overflow-wrap:anywhere; }
.lookup-labels { display:grid; }
.lookup-labels strong { color:var(--brand-blue-deep); }
.lookup-labels span { color:var(--muted); font-size:.84rem; }
.lookup-scope { display:flex; gap:5px; flex-wrap:wrap; }
.lookup-value-row.is-inactive { opacity:.58; }
.site-footer { align-items:center; background:rgba(255,255,255,.9); }
.footer-mark { object-fit:contain; opacity:.8; }
@media (max-width: 1200px) {
  .trip-card-grid, .dashboard-trip-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .four-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
  .guest-main { grid-template-columns:1fr; max-width:760px; }
  .guest-intro { order:2; }
  .auth-card { order:1; }
  .guest-logo-picture { margin:-45px auto -70px; }
  .workspace-shortcuts { grid-template-columns:1fr; }
  .lookup-layout { grid-template-columns:1fr; }
  .lookup-types { position:static; }
  .lookup-types nav { display:flex; overflow-x:auto; }
  .lookup-types a { flex:0 0 auto; }
}
@media (max-width: 820px) {
  .sidebar-backdrop { position:fixed; inset:76px 0 0; z-index:24; background:rgba(3,56,103,.32); }
  .sidebar-backdrop.open { display:block; }
  .dashboard-hero { grid-template-columns:1fr; text-align:center; }
  .dashboard-hero > img { display:none; }
  .hero-actions { justify-content:center; }
  .trip-hero { grid-template-columns:1fr; }
  .trip-hero-mark { position:absolute; inset-inline-end:15px; top:15px; opacity:.16; }
  .trip-hero-mark img { width:130px; }
  .two-columns, .three-columns, .permission-grid { grid-template-columns:1fr; }
  .trip-card-grid, .dashboard-trip-grid, .group-grid { grid-template-columns:1fr; }
  .traveler-row { grid-template-columns:42px 42px minmax(0,1fr); }
  .traveler-actions { grid-column:1/-1; justify-content:flex-end; }
  .member-row { grid-template-columns:42px minmax(0,1fr); }
  .member-actions, .owner-lock { grid-column:1/-1; justify-self:end; }
  .lookup-value-row { grid-template-columns:1fr; }
  .lookup-actions { justify-content:flex-end; }
  .checkbox-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .brand-compact span { display:grid; }
  .topbar .brand-compact span { display:none; }
  .hero-points { grid-template-columns:1fr; }
  .guest-logo-picture { margin:-20px auto -45px; }
  .guest-logo { width:100%; }
  .four-columns { grid-template-columns:1fr; }
  .trip-card-stats { grid-template-columns:repeat(3,1fr); }
  .timeline-list article { grid-template-columns:38px 1fr; }
  .timeline-list article > .badge { grid-column:2; }
  .checkbox-grid { grid-template-columns:1fr; }
  .popover-form { position:fixed; inset:90px 12px auto; width:auto; max-height:75vh; overflow:auto; }
  .danger-zone { align-items:flex-start; }
  .site-footer { text-align:center; }
  .footer-mark { display:none; }
}


/* =========================================================
   OrganizeMe — itinerary, bookings, transport, responsive branding
   ========================================================= */
.topbar-brand { min-width: 0; gap: 9px; }
.topbar-brand picture { display: flex; align-items: center; }
.topbar-brand-logo { width: 185px; height: 52px; object-fit: contain; object-position: center; }
.topbar-version { padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--brand-blue); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.guest-header-brand picture { display: flex; }
.guest-header-brand img { width: min(260px, 44vw); height: 58px; object-fit: contain; object-position: center; }
.sidebar-brand-mark { color: rgba(255,255,255,.76); text-decoration: none; }
.sidebar-brand-mark:hover { text-decoration: none; color: white; }
.sidebar-brand-mark picture { display: grid; place-items: center; }
.sidebar-brand-mark img { width: 176px; height: 138px; object-fit: contain; }
.site-footer {
  display: grid;
  grid-template-columns: 235px minmax(0,1fr);
  align-items: center;
  gap: clamp(18px,4vw,48px);
  padding: 30px clamp(22px,4vw,58px);
  color: rgba(255,255,255,.83);
  background:
    radial-gradient(circle at 82% 10%, rgba(20,185,179,.25), transparent 28%),
    linear-gradient(125deg, #022d54, #054884 54%, #056d83);
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: grid; place-items: center; }
.footer-brand img { width: 220px; height: 72px; object-fit: contain; }
.footer-copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.footer-copy > div:last-child { text-align: end; }
.site-footer strong { color: white; }
.site-footer span { color: rgba(255,255,255,.69); font-size: .86rem; }
.four-shortcuts { grid-template-columns: repeat(4,minmax(0,1fr)); }
.timeline-day-link { color: inherit; }
.timeline-day-link:hover { text-decoration: none; }
.timeline-day-link article { transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.timeline-day-link:hover article { transform: translateY(-2px); border-color: var(--brand-teal); box-shadow: 0 10px 24px rgba(5,72,132,.08); }

.itinerary-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(210px,340px);
  align-items: center;
  gap: 22px;
  min-height: 310px;
  padding: clamp(28px,5vw,54px);
  margin-bottom: 18px;
  overflow: hidden;
  color: white;
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 18%, rgba(40,223,216,.26), transparent 29%),
    linear-gradient(135deg,#022f58,#054884 48%,#0499a2);
  box-shadow: 0 25px 58px rgba(3,56,103,.25);
}
.itinerary-hero::before,
.itinerary-hero::after {
  content:"";
  position:absolute;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
}
.itinerary-hero::before { width:360px; height:360px; inset-inline-end:-110px; top:-160px; }
.itinerary-hero::after { width:240px; height:240px; inset-inline-end:110px; bottom:-190px; }
.itinerary-hero-copy, .itinerary-hero-brand { position:relative; z-index:1; }
.itinerary-eyebrow { color:#d7fffc; background:rgba(255,255,255,.13); }
.itinerary-hero h1 { margin:12px 0 9px; font-size:clamp(2rem,4vw,3.45rem); line-height:1.18; }
.itinerary-hero p { max-width:750px; margin:0; color:rgba(255,255,255,.82); font-size:1.02rem; }
.itinerary-hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:24px; }
.itinerary-hero .btn-light { background:white; color:var(--brand-blue); }
.itinerary-hero .btn-glass { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.25); color:white; }
.itinerary-hero-brand { display:grid; place-items:center; }
.itinerary-hero-brand img { width:min(310px,100%); height:245px; object-fit:contain; filter:drop-shadow(0 20px 28px rgba(0,0,0,.24)); }
.itinerary-metrics .metric-card { position:relative; overflow:hidden; }
.itinerary-metrics .metric-card::after { content:""; position:absolute; width:70px; height:70px; border-radius:50%; inset-inline-end:-25px; bottom:-30px; background:rgba(8,166,163,.08); }
.metric-alert { border-color:#f0cf9c; background:linear-gradient(145deg,#fff,#fff8e9); }
.metric-alert strong { color:var(--warning); }

.alerts-panel { border-color:#efcf9a; background:linear-gradient(145deg,#fff,#fffbf2); }
.itinerary-alert-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.schedule-alert { display:grid; grid-template-columns:43px minmax(0,1fr); align-items:start; gap:11px; padding:13px; color:var(--ink); border:1px solid #f0d9ae; border-radius:15px; background:white; }
.schedule-alert:hover { text-decoration:none; border-color:var(--warning); box-shadow:0 10px 22px rgba(154,97,0,.09); }
.schedule-alert.booking { border-color:#c4e5e5; }
.schedule-alert-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; color:var(--warning); background:var(--warning-soft); font-size:1.2rem; }
.schedule-alert.booking .schedule-alert-icon { color:#047f7b; background:var(--accent-soft); }
.schedule-alert > span:last-child { display:grid; }
.schedule-alert strong { color:var(--brand-blue-deep); }
.schedule-alert small { color:var(--muted); line-height:1.45; }
.itinerary-empty picture { display:block; }
.itinerary-empty img { object-fit:contain; }

.itinerary-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:20px; align-items:start; }
.itinerary-days-nav { position:sticky; top:96px; max-height:calc(100vh - 118px); overflow:auto; padding:13px; }
.itinerary-days-nav-head { display:flex; align-items:center; justify-content:space-between; padding:8px 9px 13px; color:var(--brand-blue-deep); }
.itinerary-days-nav-head strong { min-width:30px; height:30px; display:grid; place-items:center; border-radius:9px; color:white; background:var(--brand-gradient); }
.itinerary-days-nav nav { display:grid; gap:5px; }
.itinerary-days-nav a { display:grid; grid-template-columns:36px minmax(0,1fr) 28px; align-items:center; gap:9px; padding:9px; color:var(--ink); border:1px solid transparent; border-radius:13px; }
.itinerary-days-nav a:hover,
.itinerary-days-nav a.active { text-decoration:none; color:var(--brand-blue-deep); border-color:rgba(8,166,163,.25); background:var(--accent-soft); }
.day-nav-number { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; color:white; background:var(--brand-gradient); font-weight:900; }
.itinerary-days-nav a > span:nth-child(2) { display:grid; min-width:0; }
.itinerary-days-nav small { overflow:hidden; color:var(--muted); text-overflow:ellipsis; white-space:nowrap; }
.day-nav-count { width:27px; height:27px; display:grid; place-items:center; border-radius:50%; color:var(--brand-blue); background:white; border:1px solid var(--border); font-size:.76rem; font-weight:900; }
.itinerary-days { display:grid; gap:22px; min-width:0; }
.day-board { scroll-margin-top:98px; background:white; border:1px solid rgba(8,118,163,.16); border-radius:25px; box-shadow:0 12px 34px rgba(5,72,132,.07); overflow:visible; }
.day-board-header { display:grid; grid-template-columns:82px minmax(0,1fr) auto; align-items:center; gap:16px; padding:20px; border-bottom:1px solid var(--border); background:linear-gradient(135deg,#fff,#f4fbfc); border-radius:25px 25px 0 0; }
.day-date-block { display:grid; justify-items:center; padding:10px 8px; border-radius:17px; color:white; background:var(--brand-gradient); box-shadow:0 10px 22px rgba(5,72,132,.18); line-height:1.15; }
.day-date-block span { font-size:.72rem; opacity:.8; }
.day-date-block strong { font-size:1.8rem; }
.day-date-block small { color:rgba(255,255,255,.78); font-size:.69rem; }
.day-board-title { min-width:0; }
.day-title-line { display:flex; align-items:center; gap:12px; }
.day-title-line h2 { margin:2px 0 0; color:var(--brand-blue-deep); font-size:clamp(1.25rem,2.2vw,1.75rem); }
.day-type-icon { width:43px; height:43px; flex:0 0 43px; display:grid; place-items:center; border-radius:13px; color:var(--brand-teal); background:var(--accent-soft); font-size:1.3rem; }
.day-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:8px; color:var(--muted); font-size:.82rem; }
.day-board-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
.day-edit-details { position:relative; }
.day-edit-form { width:min(520px,90vw); }
.compact-form-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
.compact-form-heading strong { color:var(--brand-blue-deep); }
.day-note { display:flex; gap:10px; padding:12px 20px; color:var(--muted); background:#fbfefe; border-bottom:1px solid var(--border); }
.day-note span { color:var(--brand-teal); }
.day-note p { margin:0; white-space:pre-wrap; }

.activity-list { display:grid; gap:12px; padding:18px 18px 0; }
.activity-list.is-saving { opacity:.65; pointer-events:none; }
.activity-list.is-saved::after { content:"✓"; position:fixed; inset-inline-end:24px; bottom:24px; width:46px; height:46px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--success); box-shadow:0 12px 24px rgba(25,115,75,.25); z-index:70; animation:activitySaved 1.1s both; }
@keyframes activitySaved { 0%{transform:scale(.6);opacity:0} 25%{transform:scale(1);opacity:1} 75%{opacity:1} 100%{opacity:0} }
.activity-card { display:grid; grid-template-columns:96px minmax(0,1fr); min-width:0; border:1px solid var(--border); border-radius:20px; background:white; box-shadow:0 7px 22px rgba(5,72,132,.05); transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease,opacity .17s ease; }
.activity-card:hover { transform:translateY(-2px); border-color:rgba(8,166,163,.48); box-shadow:0 13px 28px rgba(5,72,132,.09); }
.activity-card.dragging { opacity:.42; transform:scale(.985); }
.activity-card.drag-over { border-color:var(--brand-teal); box-shadow:0 0 0 3px rgba(8,166,163,.13); }
.activity-card.has-conflict { border-inline-start:5px solid var(--danger); }
.activity-card.has-booking-warning:not(.has-conflict) { border-inline-start:5px solid var(--warning); }
.activity-card.is-cancelled { opacity:.65; filter:saturate(.65); }
.activity-time-column { display:grid; justify-items:center; align-content:start; gap:4px; padding:15px 10px; color:white; border-radius:19px 0 0 19px; background:linear-gradient(180deg,var(--brand-blue-deep),var(--brand-blue)); }
[dir="rtl"] .activity-time-column { border-radius:0 19px 19px 0; }
.activity-time-column strong { font-size:1rem; line-height:1.2; text-align:center; }
.activity-time-column small { color:rgba(255,255,255,.72); }
.drag-handle { width:34px; height:28px; margin-bottom:4px; border:1px solid rgba(255,255,255,.18); border-radius:9px; color:white; background:rgba(255,255,255,.1); cursor:grab; line-height:1; }
.drag-handle:active { cursor:grabbing; }
.activity-order { width:23px; height:23px; display:grid; place-items:center; margin-top:5px; border-radius:50%; background:rgba(255,255,255,.13); font-size:.7rem; }
.activity-card-body { min-width:0; padding:17px; }
.activity-card-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; }
.activity-badges { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:6px; }
.activity-badges a:hover { text-decoration:none; }
.activity-card h3 { margin:0; color:var(--brand-blue-deep); font-size:1.15rem; }
.activity-location-line { display:flex; gap:9px; flex-wrap:wrap; margin-top:5px; color:var(--muted); font-size:.82rem; }
.icon-action { width:38px; height:34px; display:grid; place-items:center; border:1px solid var(--border); border-radius:10px; color:var(--brand-blue); background:#f8fcfd; cursor:pointer; font-weight:900; letter-spacing:2px; }
.activity-actions { position:relative; }
.activity-action-menu { position:absolute; z-index:45; inset-inline-end:0; top:calc(100% + 7px); width:260px; padding:10px; border:1px solid var(--border); border-radius:16px; background:white; box-shadow:0 24px 52px rgba(3,56,103,.22); }
.activity-action-menu > a,
.activity-action-menu > form > button { display:flex; width:100%; align-items:center; gap:8px; padding:9px 10px; color:var(--ink); border:0; border-radius:9px; background:transparent; text-align:start; }
.activity-action-menu > a:hover,
.activity-action-menu > form > button:hover { text-decoration:none; color:var(--brand-blue); background:var(--accent-soft); }
.activity-action-menu .danger-action { color:var(--danger); }
.activity-action-divider { height:1px; margin:6px 0; background:var(--border); }
.inline-order-actions { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.inline-order-actions button { width:100%; height:34px; border:1px solid var(--border); border-radius:9px; color:var(--brand-blue); background:#f7fbfc; }
.activity-transfer-form { display:grid; gap:7px; padding:8px 5px; }
.activity-transfer-form label { display:grid; gap:5px; color:var(--muted); font-size:.78rem; }
.activity-transfer-form select { min-height:36px; padding:6px 8px; }
.activity-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:14px; }
.activity-detail-grid > div { min-width:0; padding:11px; border:1px solid #e0edf0; border-radius:13px; background:#f9fcfd; }
.activity-detail-grid > div > span { display:block; color:var(--muted); font-size:.72rem; }
.activity-detail-grid > div > strong { color:var(--brand-blue-deep); overflow-wrap:anywhere; }
.activity-detail-grid > div > small { display:block; color:var(--muted); }
.participant-pills { display:flex; gap:5px; flex-wrap:wrap; margin-top:4px; }
.participant-pill { display:inline-flex; align-items:center; max-width:100%; padding:4px 7px; border-radius:999px; color:var(--brand-blue); background:#eaf4f8; font-size:.72rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.participant-pill.group { color:#047d79; background:var(--accent-soft); }
.activity-notes { margin-top:12px; border-top:1px dashed var(--border); }
.activity-notes summary { padding-top:10px; color:var(--brand-blue); cursor:pointer; font-weight:700; font-size:.82rem; }
.activity-notes p { margin:7px 0; color:var(--muted); white-space:pre-wrap; }
.alternative-plan { padding:9px 11px; border-radius:11px; color:#785400; background:var(--warning-soft); }
.alternative-plan p { color:#785400; }
.activity-links { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.activity-links a { padding:5px 9px; border:1px solid var(--border); border-radius:9px; color:var(--brand-blue); background:white; font-size:.78rem; }
.activity-links a:hover { text-decoration:none; border-color:var(--brand-teal); }

.default-slots { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px 18px 0; }
.empty-activity-slot { display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:72px; padding:11px; color:var(--muted); border:1px dashed #b8d8dd; border-radius:16px; background:linear-gradient(145deg,#fbfefe,#f5fbfc); }
.empty-activity-slot:hover { color:var(--brand-blue); text-decoration:none; border-color:var(--brand-teal); background:var(--accent-soft); }
.empty-activity-slot.view-only { opacity:.7; }
.empty-slot-number { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; color:var(--brand-blue); background:white; border:1px solid var(--border); font-weight:900; }
.empty-activity-slot > span:nth-child(2) { display:grid; }
.empty-activity-slot strong { color:var(--brand-blue-deep); font-size:.86rem; }
.empty-activity-slot small { color:var(--muted); font-size:.74rem; }
.add-more-activity { display:flex; align-items:center; justify-content:center; gap:10px; margin:13px 18px 18px; padding:12px; color:var(--brand-blue); border:1px solid rgba(8,166,163,.25); border-radius:15px; background:linear-gradient(135deg,#f8fdfd,#edfbfa); }
.add-more-activity:hover { text-decoration:none; border-color:var(--brand-teal); box-shadow:0 8px 18px rgba(8,166,163,.08); }
.add-more-activity > span:first-child { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; color:white; background:var(--brand-gradient); font-size:1.2rem; }
.add-more-activity > span:last-child { display:grid; }
.add-more-activity small { color:var(--muted); }

.archived-activity-list { display:grid; gap:8px; }
.archived-activity-list article { display:grid; grid-template-columns:40px minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px; border:1px solid var(--border); border-radius:13px; background:#fafcfd; }
.archived-activity-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; color:var(--muted); background:#eaf0f2; }
.archived-activity-list article > div { display:grid; }
.archived-activity-list strong { color:var(--brand-blue-deep); }
.archived-activity-list small { color:var(--muted); }

.activity-form-heading { align-items:center; }
.form-switches { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }
.switch-card { position:relative; display:flex; min-width:230px; cursor:pointer; }
.switch-card input { position:absolute; opacity:0; }
.switch-card > span { display:grid; width:100%; padding:12px 14px 12px 48px; border:1px solid var(--border); border-radius:14px; color:var(--brand-blue-deep); background:#fbfefe; }
[dir="rtl"] .switch-card > span { padding:12px 48px 12px 14px; }
.switch-card > span::before { content:""; position:absolute; inset-inline-start:13px; top:50%; width:26px; height:15px; border-radius:999px; background:#c8d5da; transform:translateY(-50%); transition:.18s ease; }
.switch-card > span::after { content:""; position:absolute; inset-inline-start:15px; top:50%; width:11px; height:11px; border-radius:50%; background:white; transform:translateY(-50%); transition:.18s ease; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.switch-card input:checked + span { border-color:var(--brand-teal); background:var(--accent-soft); }
.switch-card input:checked + span::before { background:var(--brand-teal); }
.switch-card input:checked + span::after { transform:translate(11px,-50%); }
[dir="rtl"] .switch-card input:checked + span::after { transform:translate(-11px,-50%); }
.switch-card small { color:var(--muted); }
.four-form-columns { grid-template-columns:repeat(4,minmax(0,1fr)); }
[data-time-fields].is-disabled { opacity:.48; }
[data-time-fields].is-disabled input { background:#f2f5f6; }
.booking-fields { margin-top:15px; padding:17px; border:1px solid rgba(8,166,163,.2); border-radius:17px; background:#f8fcfd; }
.booking-fields[hidden] { display:none; }
.participant-selector-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.participant-fieldset { min-width:0; padding:14px; border:1px solid var(--border); border-radius:16px; }
.participant-fieldset legend { padding:0 6px; }
.participant-choice-list { display:grid; gap:7px; max-height:360px; overflow:auto; }
.participant-choice { position:relative; display:grid; grid-template-columns:35px minmax(0,1fr); align-items:center; gap:9px; padding:9px; border:1px solid #deeaed; border-radius:12px; background:#fbfefe; cursor:pointer; }
.participant-choice input { position:absolute; opacity:0; }
.participant-choice > span:last-child { display:grid; min-width:0; }
.participant-choice b { color:var(--brand-blue-deep); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.participant-choice small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.participant-choice-icon,
.participant-choice-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; color:white; background:var(--brand-gradient); font-weight:900; }
.participant-choice input:checked ~ span { }
.participant-choice:has(input:checked) { border-color:var(--brand-teal); background:var(--accent-soft); box-shadow:0 0 0 3px rgba(8,166,163,.08); }
.info-strip { margin-top:14px; padding:11px 13px; border-radius:12px; color:#047d79; background:var(--accent-soft); }
.cost-calculator { display:grid; gap:15px; }
.calculated-cost { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:16px; border-radius:16px; color:white; background:var(--brand-gradient); }
.calculated-cost strong { font-size:1.35rem; }
.protected-financials { display:flex; align-items:center; gap:16px; color:var(--muted); background:linear-gradient(145deg,#fff,#f5f8f9); }
.protected-financials-icon { width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center; border-radius:14px; background:#eaf0f2; font-size:1.4rem; }
.protected-financials h2 { margin:0; color:var(--brand-blue-deep); }
.protected-financials p { margin:4px 0 0; }
.field-error { color:var(--danger); }
.field input:disabled { cursor:not-allowed; }
.drag-toast { position:fixed; inset-inline-end:22px; bottom:22px; z-index:80; padding:11px 14px; border-radius:12px; color:white; background:var(--danger); box-shadow:0 13px 28px rgba(167,45,53,.25); }

@media (max-width: 1260px) {
  .four-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .activity-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
  .itinerary-layout { grid-template-columns:1fr; }
  .itinerary-days-nav { position:sticky; top:76px; z-index:20; max-height:none; overflow-x:auto; padding:9px; }
  .itinerary-days-nav-head { display:none; }
  .itinerary-days-nav nav { display:flex; }
  .itinerary-days-nav a { flex:0 0 220px; }
  .itinerary-alert-list { grid-template-columns:1fr; }
  .participant-selector-grid { grid-template-columns:1fr; }
  .four-form-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .topbar-brand-logo { width:145px; }
  .topbar-version { display:none; }
  .itinerary-hero { grid-template-columns:1fr; min-height:auto; }
  .itinerary-hero-brand { position:absolute; inset-inline-end:12px; bottom:-20px; opacity:.16; }
  .itinerary-hero-brand img { width:220px; }
  .day-board-header { grid-template-columns:64px minmax(0,1fr); }
  .day-date-block { grid-row:1/3; }
  .day-board-actions { grid-column:2; justify-content:flex-start; }
  .activity-card { grid-template-columns:78px minmax(0,1fr); }
  .activity-detail-grid { grid-template-columns:1fr; }
  .default-slots { grid-template-columns:1fr; }
  .footer-copy { grid-template-columns:1fr; }
  .footer-copy > div:last-child { text-align:start; }
  .site-footer { grid-template-columns:1fr; text-align:center; }
  .footer-brand img { margin:auto; }
}
@media (max-width: 600px) {
  .guest-header-brand img { width:180px; }
  .topbar-brand-logo { width:116px; height:42px; }
  .topbar-actions .user-chip { display:none; }
  .itinerary-hero { padding:24px 20px; border-radius:22px; }
  .itinerary-hero h1 { font-size:1.75rem; }
  .day-board { border-radius:19px; }
  .day-board-header { grid-template-columns:55px minmax(0,1fr); padding:14px; }
  .day-date-block { padding:8px 4px; }
  .day-title-line { gap:7px; }
  .day-type-icon { width:35px; height:35px; flex-basis:35px; }
  .day-meta { gap:6px; }
  .day-board-actions { grid-column:1/-1; }
  .day-board-actions .btn { flex:1; }
  .activity-list { padding:12px 10px 0; }
  .activity-card { grid-template-columns:1fr; }
  .activity-time-column { grid-template-columns:auto auto 1fr auto; align-items:center; justify-items:start; border-radius:18px 18px 0 0; padding:9px 12px; }
  [dir="rtl"] .activity-time-column { border-radius:18px 18px 0 0; }
  .activity-time-column .drag-handle { margin:0; }
  .activity-order { justify-self:end; margin:0; }
  .activity-card-body { padding:13px; }
  .activity-action-menu { position:fixed; inset:95px 12px auto; width:auto; max-height:75vh; overflow:auto; }
  .default-slots { padding-inline:10px; }
  .add-more-activity { margin-inline:10px; }
  .four-form-columns { grid-template-columns:1fr; }
  .form-switches { display:grid; }
  .switch-card { min-width:0; }
  .calculated-cost { align-items:flex-start; flex-direction:column; }
  .archived-activity-list article { grid-template-columns:36px minmax(0,1fr); }
  .archived-activity-list article form { grid-column:2; }
  .site-footer { padding:25px 18px; }
  .footer-brand img { width:190px; }
}

/* ========================================================================
   OrganizeMe — Accommodation, transport, tickets and robust drag UI
   ======================================================================== */
.metrics-grid.five-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metrics-grid.six-columns { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.booking-page-heading { align-items:center; }
.booking-page-heading .eyebrow { margin-bottom:6px; }
.booking-metrics .metric-card { position:relative; overflow:hidden; }
.booking-metrics .metric-card::after { content:""; position:absolute; inset:auto -24px -34px auto; width:90px; height:90px; border-radius:50%; background:rgba(8,166,163,.07); }
.metric-accent { border-color:rgba(8,166,163,.34); background:linear-gradient(145deg,#fff,#f1fcfb); }
.metric-alert { border-color:rgba(167,45,53,.28); background:linear-gradient(145deg,#fff,#fff5f6); }

.booking-alert-panel { border-color:rgba(154,97,0,.2); background:linear-gradient(145deg,#fff,#fffcf3); }
.booking-alert-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.booking-alert { display:grid; grid-template-columns:42px minmax(0,1fr); gap:11px; align-items:start; padding:13px; border:1px solid var(--border); border-radius:15px; background:white; }
.booking-alert-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:var(--warning-soft); color:var(--warning); font-weight:900; }
.booking-alert strong { color:var(--brand-blue-deep); }
.booking-alert p { margin:3px 0 0; color:var(--muted); font-size:.88rem; }
.booking-alert.severity-danger { border-color:#efc8ce; background:#fff9fa; }
.booking-alert.severity-danger .booking-alert-icon { background:var(--danger-soft); color:var(--danger); }
.booking-alert.severity-muted { opacity:.8; }

.booking-list-panel { overflow:hidden; }
.large-empty-state { display:grid; grid-template-columns:150px minmax(0,1fr); align-items:center; gap:24px; padding:32px; border:1px dashed rgba(8,166,163,.35); border-radius:20px; background:linear-gradient(135deg,#fbfefe,#effbf9); }
.large-empty-state img { width:130px; height:130px; object-fit:contain; }
.large-empty-state h3 { margin:0 0 6px; color:var(--brand-blue-deep); }
.large-empty-state p { margin:0 0 16px; color:var(--muted); }
.mini-empty { display:flex; align-items:center; gap:14px; padding:22px; border:1px dashed var(--border); border-radius:16px; background:#fbfdfd; }
.mini-empty > span { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:var(--accent-soft); color:var(--brand-teal); font-size:1.5rem; }
.mini-empty strong { color:var(--brand-blue-deep); }
.mini-empty p { margin:3px 0 0; color:var(--muted); }

.accommodation-timeline,
.transport-list { display:grid; gap:15px; }
.booking-card { position:relative; display:grid; grid-template-columns:92px minmax(0,1fr); border:1px solid var(--border); border-radius:20px; background:white; overflow:hidden; box-shadow:0 8px 24px rgba(5,72,132,.06); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.booking-card:hover { transform:translateY(-2px); border-color:rgba(8,166,163,.32); box-shadow:0 15px 34px rgba(5,72,132,.1); }
.booking-card.needs-attention { border-inline-start:5px solid var(--warning); }
.booking-card-icon,
.transport-icon-column { display:grid; align-content:center; justify-items:center; gap:7px; padding:18px 9px; color:white; background:linear-gradient(180deg,var(--brand-blue),var(--brand-blue-deep)); }
.booking-card-icon > span,
.transport-icon-column > span:first-child { width:55px; height:55px; display:grid; place-items:center; border-radius:17px; background:rgba(255,255,255,.14); font-size:1.75rem; font-weight:900; }
.booking-card-icon small { color:rgba(255,255,255,.82); }
.booking-card-icon small::after { content:" " attr(data-unit); }
.booking-card-main { min-width:0; padding:18px 20px; }
.booking-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.booking-card-head h3 { margin:7px 0 2px; color:var(--brand-blue-deep); font-size:1.25rem; }
.booking-location { margin:0; color:var(--muted); }
.booking-date-route,
.transport-route { margin:17px 0; display:grid; grid-template-columns:minmax(0,1fr) 140px minmax(0,1fr); align-items:center; gap:14px; padding:15px; border-radius:17px; background:linear-gradient(135deg,#f5fbfc,#edf8f8); }
.booking-date-route > div,
.transport-stop { display:grid; gap:2px; }
.booking-date-route span,
.transport-stop > span { color:var(--muted); font-size:.78rem; font-weight:700; }
.booking-date-route strong,
.transport-stop strong { color:var(--brand-blue-deep); }
.booking-route-line,
.transport-route-line { position:relative; display:grid; justify-items:center; color:var(--brand-teal); text-align:center; }
.booking-route-line::before,
.transport-route-line::before { content:""; position:absolute; left:0; right:0; top:50%; height:2px; background:linear-gradient(90deg,transparent,var(--brand-teal),transparent); transform:translateY(-50%); }
.booking-route-line b,
.booking-route-line small,
.transport-route-line b,
.transport-route-line small { position:relative; z-index:1; padding:0 7px; background:#f1fafa; }
.booking-route-line b,
.transport-route-line b { color:var(--brand-blue-deep); }
.booking-detail-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.booking-detail-grid > div { min-width:0; padding:12px; border:1px solid #e0edef; border-radius:14px; background:#fbfefe; }
.booking-detail-grid > div > span { display:block; color:var(--muted); font-size:.76rem; font-weight:700; }
.booking-detail-grid strong { display:block; color:var(--brand-blue-deep); overflow-wrap:anywhere; }
.booking-detail-grid small { display:block; margin-top:2px; color:var(--muted); }

.transport-card { grid-template-columns:100px minmax(0,1fr); }
.transport-icon-column { background:linear-gradient(180deg,#0876a3,#054884); }
.transport-icon-column small { color:rgba(255,255,255,.8); text-align:center; }
.transport-route { grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr); }
.transport-stop { padding:3px; }
.transport-stop small { color:var(--muted); }
.transport-stop:last-child { text-align:end; }
.transport-route-line { min-width:100px; }
.transport-route-line > span { position:relative; z-index:2; width:38px; height:38px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--brand-gradient); }
.transport-route-line small { margin-top:6px; }

.booking-filter-bar { display:grid; grid-template-columns:minmax(220px,1fr) minmax(180px,.4fr) auto; align-items:end; gap:12px; margin-bottom:18px; }
.booking-form .form-section { scroll-margin-top:95px; }
.booking-form .field-wide { grid-column:1/-1; }
.form-grid.four-form-columns { grid-template-columns:repeat(4,minmax(0,1fr)); }
.form-switches .switch-card { min-width:210px; }
.transport-form-route { display:grid; grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr); gap:15px; align-items:start; }
.transport-form-stop { display:grid; gap:13px; padding:16px; border:1px solid var(--border); border-radius:17px; background:#fbfefe; }
.transport-form-arrow { width:48px; height:48px; align-self:center; display:grid; place-items:center; border-radius:50%; color:white; background:var(--brand-gradient); font-size:1.25rem; box-shadow:0 9px 20px rgba(5,72,132,.16); }

.room-workspace-grid { display:grid; grid-template-columns:minmax(310px,.75fr) minmax(0,1.25fr); gap:18px; align-items:start; }
.room-create-panel { position:sticky; top:94px; }
.compact-participants .participant-choice-list { max-height:260px; }
.room-list { display:grid; gap:11px; min-height:80px; border-radius:17px; transition:.18s ease; }
.room-card { display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; padding:13px; border:1px solid var(--border); border-radius:17px; background:white; box-shadow:0 5px 17px rgba(5,72,132,.05); }
.room-card.dragging { opacity:.55; transform:scale(.99); }
.room-drag { align-self:stretch; display:grid; place-items:center; color:var(--muted); cursor:grab; user-select:none; border-radius:10px; background:#f1f6f7; }
.room-drag:active { cursor:grabbing; }
.room-card-main { min-width:0; display:grid; gap:11px; }
.room-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.room-card-head h3 { margin:5px 0 0; color:var(--brand-blue-deep); }
.room-card-head p { margin:2px 0 0; color:var(--muted); }
.capacity-pill { min-width:52px; padding:6px 9px; border-radius:999px; color:#047d79; background:var(--accent-soft); font-weight:800; text-align:center; }
.room-edit-details { position:relative; }
.room-edit-form { width:min(620px,calc(100vw - 36px)); max-height:75vh; overflow:auto; }
.room-list.drag-enabled { outline:2px dashed rgba(8,166,163,.45); outline-offset:6px; }
.room-list.drag-target { background:var(--accent-soft); }
.room-list.is-saving { opacity:.65; pointer-events:none; }
.room-list.is-saved { box-shadow:0 0 0 4px rgba(25,115,75,.12); }

.ticket-assignment-panel { overflow:hidden; }
.ticket-table-wrap { border-radius:16px; }
.ticket-table { min-width:1080px; }
.ticket-table input,
.ticket-table select { min-width:105px; padding:8px 9px; }
.traveler-table-name { display:flex; align-items:center; gap:8px; min-width:160px; }
.traveler-table-name b { width:32px; height:32px; display:grid; place-items:center; flex:0 0 32px; border-radius:10px; color:white; background:var(--brand-gradient); }

/* Cross-day drag-and-drop: every day board becomes a large visible drop target. */
.activity-list { min-height:74px; transition:background .16s ease,outline .16s ease,min-height .16s ease; }
.activity-list.drag-enabled { min-height:112px; outline:2px dashed rgba(8,166,163,.3); outline-offset:-7px; }
.activity-list.drag-enabled:empty::after { content:attr(data-empty-drop-help); display:grid; place-items:center; min-height:90px; margin:8px; border:2px dashed rgba(8,166,163,.38); border-radius:16px; color:#047d79; background:rgba(232,251,250,.75); font-weight:800; }
.activity-list.drag-target { min-height:118px; background:rgba(232,251,250,.72); outline-color:var(--brand-teal); }
.day-board.drag-mode { transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease; }
.day-board.drag-mode::after { content:attr(data-drop-label); }
.day-board.drag-target-board { border-color:var(--brand-teal); box-shadow:0 0 0 4px rgba(8,166,163,.12),0 18px 40px rgba(5,72,132,.12); }
.activity-card.dragging { opacity:.58; transform:scale(.99); box-shadow:0 18px 35px rgba(5,72,132,.18); }
.activity-list.is-saving { opacity:.66; pointer-events:none; }
.activity-list.is-saved { box-shadow:inset 0 0 0 3px rgba(25,115,75,.15); }

.danger-text { color:var(--danger); }
.btn-large { min-height:48px; padding-inline:22px; }
.field-error { display:block; margin-top:4px; font-size:.82rem; }

@media (max-width: 1280px) {
  .metrics-grid.five-columns { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .booking-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-grid.four-form-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
  .booking-alert-list { grid-template-columns:1fr; }
  .room-workspace-grid { grid-template-columns:1fr; }
  .room-create-panel { position:static; }
  .transport-route,
  .booking-date-route { grid-template-columns:minmax(0,1fr) 110px minmax(0,1fr); }
}
@media (max-width: 820px) {
  .metrics-grid.five-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .booking-card,
  .transport-card { grid-template-columns:72px minmax(0,1fr); }
  .booking-card-icon,
  .transport-icon-column { padding:13px 7px; }
  .booking-card-icon > span,
  .transport-icon-column > span:first-child { width:46px; height:46px; font-size:1.35rem; }
  .booking-card-main { padding:15px; }
  .booking-date-route,
  .transport-route { grid-template-columns:1fr; text-align:start; }
  .booking-route-line,
  .transport-route-line { min-height:32px; grid-template-columns:1fr; }
  .booking-route-line::before,
  .transport-route-line::before { top:50%; }
  .transport-stop:last-child { text-align:start; }
  .transport-form-route { grid-template-columns:1fr; }
  .transport-form-arrow { transform:rotate(90deg); justify-self:center; }
  .large-empty-state { grid-template-columns:1fr; text-align:center; }
  .large-empty-state img { margin:auto; }
}
@media (max-width: 600px) {
  .metrics-grid.five-columns { grid-template-columns:1fr; }
  .booking-page-heading { align-items:stretch; }
  .booking-page-heading .btn { width:100%; }
  .booking-card,
  .transport-card { grid-template-columns:1fr; }
  .booking-card-icon,
  .transport-icon-column { grid-template-columns:auto auto; justify-content:start; align-items:center; padding:10px 13px; }
  .booking-card-icon > span,
  .transport-icon-column > span:first-child { width:40px; height:40px; }
  .booking-card-head { align-items:start; }
  .booking-detail-grid { grid-template-columns:1fr; }
  .form-grid.four-form-columns { grid-template-columns:1fr; }
  .booking-filter-bar { grid-template-columns:1fr; }
  .room-card { grid-template-columns:28px minmax(0,1fr); }
  .room-card-head { flex-direction:column; }
  .ticket-table input,
  .ticket-table select { min-width:130px; }
}

/* ========================================================================
   OrganizeMe subscription, bulk administration, budget & savings foundation
   ======================================================================== */
.subscription-comparison-panel { background:linear-gradient(145deg,#fff,#f4fbfc); border-color:rgba(8,166,163,.23); }
.subscription-picker { margin:0; padding:18px; border:1px solid var(--border); border-radius:16px; background:#fbfefe; }
.subscription-picker legend { padding-inline:8px; color:var(--navy); font-weight:900; }
.subscription-picker > p { margin:0 0 14px; color:var(--muted); }
.subscription-tier-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.subscription-tier-card { position:relative; display:grid; gap:8px; min-height:145px; padding:18px; border:2px solid var(--border); border-radius:18px; background:#fff; overflow:hidden; transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.subscription-tier-card::before { content:""; position:absolute; inset:0 0 auto; height:6px; background:#7c98a9; }
.subscription-tier-card strong { color:var(--navy); font-size:1.18rem; }
.subscription-tier-card > span:not(.tier-card-check) { color:var(--muted); }
.subscription-tier-card small { margin-top:auto; color:var(--ink); font-weight:800; }
.subscription-tier-card input { position:absolute; opacity:0; pointer-events:none; }
.subscription-tier-card:has(input:checked) { transform:translateY(-2px); border-color:var(--gold); box-shadow:0 12px 30px rgba(8,166,163,.14); }
.subscription-tier-card.subscription-basic::before { background:#66889b; }
.subscription-tier-card.subscription-plus::before { background:linear-gradient(90deg,var(--navy-2),var(--gold)); }
.subscription-tier-card.subscription-ultra::before { background:linear-gradient(90deg,var(--navy),#4b44a3,var(--gold)); }
.tier-card-check { position:absolute; inset-block-start:14px; inset-inline-end:14px; width:27px; height:27px; display:grid; place-items:center; border-radius:50%; color:white; background:#a8b8c1; opacity:.35; }
.subscription-tier-card:has(input:checked) .tier-card-check { opacity:1; background:var(--gold); }
.duration-choice-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.duration-choice { position:relative; display:grid !important; gap:5px; padding:15px; border:2px solid var(--border); border-radius:15px; background:white; cursor:pointer; }
.duration-choice input { position:absolute; opacity:0; }
.duration-choice strong { color:var(--navy); }
.duration-choice:has(input:checked) { border-color:var(--navy-2); background:var(--info-soft); box-shadow:0 8px 20px rgba(5,72,132,.08); }
.pending-subscription-summary { display:grid; gap:4px; margin:18px 0; padding:16px; border:1px solid rgba(8,166,163,.26); border-radius:15px; background:var(--gold-soft); }
.pending-subscription-summary > span,.pending-subscription-summary small { color:var(--muted); }
.pending-subscription-summary strong { color:var(--navy); font-size:1.2rem; }
.pending-subscription-summary p { margin:5px 0 0; }

.subscription-dashboard-strip { display:grid; grid-template-columns:1.2fr repeat(3,minmax(0,1fr)); gap:1px; margin-bottom:22px; border:1px solid var(--border); border-radius:18px; overflow:hidden; background:var(--border); box-shadow:0 8px 24px rgba(5,72,132,.06); }
.subscription-dashboard-strip > div { display:grid; align-content:center; gap:2px; min-height:82px; padding:14px 17px; background:white; }
.subscription-dashboard-strip span { color:var(--muted); font-size:.78rem; font-weight:800; }
.subscription-dashboard-strip strong { color:var(--navy); }
.subscription-dashboard-strip small { color:var(--muted); }
.subscription-strip-tier { color:white; background:linear-gradient(135deg,var(--navy),var(--navy-2)) !important; }
.subscription-strip-tier span,.subscription-strip-tier strong { color:white; }
.subscription-dashboard-strip.subscription-plus .subscription-strip-tier { background:linear-gradient(135deg,var(--navy-2),var(--gold)) !important; }
.subscription-dashboard-strip.subscription-ultra .subscription-strip-tier { background:linear-gradient(135deg,var(--navy),#4b44a3,var(--gold)) !important; }
.quota-blocked-message { display:inline-flex; align-items:center; padding:10px 13px; border-radius:11px; color:var(--warning); background:var(--warning-soft); font-weight:800; }
.trip-quota-panel { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:17px; align-items:center; border-color:rgba(8,166,163,.28); background:linear-gradient(145deg,#fff,#f4fbfc); }
.quota-tier { display:grid; gap:2px; min-width:110px; }
.quota-tier span { color:var(--muted); font-size:.78rem; }
.quota-tier strong { color:var(--navy); font-size:1.28rem; }
.quota-meter { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.quota-meter > div { padding:11px 13px; border:1px solid var(--border); border-radius:13px; background:white; }
.quota-meter span,.mini-quota span { display:block; color:var(--muted); font-size:.78rem; }
.quota-meter strong { color:var(--navy); }
.mini-quota { display:flex; gap:7px; }
.mini-quota span { padding:5px 8px; border-radius:999px; background:var(--info-soft); color:var(--info); font-weight:800; }
.user-subscription-cell { display:grid; gap:3px; padding-inline-start:10px; border-inline-start:4px solid #809aa8; }
.user-subscription-cell.subscription-plus { border-color:var(--gold); }
.user-subscription-cell.subscription-ultra { border-color:#4b44a3; }
.user-subscription-cell strong { color:var(--navy); }
.user-subscription-cell small,.user-subscription-cell span { color:var(--muted); font-size:.77rem; }

.trip-delete-panel { margin-top:14px; padding:17px; border:1px solid #efc5cb; border-radius:16px; background:#fff7f8; }
.trip-delete-panel summary { color:var(--danger); font-weight:900; cursor:pointer; }
.trip-delete-panel form { margin-top:14px; }
.danger-zone { border-color:#efc5cb; background:linear-gradient(145deg,#fff,#fff6f7); }
.archive-details { border-top:1px dashed var(--border); padding-top:10px; }
.archive-details summary { cursor:pointer; color:var(--danger); font-weight:800; }

.admin-user-filter { grid-template-columns:minmax(220px,1fr) repeat(2,minmax(150px,.35fr)) auto auto; }
.selected-users-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:12px 0; padding:10px 13px; border-radius:12px; background:#f5fafb; }
.admin-users-table { min-width:1180px; }
.admin-user-actions { position:relative; }
.admin-user-actions > summary { width:max-content; padding:7px 10px; border:1px solid var(--border); border-radius:9px; background:white; color:var(--navy); font-weight:800; cursor:pointer; }
.admin-user-action-grid { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(270px,1.2fr); gap:15px; min-width:min(620px,75vw); margin-top:10px; padding:14px; border:1px solid var(--border); border-radius:15px; background:#fff; box-shadow:var(--shadow); }
.compact-admin-form { display:grid; gap:9px; padding:12px; border-radius:13px; background:#f7fbfc; }
.compact-admin-form label { display:grid; gap:4px; }
.admin-bulk-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.broadcast-list { display:grid; gap:10px; }
.broadcast-list article { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 14px; padding:14px; border:1px solid var(--border); border-radius:14px; background:#fbfefe; }
.broadcast-list article p { grid-column:1/-1; margin:0; color:var(--muted); }
.broadcast-list small { display:block; color:var(--muted); }

.finance-overview-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr); gap:20px; align-items:start; }
.finance-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.compact-metrics .metric-card { padding:15px; }
.category-budget-list,.balance-list,.suggested-transfer-list,.settlement-list,.contribution-list { display:grid; gap:9px; }
.category-budget-list > div,.balance-row,.suggested-transfer-list > article,.settlement-list > article,.contribution-list > article { display:grid; align-items:center; gap:10px; padding:12px 13px; border:1px solid var(--border); border-radius:13px; background:#fbfefe; }
.category-budget-list > div { grid-template-columns:minmax(0,1fr) auto; }
.category-budget-list span,.balance-row span { overflow:hidden; text-overflow:ellipsis; }
.balance-row { grid-template-columns:minmax(130px,1fr) repeat(4,minmax(80px,.45fr)); }
.balance-row > div { display:grid; gap:1px; }
.balance-row small { color:var(--muted); }
.suggested-transfer-list > article { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto; }
.suggested-transfer-list strong { color:var(--navy); }
.finance-two-column { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.finance-table { min-width:1120px; }
.finance-table td { vertical-align:middle; }
.traveler-mini { display:inline-flex; align-items:center; gap:7px; }
.traveler-mini::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--gold); }
.calculated-money { display:flex; align-items:center; gap:7px; min-height:44px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#f7fbfc; }
.calculated-money strong { color:var(--navy); font-size:1.12rem; }
.expense-split-section { padding:16px; border:1px solid rgba(8,166,163,.25); border-radius:17px; background:#f7fdfd; }
.split-method-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-bottom:13px; }
.split-method-grid label { position:relative; padding:11px; border:1px solid var(--border); border-radius:12px; background:white; text-align:center; cursor:pointer; }
.split-method-grid input { position:absolute; opacity:0; }
.split-method-grid label:has(input:checked) { border-color:var(--gold); background:var(--gold-soft); color:#047d79; font-weight:900; }
.expense-traveler-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.expense-traveler-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 10px; align-items:center; padding:11px; border:1px solid var(--border); border-radius:13px; background:white; }
.expense-traveler-card input[type="checkbox"] { width:18px; height:18px; }
.split-value-field { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }
.split-value-field input { min-width:0; }
.savings-workspace { display:grid; gap:18px; }
.savings-progress-card { padding:18px; border-radius:17px; color:white; background:linear-gradient(135deg,var(--navy),var(--navy-2),var(--gold)); }
.savings-progress-card strong { display:block; font-size:2rem; }
.savings-progress-bar { height:11px; margin:13px 0; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.25); }
.savings-progress-bar > span { display:block; height:100%; border-radius:inherit; background:#fff; }
.savings-plan-form,.savings-contribution-grid { display:grid; gap:12px; }
.savings-contribution-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.settlement-list > article,.contribution-list > article { grid-template-columns:minmax(0,1fr) auto; }
.archive-list { display:grid; gap:8px; }
.archive-list > article { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px dashed var(--border); border-radius:12px; background:#fafcfd; }

@media (max-width: 1260px) {
  .subscription-dashboard-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .finance-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .expense-traveler-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .savings-contribution-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
  .subscription-tier-grid,.duration-choice-grid { grid-template-columns:1fr; }
  .trip-quota-panel,.finance-overview-grid,.finance-two-column,.admin-bulk-grid { grid-template-columns:1fr; }
  .admin-user-filter { grid-template-columns:1fr 1fr; }
  .admin-user-action-grid { grid-template-columns:1fr; min-width:min(420px,78vw); }
  .split-method-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .subscription-dashboard-strip,.quota-meter,.finance-metrics,.expense-traveler-grid,.savings-contribution-grid { grid-template-columns:1fr; }
  .admin-user-filter { grid-template-columns:1fr; }
  .selected-users-toolbar { align-items:flex-start; flex-direction:column; }
  .balance-row { grid-template-columns:1fr 1fr; }
  .suggested-transfer-list > article { grid-template-columns:1fr auto 1fr; }
  .suggested-transfer-list > article > :last-child { grid-column:1/-1; }
  .split-method-grid { grid-template-columns:1fr; }
  .archive-list > article { align-items:flex-start; flex-direction:column; }
}

/* Finance finishing rules */
.positive-money { color:var(--success) !important; }
.negative-money { color:var(--danger) !important; }
.suggested-transfer-list > div,.archive-list > div { display:grid; align-items:center; gap:10px; padding:12px 13px; border:1px solid var(--border); border-radius:13px; background:#fbfefe; }
.suggested-transfer-list > div { grid-template-columns:minmax(0,1fr) auto; }
.suggested-transfer-list > div > span { display:flex; align-items:center; gap:9px; min-width:0; }
.archive-list > div { grid-template-columns:minmax(0,1fr) auto; }
.seven-columns { grid-template-columns:repeat(7,minmax(0,1fr)); }
.seven-shortcuts { grid-template-columns:repeat(7,minmax(0,1fr)); }
@media (max-width:1400px){.seven-columns{grid-template-columns:repeat(4,minmax(0,1fr));}.seven-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media (max-width:900px){.seven-columns,.seven-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:700px){.suggested-transfer-list > div,.archive-list > div{grid-template-columns:1fr;}.seven-columns,.seven-shortcuts{grid-template-columns:1fr;}}

/* Finance inline editors */
.finance-record-card { position:relative; }
.finance-record-actions { justify-content:flex-end; align-items:center; }
.finance-inline-editor { position:static; }
.finance-inline-editor[open] { grid-column:1 / -1; width:100%; }
.finance-inline-form { display:grid; gap:10px; width:min(760px, 100%); margin-top:10px; padding:14px; border:1px solid var(--border); border-radius:14px; background:var(--surface, #fff); box-shadow:0 14px 36px rgba(3,56,103,.10); }
.finance-inline-form label { display:grid; gap:5px; }
.finance-inline-form > .btn { justify-self:start; }
@media (max-width: 780px) {
  .settlement-list > article.finance-record-card,
  .contribution-list > article.finance-record-card { grid-template-columns:1fr; }
  .finance-record-actions { justify-content:flex-start; }
}


/* ==========================================================================
   OrganizeMe System v0.99.0 — release-candidate workspace
   ========================================================================== */
.guest-intro-v099 { display:flex; flex-direction:column; align-items:center; }
.guest-intro-v099 .guest-logo-picture { margin:0 auto 4px !important; line-height:0; }
.guest-intro-v099 .guest-logo-balanced { width:min(390px,86vw) !important; max-height:290px; object-fit:contain; }
.guest-slogan { display:block; width:100%; margin:0 auto 16px !important; color:var(--brand-blue-deep) !important; font-size:clamp(.78rem,1.2vw,1rem) !important; font-weight:800; line-height:1.35; white-space:nowrap; letter-spacing:.01em; }
@media(max-width:480px){.guest-slogan{white-space:normal;max-width:320px}.guest-intro-v099 .guest-logo-balanced{width:min(300px,90vw)}}

.nav-count,.topbar-alert-link span { display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font-size:.7rem;font-weight:900; }
.topbar-alert-link { position:relative;display:inline-flex;align-items:center;gap:3px;font-size:1.15rem; }
.metric-small { font-size:.95rem !important; overflow-wrap:anywhere; }
.metric-danger { background:linear-gradient(145deg,#fff,#fff0f2);border-color:#efc5cb; }
.form-grid { display:grid; gap:14px; }
.v099-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.four-field-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.span-2 { grid-column:span 2; }
.span-all { grid-column:1/-1; }
.form-actions,.record-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.settings-sections { display:grid;gap:0; }
.sticky-form-actions { position:sticky;bottom:14px;z-index:8;display:flex;justify-content:flex-end;padding:12px 16px;border:1px solid var(--border);border-radius:15px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);box-shadow:var(--shadow); }
.record-meta { display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.8rem; }
.v099-card-list { display:grid;gap:15px; }
.announcement-admin-card { display:grid;gap:12px;padding:15px;border:1px solid var(--border);border-radius:16px;background:#fbfefe; }
.announcement-preview { min-height:44px;display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:10px;overflow:hidden; }
.announcement-preview.announcement-info,.dashboard-announcement.tone-info{background:#eaf5fb;color:#075a91}
.announcement-preview.announcement-success,.dashboard-announcement.tone-success{background:#e9f7ef;color:#19734b}
.announcement-preview.announcement-warning,.dashboard-announcement.tone-warning{background:#fff5d8;color:#9a6100}
.announcement-preview.announcement-danger,.dashboard-announcement.tone-danger{background:#fdecef;color:#a72d35}
.announcement-stack { display:grid;gap:8px;margin-bottom:16px; }
.dashboard-announcement { position:relative;display:flex;align-items:center;min-height:42px;padding:8px 48px 8px 14px;border:1px solid currentColor;border-radius:12px;overflow:hidden;font-size:.9rem; }
[dir="ltr"] .dashboard-announcement { padding:8px 14px 8px 48px; }
.announcement-track { display:flex;align-items:center;gap:12px;width:max-content;min-width:100%; }
.dashboard-announcement.mode-marquee .announcement-track { animation:organize-marquee-ar 22s linear infinite; }
[dir="ltr"] .dashboard-announcement.mode-marquee .announcement-track { animation-name:organize-marquee-en; }
.dashboard-announcement.mode-pulse { animation:organize-safe-pulse 2.4s ease-in-out infinite; }
.announcement-dismiss { position:absolute;inset-inline-end:11px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:50%;background:rgba(255,255,255,.6);color:inherit;font-size:1.2rem; }
@keyframes organize-marquee-ar{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@keyframes organize-marquee-en{from{transform:translateX(100%)}to{transform:translateX(-100%)}}
@keyframes organize-safe-pulse{0%,100%{opacity:1;box-shadow:none}50%{opacity:.74;box-shadow:0 0 0 4px rgba(8,166,163,.08)}}
@media(prefers-reduced-motion:reduce){.dashboard-announcement.mode-marquee .announcement-track,.dashboard-announcement.mode-pulse{animation:none!important}}

.chart-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }
.three-chart-columns { grid-template-columns:repeat(3,minmax(0,1fr)); }
.chart-card { position:relative;min-height:310px;padding:16px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(145deg,#fff,#f7fcfd); }
.chart-card h3 { margin:0 0 10px;color:var(--navy);font-size:1rem; }
.chart-card canvas { width:100%!important;height:245px!important; }
.chart-wide { margin-top:18px;min-height:340px; }
.chart-wide canvas { height:280px!important; }

.template-picker { display:grid;gap:15px; }
.template-picker fieldset { border:1px solid var(--border);border-radius:14px;padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px; }
.template-picker legend { padding:0 8px;color:var(--navy);font-weight:900; }
.select-card { position:relative;display:flex;gap:9px;align-items:flex-start;padding:10px;border:1px solid var(--border);border-radius:11px;background:#fff;cursor:pointer; }
.select-card input { width:17px;height:17px;margin-top:3px; }
.select-card span { display:grid;gap:2px; }
.select-card small { line-height:1.4; }
.preparation-progress { display:grid;gap:10px;background:linear-gradient(135deg,#fff,#eefbfa); }
.preparation-progress > div:first-child { display:flex;justify-content:space-between;align-items:center; }
.preparation-progress strong { color:var(--navy);font-size:1.8rem; }
.progress-track { height:12px;border-radius:999px;background:#deeaed;overflow:hidden; }
.progress-track span { display:block;height:100%;border-radius:inherit;background:var(--brand-gradient); }
.task-board { display:grid;gap:10px; }
.trip-task-card { display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:10px;align-items:start;padding:14px;border:1px solid var(--border);border-inline-start:5px solid #718693;border-radius:14px;background:#fff; }
.trip-task-card.priority-high{border-inline-start-color:var(--warning)}.trip-task-card.priority-urgent{border-inline-start-color:var(--danger)}.trip-task-card.priority-low{border-inline-start-color:var(--success)}
.trip-task-card.dragging { opacity:.42; }
.drag-handle { cursor:grab;color:var(--muted);font-weight:900;user-select:none; }
.task-card-main h3 { margin:6px 0 2px;color:var(--navy); }
.task-card-main p { margin:0 0 6px;color:var(--muted); }
.task-editor[open] { grid-column:2/-1; }
.task-editor form { margin-top:10px;padding:12px;border:1px solid var(--border);border-radius:13px;background:#f8fcfd; }

.document-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
.document-card { display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;padding:15px;border:1px solid var(--border);border-radius:16px;background:#fff; }
.document-card.is-sensitive { border-color:#efc5cb;background:#fff9fa; }
.document-icon { width:50px;height:50px;display:grid;place-items:center;border-radius:13px;background:var(--info-soft);color:var(--navy);font-size:.78rem;font-weight:900; }
.document-card h3 { margin:5px 0;color:var(--navy);overflow-wrap:anywhere; }
.document-card p { margin:0;color:var(--muted); }
.document-card small { display:block; }
.document-card .record-actions { grid-column:1/-1; }

.alert-center-list { display:grid;gap:12px; }
.system-alert-card { display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;padding:15px;border:1px solid var(--border);border-inline-start:5px solid var(--info);border-radius:15px;background:#fff; }
.system-alert-card.severity-warning{border-inline-start-color:var(--warning)}.system-alert-card.severity-danger{border-inline-start-color:var(--danger)}.system-alert-card.severity-success{border-inline-start-color:var(--success)}
.system-alert-card.is-read { opacity:.72; }
.alert-symbol { width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--info-soft);font-weight:900; }
.system-alert-card h2 { margin:5px 0;color:var(--navy);font-size:1.1rem; }
.system-alert-card p { margin:0;color:var(--muted); }

.support-thread-list { display:grid;gap:7px; }
.support-thread-row { display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--ink); }
.support-thread-row:hover { text-decoration:none;border-color:var(--brand-teal);box-shadow:0 8px 18px rgba(5,72,132,.07); }
.support-thread-row.is-unread { background:#f1fbfb; }
.support-thread-row h3 { margin:3px 0;color:var(--navy);font-size:1rem; }
.support-thread-row p { margin:0;color:var(--muted);font-size:.84rem; }
.support-thread-row > div:last-child { display:grid;text-align:end; }
.support-priority { height:42px;border-radius:999px;background:#8096a0; }
.support-priority.priority-high{background:var(--warning)}.support-priority.priority-urgent{background:var(--danger)}.support-priority.priority-low{background:var(--success)}
.support-workspace { display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start; }
.support-conversation { display:grid;gap:12px; }
.support-message { max-width:86%;padding:14px;border:1px solid var(--border);border-radius:16px;background:#f8fcfd; }
.support-message.direction-outbound { margin-inline-start:auto;background:#e9fbfa;border-color:rgba(8,166,163,.28); }
.support-message-head { display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:.82rem;color:var(--muted); }
.support-message-body { white-space:pre-wrap;overflow-wrap:anywhere; }
.support-attachments { display:flex;gap:7px;flex-wrap:wrap;margin-top:10px; }
.support-reply-form { margin-top:15px;padding-top:15px;border-top:1px solid var(--border); }
.support-thread-settings { position:sticky;top:96px; }

.map-workspace { display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start; }
.trip-map { width:100%;height:min(66vh,690px);min-height:430px;border-radius:15px;z-index:1; }
.map-side-panel { position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:auto; }
.map-point-list,.map-search-results { display:grid;gap:7px; }
.map-point-list a { display:grid;grid-template-columns:13px minmax(0,1fr);gap:9px;align-items:center;padding:8px;border-radius:9px;color:var(--ink); }
.map-point-list a:hover { background:var(--canvas);text-decoration:none; }
.map-point-list small { display:block;color:var(--muted); }
.map-point-dot { width:11px;height:11px;border-radius:50%;background:var(--navy); }
.map-point-dot.type-activity{background:var(--brand-teal)}.map-point-dot.type-accommodation{background:#8b5fbf}.map-point-dot.type-transport_departure,.map-point-dot.type-transport_arrival{background:#e4a522}
.map-search-result { width:100%;padding:9px;text-align:start;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--ink); }
.map-search-result:hover { border-color:var(--brand-teal);background:#f0fbfb; }

.export-card-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.export-card { display:grid;align-content:start;gap:9px;padding:20px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(145deg,#fff,#f7fcfd);min-height:230px; }
.export-card > span:first-child { width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--accent-soft);color:var(--navy);font-weight:900; }
.export-card h2 { margin:0;color:var(--navy); }
.export-card p { margin:0;color:var(--muted); }
.export-card .btn { align-self:end; }
.import-upload-panel { max-width:760px; }
.definition-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.definition-grid > div { display:grid;gap:3px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#fafcfd; }
.definition-grid span { color:var(--muted);font-size:.8rem; }
.json-preview { max-height:420px;overflow:auto;padding:14px;border-radius:12px;background:#102c3d;color:#e8fbfa;direction:ltr;text-align:left;white-space:pre-wrap; }

.exchange-rate-widget { display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 11px;border:1px dashed rgba(8,166,163,.5);border-radius:12px;background:#f3fcfc; }
.exchange-rate-widget small { flex:1;min-width:180px; }
.sensitive-traveler-details { padding:12px;border:1px solid #efc5cb;border-radius:13px;background:#fff8f9; }
.sensitive-traveler-details summary { cursor:pointer;color:var(--danger);font-weight:900; }

@media(max-width:1200px){
 .three-chart-columns,.document-grid,.export-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .template-picker fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
 .support-workspace,.map-workspace{grid-template-columns:1fr}
 .support-thread-settings,.map-side-panel{position:static;max-height:none}
 .four-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 .v099-form-grid,.four-field-grid,.chart-grid,.three-chart-columns,.document-grid,.export-card-grid,.definition-grid,.template-picker fieldset{grid-template-columns:1fr}
 .span-2{grid-column:auto}
 .trip-task-card{grid-template-columns:24px minmax(0,1fr)}
 .trip-task-card>form,.trip-task-card>details{grid-column:2}
 .system-alert-card{grid-template-columns:36px minmax(0,1fr)}
 .system-alert-card .record-actions{grid-column:2}
 .support-thread-row{grid-template-columns:7px minmax(0,1fr)}
 .support-thread-row>div:last-child{grid-column:2;text-align:start}
 .support-message{max-width:100%}
}

/* v0.99.2 stability, localization, countdown and live-refresh improvements. */
.live-clock{display:grid;gap:1px;min-width:132px;padding:5px 10px;border:1px solid rgba(5,72,132,.12);border-radius:12px;background:#f7fcfd;color:var(--brand-blue);text-align:center;line-height:1.1}
.live-clock span{font-size:.68rem;color:var(--muted);white-space:nowrap}.live-clock strong{font-size:.82rem;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.poll-status-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:8px 12px;border:1px solid rgba(8,166,163,.18);border-radius:11px;background:#f5fcfc;color:var(--muted);font-size:.78rem}
.poll-status-bar span{font-weight:800;color:var(--brand-blue)}.poll-pagination{margin-top:14px}
.page-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

.trip-countdown{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin-top:8px;padding:6px 10px;border-radius:999px;background:#edf5fa;color:var(--brand-blue);font-size:.78rem;font-weight:900}
.trip-countdown-large{margin:2px 0 10px;padding:8px 13px;font-size:.9rem}
.trip-timing-upcoming,.trip-timing-starts_today{background:#e4f9f7;color:#067c7a}.trip-timing-ongoing,.trip-timing-ends_today{background:#fff4d7;color:#8b5c00}.trip-timing-ended{background:#f1f3f5;color:#687783}.trip-timing-unscheduled{background:#edf2f6;color:#687783}

.dashboard-announcement.mode-marquee .announcement-track,.dashboard-announcement.mode-pulse{animation:none}
.dashboard-announcement.mode-marquee{padding-inline:48px;isolation:isolate}
.dashboard-announcement.mode-marquee .announcement-track{min-width:max-content;width:max-content;white-space:nowrap;will-change:transform}
.dashboard-announcement.mode-marquee.is-motion-ready .announcement-track{animation:organize-marquee-ar-v0992 var(--announcement-duration,18s) linear infinite}
[dir="ltr"] .dashboard-announcement.mode-marquee.is-motion-ready .announcement-track{animation-name:organize-marquee-en-v0992}
.dashboard-announcement.mode-pulse.is-motion-ready{animation:organize-safe-pulse-v0992 2.8s ease-in-out infinite;will-change:box-shadow,transform}
@keyframes organize-marquee-ar-v0992{0%{transform:translateX(-115%)}100%{transform:translateX(115%)}}
@keyframes organize-marquee-en-v0992{0%{transform:translateX(115%)}100%{transform:translateX(-115%)}}
@keyframes organize-safe-pulse-v0992{0%,100%{box-shadow:0 0 0 0 rgba(8,166,163,0);transform:scale(1)}50%{box-shadow:0 0 0 5px rgba(8,166,163,.12),0 10px 22px rgba(5,72,132,.08);transform:scale(1.006)}}
@media(prefers-reduced-motion:reduce){.dashboard-announcement.mode-marquee.is-motion-ready .announcement-track{animation-duration:32s!important}.dashboard-announcement.mode-pulse.is-motion-ready{animation-duration:5s!important}}

.alert-center-list{display:grid;gap:10px}.system-alert-card[hidden]{display:none}.system-alert-card .record-actions{align-self:center}.system-alert-card.is-read .badge-accent{display:none}
.support-conversation [data-support-messages]{display:grid;gap:10px;max-height:68vh;overflow:auto;padding-inline-end:4px;scrollbar-gutter:stable}
.budget-chart-panel .chart-card canvas{display:block}.budget-chart-panel .chart-wide{margin-top:14px}

@media(max-width:900px){.live-clock{order:5;width:100%;grid-template-columns:1fr auto;align-items:center;text-align:start}.topbar-actions{justify-content:flex-end}.trip-countdown{white-space:normal}}
@media(max-width:600px){.page-heading-actions{width:100%}.page-heading-actions form,.page-heading-actions .btn{flex:1}.system-alert-card{grid-template-columns:34px minmax(0,1fr)}.system-alert-card .record-actions{grid-column:2}.live-clock{display:none}}
.guest-header-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.guest-live-clock{min-width:150px}
@media(max-width:620px){.guest-live-clock{display:none}.guest-header-tools{margin-inline-start:auto}}

/* v0.99.2 motion fallback: keep announcements visibly active while remaining slow and subtle. */
@media (prefers-reduced-motion: reduce) {
  .dashboard-announcement.mode-marquee.is-motion-ready .announcement-track {
    animation: organize-marquee-ar-v0992 36s linear infinite !important;
  }
  [dir="ltr"] .dashboard-announcement.mode-marquee.is-motion-ready .announcement-track {
    animation-name: organize-marquee-en-v0992 !important;
  }
  .dashboard-announcement.mode-pulse.is-motion-ready {
    animation: organize-safe-pulse-v0992 6s ease-in-out infinite !important;
  }
}


/* =========================================================
   OrganizeMe v0.99.3 — Excel-style unified financial vision
   ========================================================= */
.financial-vision-summary{
  position:relative;
  overflow:hidden;
  margin-block:18px;
  padding:24px;
  border:1px solid rgba(5,72,132,.14);
  border-radius:22px;
  background:
    radial-gradient(circle at 8% 10%,rgba(25,185,179,.13),transparent 28%),
    linear-gradient(135deg,#fff 0%,#f4fbfc 100%);
  box-shadow:0 16px 45px rgba(5,72,132,.08)
}
.financial-vision-summary::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(180deg,#054884,#19b9b3)
}
.financial-vision-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px
}
.financial-vision-heading h2{margin:4px 0 6px;color:#054884}
.financial-vision-heading p{margin:0;color:#647987;max-width:820px}
.financial-kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}
.financial-kpi{
  min-height:126px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:18px;
  border:1px solid #d9eaf0;
  border-radius:17px;
  background:#fff
}
.financial-kpi span{font-size:.86rem;color:#607787;font-weight:700}
.financial-kpi strong{font-size:clamp(1.35rem,2.1vw,2rem);line-height:1;color:#054884;font-variant-numeric:tabular-nums}
.financial-kpi small{color:#7a8f9b}
.financial-kpi.kpi-current{border-color:rgba(8,166,163,.45);box-shadow:inset 0 3px 0 #08a6a3}
.financial-kpi.kpi-expected{border-color:rgba(5,72,132,.38);background:linear-gradient(135deg,#f7fbff,#eefbfb)}
.financial-kpi.kpi-warning{border-color:rgba(228,165,34,.45);box-shadow:inset 0 3px 0 #e4a522}
.financial-kpi.kpi-positive{border-color:rgba(58,136,98,.38);background:#f4fbf7}
.financial-kpi.kpi-positive strong{color:#2c7552}
.financial-kpi.kpi-negative{border-color:rgba(213,93,110,.4);background:#fff7f8}
.financial-kpi.kpi-negative strong{color:#b74458}
.financial-formula,
.financial-dashboard-formula{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
  padding:13px 16px;
  border:1px dashed rgba(5,72,132,.25);
  border-radius:14px;
  background:rgba(255,255,255,.82);
  color:#526d7c;
  text-align:center
}
.financial-formula b,
.financial-dashboard-formula b{color:#08a6a3;font-size:1.25rem}
.financial-formula strong,
.financial-dashboard-formula strong{color:#054884}
.financial-vision-charts .chart-card,
.financial-dashboard-summary .chart-card{min-height:320px}
.two-chart-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.unified-financial-ledger .finance-table td:nth-child(n+4),
.unified-financial-ledger .finance-table th:nth-child(n+4){text-align:end;font-variant-numeric:tabular-nums}
.unified-financial-ledger td strong{display:block;color:#174f73}
.unified-financial-ledger td small{display:block;margin-top:3px;color:#78909c}
.financial-baseline-note{
  display:block;
  margin-top:12px;
  padding:10px 12px;
  border-radius:10px;
  background:#f1f8fa;
  color:#627b88
}
.savings-vision-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:16px 0
}
.savings-vision-grid article{
  padding:15px;
  border:1px solid #dcebf0;
  border-radius:14px;
  background:#fafdfe
}
.savings-vision-grid span,
.savings-vision-grid small{display:block;color:#6c828e}
.savings-vision-grid strong{display:block;margin:5px 0;color:#054884;font-size:1.35rem;font-variant-numeric:tabular-nums}
.savings-plan-form label small{display:block;margin-top:5px;color:#6f8793}
.financial-dashboard-summary{
  border-color:rgba(8,166,163,.22);
  background:
    radial-gradient(circle at 95% 0,rgba(8,166,163,.08),transparent 30%),
    #fff
}
.financial-dashboard-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px
}
.financial-dashboard-kpis article{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:110px;
  justify-content:center;
  padding:16px;
  border:1px solid #dcebf0;
  border-radius:15px;
  background:#f9fcfd
}
.financial-dashboard-kpis span{font-size:.82rem;color:#657d89;font-weight:700}
.financial-dashboard-kpis strong{font-size:1.45rem;color:#054884;font-variant-numeric:tabular-nums}
.financial-dashboard-kpis small{color:#7b909b}
.financial-dashboard-summary .panel-heading .eyebrow{display:block;margin-bottom:4px}
.financial-dashboard-summary .chart-grid{margin-top:16px}
.positive-money{color:#2c7552!important}
.negative-money{color:#b74458!important}
@media(max-width:1100px){
  .financial-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .financial-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .financial-vision-summary{padding:18px}
  .financial-vision-heading{flex-direction:column}
  .financial-kpi-grid,
  .savings-vision-grid,
  .two-chart-columns{grid-template-columns:1fr}
  .financial-dashboard-kpis{grid-template-columns:1fr 1fr}
  .financial-vision-charts .chart-card,
  .financial-dashboard-summary .chart-card{min-height:280px}
}
@media(max-width:480px){
  .financial-dashboard-kpis{grid-template-columns:1fr}
  .financial-kpi{min-height:108px}
}


/* v0.99.4 support templates, trip brand, itinerary matrix, health and monthly savings */
.trip-hero-mark{display:flex;align-items:center;justify-content:center;min-width:280px;overflow:visible;padding:18px}.trip-hero-mark picture{display:block;width:100%;max-width:310px}.trip-hero-mark img{display:block;width:100%;height:auto;max-height:150px;object-fit:contain;object-position:center}
.support-template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}.support-template-card{border:1px solid var(--border-color,#d7e8ef);border-radius:16px;padding:18px;background:#fbfeff}.support-template-card h3{margin:.55rem 0 .2rem}.support-template-editor{margin-top:14px}.support-template-create{margin-top:20px}.support-template-variable-help{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:12px;background:#eef8fa}.support-template-variable-help code{direction:ltr;background:#fff;border:1px solid #d3e6ec;border-radius:7px;padding:2px 7px}.support-response-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.support-response-metrics>div{padding:12px;border-radius:12px;background:#f3fafc}.support-response-metrics span,.support-response-metrics strong{display:block}
.itinerary-matrix-panel{padding:0;overflow:hidden}.itinerary-matrix-scroll{overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:12px}.itinerary-matrix{min-width:calc(245px + var(--matrix-columns)*230px)}.itinerary-matrix-header,.itinerary-matrix-row{display:grid;grid-template-columns:245px minmax(calc(var(--matrix-columns)*230px),1fr)}.itinerary-matrix-header{position:sticky;top:0;z-index:4;background:#eef8fb;border-bottom:1px solid #cfe4eb}.matrix-day-heading{position:sticky;right:0;z-index:5;padding:14px 18px;font-weight:800;background:#e4f3f7}.matrix-slot-headings,.matrix-activity-list{display:grid;grid-template-columns:repeat(var(--matrix-columns),minmax(220px,1fr));gap:10px;padding:10px}.matrix-slot-headings span{text-align:center;font-size:.78rem;color:#587485;font-weight:700}.itinerary-matrix-row{border-bottom:1px solid #dcebf0;background:#fff}.itinerary-matrix-row:nth-child(even){background:#f9fcfd}.matrix-day-cell{position:sticky;right:0;z-index:3;display:flex;align-items:flex-start;gap:12px;padding:16px;background:inherit;border-left:1px solid #dcebf0;box-shadow:-8px 0 18px rgba(5,72,132,.04)}.matrix-day-number{display:grid;place-items:center;min-width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#054884,#0499a2);color:white;font-weight:900}.matrix-day-cell strong,.matrix-day-cell small,.matrix-day-cell span{display:block}.matrix-day-cell details{margin-inline-start:auto}.matrix-day-edit{position:absolute;z-index:20;width:300px;background:white;padding:14px;border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.18)}.matrix-activity-list{align-items:stretch;min-height:190px}.matrix-activity-card{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px;border:1px solid #cfe4eb;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(5,72,132,.07);cursor:grab}.matrix-activity-card.dragging{opacity:.42;transform:scale(.98)}.matrix-activity-card.has-conflict{border-color:#e45757}.matrix-activity-card h3{font-size:1rem;margin:0;line-height:1.35}.matrix-activity-head{display:flex;align-items:center;gap:6px}.matrix-activity-head .badge{margin-inline-start:auto}.matrix-activity-time{font-weight:900;color:#054884;direction:ltr;text-align:start}.matrix-activity-time small{font-weight:600}.matrix-activity-location{margin:0;color:#607b8b;min-height:2.5em}.matrix-activity-meta{display:flex;gap:8px;margin-top:auto;font-size:.78rem;color:#59717f}.matrix-quick-edit{border-top:1px solid #e3eef2;padding-top:7px}.matrix-quick-edit summary{cursor:pointer;color:#057f89;font-weight:700}.matrix-quick-edit form{position:absolute;z-index:30;inset-inline-start:8px;inset-inline-end:8px;top:52px;background:white;border:1px solid #bcdbe4;border-radius:12px;padding:12px;box-shadow:0 12px 30px rgba(0,0,0,.18)}.matrix-empty-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:170px;border:2px dashed #b8d9e2;border-radius:14px;color:#62808f;text-decoration:none;background:rgba(240,250,252,.65)}.matrix-empty-slot:hover,.matrix-activity-list.drag-target .matrix-empty-slot{border-color:#08a6a3;background:#e6fbfa;color:#047f86}.matrix-empty-slot>span{font-size:1.8rem}.matrix-activity-list.is-saving{opacity:.65}.matrix-activity-list.drag-target{background:#effcfb;border-radius:12px}
.health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:15px}.health-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border:1px solid #d8e8ee;border-radius:15px;background:white}.health-check-name{min-width:0}.health-check-name span,.health-check-name small{display:block}.health-check-name span{font-weight:800;margin-bottom:5px}.health-check-name small{color:#6b8391;overflow-wrap:anywhere}.health-result-badge{flex:0 0 auto;padding:7px 13px;border-radius:999px}.health-ok .health-result-badge{background:#e4f8ed;color:#167744}.health-fail .health-result-badge{background:#ffe8e8;color:#a62424}.health-last-check{color:#67808f;font-size:.9rem}
.monthly-savings-schedule{margin:22px 0;padding:18px;border:1px solid #d5e8ee;border-radius:18px;background:#fafeff}.monthly-savings-totals{display:flex;flex-wrap:wrap;gap:10px}.monthly-savings-totals span{padding:7px 10px;border-radius:10px;background:white;border:1px solid #dbeaf0}.monthly-savings-table{overflow-x:auto}.monthly-savings-head,.monthly-savings-row{display:grid;grid-template-columns:minmax(130px,1.2fr) repeat(4,minmax(110px,1fr)) minmax(240px,1.6fr);gap:10px;align-items:center;min-width:950px;padding:10px}.monthly-savings-head{font-weight:800;color:#4e6d7d;border-bottom:1px solid #d5e5eb}.monthly-savings-row{border-bottom:1px solid #e2edf1}.monthly-savings-row input{width:100%}.monthly-savings-actions{display:flex;align-items:center;gap:7px}.positive-number{color:#13824a}.negative-number{color:#b33838}.check-row.compact{display:inline-flex;gap:4px;margin:0}
@media(max-width:900px){.trip-hero-mark{min-width:0}.trip-hero-mark picture{max-width:220px}.itinerary-matrix{min-width:0}.itinerary-matrix-header{display:none}.itinerary-matrix-row{display:block;margin:12px;border:1px solid #d6e8ee;border-radius:16px;overflow:hidden}.matrix-day-cell{position:static;border:0;box-shadow:none}.matrix-activity-list{display:flex;overflow-x:auto;min-height:auto}.matrix-activity-card,.matrix-empty-slot{flex:0 0 245px;min-height:180px}.monthly-savings-head{display:none}.monthly-savings-row{display:grid;grid-template-columns:1fr 1fr;min-width:0;border:1px solid #d8e8ee;border-radius:13px;margin:10px 0}.monthly-savings-actions{grid-column:1/-1}}


/* =========================================================
   OrganizeMe v0.99.5 — support reply, compact matrix, localized mobility and configurable announcements
   ========================================================= */
.itinerary-matrix-heading{align-items:flex-start;gap:18px}.matrix-column-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.matrix-column-controls label{display:grid;gap:5px;min-width:150px;color:var(--muted);font-size:.78rem;font-weight:800}.matrix-column-controls input{width:150px;min-height:40px}.matrix-column-controls>small{max-width:270px;color:var(--muted);line-height:1.45}
.itinerary-matrix{min-width:calc(220px + var(--matrix-columns)*198px)}.itinerary-matrix-header,.itinerary-matrix-row{grid-template-columns:220px minmax(calc(var(--matrix-columns)*198px),1fr)}.matrix-day-heading{padding:11px 14px}.matrix-slot-headings,.matrix-activity-list{grid-template-columns:repeat(var(--matrix-columns),minmax(188px,1fr));gap:8px;padding:8px}.matrix-day-cell{gap:9px;padding:12px}.matrix-day-number{min-width:36px;height:36px;border-radius:11px}.matrix-activity-list{min-height:154px}.matrix-activity-card{gap:6px;padding:9px;border-radius:12px;min-height:146px;background:var(--activity-tint,#fff);border-color:var(--activity-border,#cfe4eb);box-shadow:0 4px 12px rgba(5,72,132,.06)}.matrix-activity-card h3{font-size:.9rem}.matrix-activity-location{min-height:2em;font-size:.78rem}.matrix-activity-meta{font-size:.72rem}.matrix-empty-slot{min-height:142px;border-radius:12px}.matrix-empty-slot>span{font-size:1.45rem}
.matrix-activity-card[data-color-index="1"]{--activity-tint:#f2f9ff;--activity-border:#b9d9f0}.matrix-activity-card[data-color-index="2"]{--activity-tint:#effcfb;--activity-border:#b6e6df}.matrix-activity-card[data-color-index="3"]{--activity-tint:#fff9ed;--activity-border:#efd8a5}.matrix-activity-card[data-color-index="4"]{--activity-tint:#f8f4ff;--activity-border:#d8c8ef}.matrix-activity-card[data-color-index="5"]{--activity-tint:#fff2f5;--activity-border:#edc3cf}.matrix-activity-card[data-color-index="6"]{--activity-tint:#f2fbf2;--activity-border:#c2e1c2}.matrix-activity-card[data-color-index="7"]{--activity-tint:#f7f7ed;--activity-border:#dddbb4}.matrix-activity-card[data-color-index="8"]{--activity-tint:#f1f6fa;--activity-border:#c4d3df}

.dashboard-announcement.mode-marquee{position:relative;min-height:44px}.dashboard-announcement.mode-marquee .announcement-track{position:absolute;left:0;top:50%;min-width:0;width:max-content;max-width:none;white-space:nowrap;transform:translateY(-50%);animation:none}.dashboard-announcement.mode-marquee.is-motion-ready .announcement-track{animation:organize-marquee-v0995 var(--announcement-duration,24s) linear infinite}.dashboard-announcement.mode-pulse.is-motion-ready{animation:organize-safe-pulse-v0995 var(--announcement-pulse-duration,3s) ease-in-out infinite;border-color:var(--announcement-pulse-color,#08A6A3)}
@keyframes organize-marquee-v0995{0%{transform:translate3d(var(--announcement-from,-100%),-50%,0)}100%{transform:translate3d(var(--announcement-to,100%),-50%,0)}}
@keyframes organize-safe-pulse-v0995{0%,100%{box-shadow:0 0 0 0 transparent;transform:scale(1)}50%{box-shadow:0 0 0 var(--announcement-pulse-ring,8px) var(--announcement-pulse-glow,rgba(8,166,163,.18)),0 10px 24px rgba(5,72,132,.08);transform:scale(var(--announcement-pulse-scale,1.006))}}
@media(prefers-reduced-motion:reduce){.dashboard-announcement.mode-marquee.is-motion-ready .announcement-track,.dashboard-announcement.mode-pulse.is-motion-ready{animation:none!important}}

.announcement-motion-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.announcement-motion-options input[type="color"]{min-height:42px;padding:4px}
@media(max-width:900px){.itinerary-matrix-heading{display:grid}.matrix-column-controls{justify-content:flex-start}.itinerary-matrix{min-width:0}.matrix-activity-card,.matrix-empty-slot{flex-basis:210px;min-height:150px}.announcement-motion-options{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.matrix-column-controls{display:grid;grid-template-columns:1fr}.matrix-column-controls input{width:100%}.announcement-motion-options{grid-template-columns:1fr}}


/* =========================================================
   OrganizeMe v0.99.6 — clearer matrix, fit-through-eight and desktop motion
   ========================================================= */
.itinerary-matrix{
  --matrix-day-width:210px;
  --matrix-card-width:160px;
  --matrix-gap:8px;
  --matrix-min-width:100%;
  width:max(100%,var(--matrix-min-width));
  min-width:var(--matrix-min-width)
}
.itinerary-matrix-header,
.itinerary-matrix-row{
  grid-template-columns:var(--matrix-day-width) minmax(0,1fr)
}
.itinerary-matrix:not(.matrix-overflow-columns) .matrix-slot-headings,
.itinerary-matrix:not(.matrix-overflow-columns) .matrix-activity-list{
  grid-template-columns:repeat(var(--matrix-columns),minmax(0,1fr))
}
.itinerary-matrix.matrix-overflow-columns .matrix-slot-headings,
.itinerary-matrix.matrix-overflow-columns .matrix-activity-list{
  grid-template-columns:repeat(var(--matrix-columns),var(--matrix-card-width))
}
.matrix-slot-headings,
.matrix-activity-list{
  gap:var(--matrix-gap);
  padding:6px
}
.matrix-day-number{
  display:grid!important;
  place-items:center!important;
  width:36px;
  min-width:36px!important;
  max-width:36px;
  height:36px!important;
  flex:0 0 36px;
  padding:0!important;
  margin:0;
  line-height:1!important;
  text-align:center;
  font-variant-numeric:tabular-nums
}
.matrix-activity-card{
  border-inline-start:4px solid var(--activity-border,#7faecb);
  box-shadow:0 5px 14px rgba(5,72,132,.11);
  transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease
}
.matrix-activity-card:hover{
  box-shadow:0 8px 20px rgba(5,72,132,.15);
  transform:translateY(-1px)
}
.matrix-activity-card[data-color-index="1"]{--activity-tint:#dceefa;--activity-border:#63a7d5}
.matrix-activity-card[data-color-index="2"]{--activity-tint:#d6f2ee;--activity-border:#4cbcab}
.matrix-activity-card[data-color-index="3"]{--activity-tint:#ffedc5;--activity-border:#dda32e}
.matrix-activity-card[data-color-index="4"]{--activity-tint:#eadff7;--activity-border:#a979d3}
.matrix-activity-card[data-color-index="5"]{--activity-tint:#f8dce5;--activity-border:#d77593}
.matrix-activity-card[data-color-index="6"]{--activity-tint:#dcefd9;--activity-border:#69ae6b}
.matrix-activity-card[data-color-index="7"]{--activity-tint:#efedc7;--activity-border:#afa73f}
.matrix-activity-card[data-color-index="8"]{--activity-tint:#d9e6ef;--activity-border:#7799af}
.matrix-density-compact .matrix-day-cell{padding:10px;gap:7px}
.matrix-density-compact .matrix-activity-card{min-height:132px;padding:7px;gap:5px}
.matrix-density-compact .matrix-empty-slot{min-height:128px}
.matrix-density-compact .matrix-activity-card h3{font-size:.82rem;line-height:1.25}
.matrix-density-compact .matrix-activity-location{min-height:1.5em;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.matrix-density-compact .matrix-activity-time{font-size:.86rem}
.matrix-density-compact .matrix-activity-meta{font-size:.66rem}
.matrix-density-dense .matrix-day-cell{padding:8px;gap:6px}
.matrix-density-dense .matrix-day-number{width:32px;min-width:32px!important;max-width:32px;height:32px!important;flex-basis:32px;border-radius:9px;font-size:.82rem}
.matrix-density-dense .matrix-activity-card{min-height:116px;padding:6px;gap:3px;border-radius:10px}
.matrix-density-dense .matrix-empty-slot{min-height:112px;border-radius:10px}
.matrix-density-dense .matrix-empty-slot>span{font-size:1.15rem}
.matrix-density-dense .matrix-activity-card h3{font-size:.74rem;line-height:1.18;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.matrix-density-dense .matrix-activity-head{gap:3px}
.matrix-density-dense .matrix-activity-head .badge{font-size:.58rem;padding:2px 4px;max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matrix-density-dense .matrix-activity-time{font-size:.77rem;white-space:nowrap}
.matrix-density-dense .matrix-activity-location{min-height:1.2em;font-size:.64rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.matrix-density-dense .matrix-activity-meta{font-size:.58rem;gap:3px;white-space:nowrap;overflow:hidden}
.matrix-density-dense .matrix-quick-edit{padding-top:4px}
.matrix-density-dense .matrix-quick-edit summary{font-size:.65rem;white-space:nowrap}
.matrix-density-dense .matrix-slot-headings span{font-size:.66rem}
.matrix-column-controls label span,
.matrix-column-controls>small{
  overflow-wrap:anywhere
}

/* Explicit manager-selected motion remains active on desktop even when the OS
   reports reduced motion; the configured animations are slow and non-flashing. */
.dashboard-announcement.mode-marquee{
  overflow:hidden!important;
  contain:paint
}
.dashboard-announcement.mode-marquee .announcement-track{
  left:0;
  right:auto;
  will-change:transform;
  backface-visibility:hidden
}
.dashboard-announcement.mode-marquee.is-motion-ready .announcement-track{
  animation-name:organize-marquee-v0996!important;
  animation-duration:var(--announcement-duration,24s)!important;
  animation-timing-function:linear!important;
  animation-iteration-count:infinite!important;
  animation-play-state:running!important
}
.dashboard-announcement.mode-pulse.is-motion-ready{
  animation-name:organize-safe-pulse-v0996!important;
  animation-duration:var(--announcement-pulse-duration,3s)!important;
  animation-timing-function:ease-in-out!important;
  animation-iteration-count:infinite!important;
  animation-play-state:running!important;
  will-change:box-shadow,transform,filter
}
@keyframes organize-marquee-v0996{
  from{transform:translate3d(var(--announcement-from,-100%),-50%,0)}
  to{transform:translate3d(var(--announcement-to,100%),-50%,0)}
}
@keyframes organize-safe-pulse-v0996{
  0%,100%{
    box-shadow:0 0 0 0 transparent,0 4px 12px rgba(5,72,132,.04);
    transform:scale(1);
    filter:saturate(1)
  }
  50%{
    box-shadow:
      0 0 0 var(--announcement-pulse-ring,10px) var(--announcement-pulse-glow,rgba(8,166,163,.24)),
      0 0 calc(var(--announcement-pulse-ring,10px) + 10px) var(--announcement-pulse-glow,rgba(8,166,163,.24)),
      0 12px 26px rgba(5,72,132,.11);
    transform:scale(var(--announcement-pulse-scale,1.007));
    filter:saturate(1.1)
  }
}
@media(prefers-reduced-motion:reduce){
  .dashboard-announcement.mode-marquee.is-motion-ready .announcement-track{
    animation-name:organize-marquee-v0996!important;
    animation-duration:var(--announcement-duration,24s)!important;
    animation-iteration-count:infinite!important
  }
  .dashboard-announcement.mode-pulse.is-motion-ready{
    animation-name:organize-safe-pulse-v0996!important;
    animation-duration:var(--announcement-pulse-duration,3s)!important;
    animation-iteration-count:infinite!important
  }
}
@media(max-width:900px){
  .itinerary-matrix{width:100%;min-width:0}
  .matrix-density-compact .matrix-activity-card,
  .matrix-density-dense .matrix-activity-card,
  .matrix-density-compact .matrix-empty-slot,
  .matrix-density-dense .matrix-empty-slot{min-height:150px}
}


/* OrganizeMe v0.99.8 — stable quick edit and complete localization repair */
.matrix-activity-card{cursor:default;overflow:visible}
.matrix-activity-card .drag-handle{cursor:grab;touch-action:none}
.matrix-activity-card .drag-handle:active{cursor:grabbing}
.matrix-quick-edit{position:relative;z-index:2}
.matrix-quick-edit[open]{z-index:80}
.matrix-quick-edit[open] summary{color:#054884}
.matrix-quick-edit form{pointer-events:auto;cursor:default;min-width:min(330px,calc(100vw - 48px))}
.matrix-quick-edit form input,.matrix-quick-edit form select,.matrix-quick-edit form textarea,.matrix-quick-edit form button,.matrix-quick-edit form a{pointer-events:auto}
.matrix-activity-card:has(.matrix-quick-edit[open]){z-index:75;box-shadow:0 14px 36px rgba(5,72,132,.24)}
.itinerary-matrix-row:has(.matrix-quick-edit[open]){position:relative;z-index:12}
.itinerary-matrix-panel:has(.matrix-quick-edit[open]),.itinerary-matrix-scroll:has(.matrix-quick-edit[open]){overflow-y:visible}
@media(max-width:900px){
 .matrix-quick-edit form{position:fixed;z-index:1000;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto}
}


/* OrganizeMe v0.99.9 profile, governance, compact alerts and clearer financial sheets */
:root{--surface:#f7fbfc;--surface-strong:#eef6f8}.panel,.metric-card,.trip-card,.announcement-admin-card,.admin-user-card{background:var(--surface-strong)}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.profile-subscription-panel{grid-column:1/-1}.request-history,.subscription-request-admin-list,.admin-user-card-list{display:grid;gap:12px}.request-history article,.subscription-request-admin-list article,.admin-user-card{padding:14px;border:1px solid var(--border);border-radius:14px;background:#f3f9fa}.request-history article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}.subscription-request-admin-list article{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.7fr);gap:16px}.subscription-request-admin-list .record-actions{display:grid}.subscription-request-admin-list form{display:flex;gap:7px}.admin-user-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center}.admin-user-summary>div:first-child{display:grid}.admin-user-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}.admin-user-action-grid>section,.compact-admin-form,.danger-zone-form{display:grid;gap:9px;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f9fcfd}.danger-zone-form{border-color:#e7b8bf;background:#fff3f4}.dashboard-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.finance-sheet-card{border:1px solid #bfd9e1;border-radius:14px;background:#f7fbfc;overflow:hidden}.finance-sheet-title{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;background:#e3f1f4;border-bottom:1px solid #bfd9e1}.finance-sheet-title>div{display:grid}.finance-sheet-table,.finance-category-lines{display:grid}.finance-sheet-table{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-sheet-table>div,.finance-category-lines>div{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;border-bottom:1px solid #dce9ed}.finance-sheet-table>div:nth-child(odd){border-inline-end:1px solid #dce9ed}.finance-category-lines{padding:8px}.finance-category-lines>div{background:#f0f7f9}.finance-trip-selector select{min-width:240px}.audit-detail-list{display:grid;gap:5px}.audit-detail-list>div{display:grid;grid-template-columns:minmax(130px,.45fr) 1fr;gap:8px;padding:6px;border-bottom:1px solid var(--border)}.audit-detail-list dt{font-weight:800}.audit-detail-list dd{margin:0;word-break:break-word}.security-event-list{display:grid;gap:8px}.security-event-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;padding:10px;border:1px solid var(--border);border-radius:11px;background:#f6fbfc}.planning-alert,.booking-alert{padding:8px 10px;gap:8px}.planning-alert p,.booking-alert p{font-size:.79rem;line-height:1.25}.planning-alert-icon,.booking-alert-icon{width:30px;height:30px}.template-picker{gap:8px}.template-picker fieldset{padding:8px;gap:6px}.select-card{padding:7px;gap:6px}.select-card small{font-size:.74rem;line-height:1.2}.monthly-savings-schedule{grid-column:1/-1;width:100%}.savings-overview-grid .monthly-savings-schedule{grid-column:span 2}.record-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.danger-text{color:var(--danger)!important}.trip-delete-inline{margin-top:8px}.trip-delete-inline form{display:grid;gap:6px;padding:8px;background:#fff2f3;border-radius:10px}
@media(max-width:900px){.profile-grid,.dashboard-finance-grid,.admin-user-action-grid,.subscription-request-admin-list{grid-template-columns:1fr}.profile-subscription-panel{grid-column:auto}.admin-user-summary{grid-template-columns:1fr}.finance-sheet-table{grid-template-columns:1fr}.finance-sheet-table>div:nth-child(odd){border-inline-end:0}.request-history article,.security-event-list article{grid-template-columns:1fr}}


/* ============================================================
   OrganizeMe v0.99.10 — stronger card separation and compact UI
   ============================================================ */
:root {
  --surface-card: #eaf5f7;
  --surface-card-strong: #e1f0f3;
  --surface-card-soft: #f0f8f9;
  --border-strong: #b8d7de;
}

.panel,
.metric-card,
.trip-card,
.dashboard-trip-card,
.finance-sheet-card,
.chart-card,
.admin-user-card,
.system-alert-card,
.trip-task-card,
.finance-record-card,
.accommodation-card,
.transport-card,
.activity-card,
.document-card,
.lookup-card,
.support-thread-card {
  background: var(--surface-card);
  border-color: var(--border-strong);
  box-shadow: 0 10px 26px rgba(3, 72, 132, .09);
}

.panel .panel,
.inset-panel,
.finance-inline-editor[open],
.action-details[open],
.task-editor[open] {
  background: var(--surface-card-soft);
  border-color: var(--border-strong);
}

.metric-card.metric-accent,
.subscription-dashboard-strip,
.finance-sheet-card:nth-child(even) {
  background: var(--surface-card-strong);
}

.dashboard-announcement,
.alert,
.system-alert-card {
  padding: 11px 14px;
  min-height: auto;
}

.dashboard-announcement .announcement-track {
  gap: 8px;
  line-height: 1.4;
}

.compact-alert,
.compact-alert-list .system-alert-card {
  padding-block: 9px;
}

.compact-alert-list {
  gap: 10px;
}

.compact-alert-list .system-alert-card h2 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.compact-alert-list .system-alert-card p {
  margin: 2px 0;
  font-size: .9rem;
}

.compact-template-panel {
  padding: 0;
  overflow: hidden;
}

.compact-template-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.compact-template-summary small {
  font-weight: 400;
}

.compact-template-picker {
  padding: 0 18px 18px;
  gap: 12px;
}

.compact-template-picker fieldset {
  padding: 10px 12px;
}

.compact-template-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.compact-select-card {
  padding: 8px 10px;
  min-height: 0;
}

.savings-contribution-grid {
  grid-template-columns: minmax(300px, .8fr) minmax(520px, 1.7fr);
  align-items: start;
}

.contribution-list {
  min-width: 0;
}

.contribution-list .finance-record-card {
  width: 100%;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1fr) auto;
  gap: 14px;
}

.contribution-list .finance-inline-editor[open] {
  min-width: min(680px, 72vw);
  max-width: 100%;
}

.monthly-goal-add-details {
  margin: 12px 0;
}

.monthly-goal-add-details > summary {
  width: fit-content;
}

.monthly-goal-add-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-card-soft);
}

.monthly-goal-add-form label {
  display: grid;
  gap: 5px;
}

.monthly-goal-builder-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.monthly-goal-batch-rows {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.monthly-goal-entry {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) repeat(3, minmax(130px, 1fr)) auto auto minmax(180px, 1.2fr);
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.58);
}

.monthly-goal-entry > strong {
  align-self: center;
  color: var(--navy);
}

.monthly-goal-entry .field-wide {
  min-width: 0;
}

.monthly-savings-row-v09910 {
  grid-template-columns: minmax(120px, .8fr) minmax(110px, .7fr) minmax(110px, .7fr) minmax(100px, .6fr) minmax(110px, .7fr) minmax(300px, 1.6fr);
}

.monthly-savings-row-v09910 .monthly-savings-actions {
  display: grid;
  grid-template-columns: auto auto minmax(130px, 1fr) auto auto;
  gap: 6px;
  align-items: center;
}

.finance-trip-selector-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.finance-trip-selector-two label {
  display: grid;
  gap: 4px;
}

.dashboard-finance-chart {
  height: 220px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.58);
}

.broadcast-delivery-list article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-card-soft);
}

.broadcast-delivery-heading,
.broadcast-counters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.broadcast-counters {
  justify-content: flex-start;
  font-size: .88rem;
}

.broadcast-counters span {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}

.pending-email-note {
  display: block;
  color: var(--warning);
}

.downgrade-preview-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.downgrade-preview-card {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-card-soft);
  padding: 10px 12px;
}

.downgrade-preview-card > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.downgrade-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.audit-table td {
  vertical-align: top;
}

.audit-summary-list,
.audit-detail-list {
  display: grid;
  gap: 6px;
}

.audit-summary-list div,
.audit-detail-list div {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) minmax(180px, 1.4fr);
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.audit-detail-title {
  display: block;
  margin-top: 12px;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

@media (max-width: 980px) {
  .savings-contribution-grid,
  .downgrade-preview-grid {
    grid-template-columns: 1fr;
  }

  .contribution-list .finance-record-card {
    grid-template-columns: 1fr;
  }

  .monthly-goal-add-form,
  .finance-trip-selector-two {
    grid-template-columns: 1fr;
  }

  .monthly-goal-builder-controls,
  .monthly-goal-entry {
    grid-template-columns: 1fr 1fr;
  }

  .monthly-goal-entry > strong,
  .monthly-goal-entry .field-wide {
    grid-column: 1 / -1;
  }

  .monthly-savings-row-v09910 {
    grid-template-columns: 1fr 1fr;
  }

  .monthly-savings-row-v09910 .monthly-savings-actions {
    grid-column: 1 / -1;
    grid-template-columns: auto auto 1fr;
  }
}

@media (max-width: 620px) {
  .monthly-savings-row-v09910,
  .monthly-savings-row-v09910 .monthly-savings-actions {
    grid-template-columns: 1fr;
  }

  .monthly-goal-builder-controls,
  .monthly-goal-entry {
    grid-template-columns: 1fr;
  }

  .monthly-goal-entry > strong,
  .monthly-goal-entry .field-wide {
    grid-column: auto;
  }

  .contribution-list .finance-inline-editor[open] {
    min-width: 0;
  }

  .compact-template-summary,
  .downgrade-preview-card > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   OrganizeMe v0.99.10.4 — dashboard native charts + trip branding
   ============================================================ */
.dashboard-finance-grid {
  align-items: start;
}

.finance-sheet-card {
  position: relative;
  isolation: isolate;
}

.finance-sheet-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-gradient);
  z-index: 2;
}

.finance-sheet-brand {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
}

.finance-sheet-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(4,153,162,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 7px 18px rgba(3,72,132,.08);
}

.finance-sheet-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.dashboard-finance-visual {
  display: grid;
  gap: 13px;
  margin: 13px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(225,240,243,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.dashboard-finance-bar {
  display: grid;
  gap: 7px;
}

.dashboard-finance-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: .84rem;
}

.dashboard-finance-bar-label span {
  color: var(--ink);
  font-weight: 700;
}

.dashboard-finance-bar-label b {
  color: var(--brand-blue-deep);
  direction: ltr;
  white-space: nowrap;
}

.dashboard-finance-bar-label b small {
  margin-inline-start: 3px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
}

.dashboard-finance-bar-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(5,72,132,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
}

.dashboard-finance-bar-track span {
  display: block;
  width: var(--finance-bar-width, 0%);
  min-width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #054884, #0876a3);
  box-shadow: 0 0 14px rgba(5,72,132,.2);
  transition: width .45s ease;
}

.dashboard-finance-bar.tone-success .dashboard-finance-bar-track span {
  background: linear-gradient(90deg, #15836e, #19b9b3);
}

.dashboard-finance-bar.tone-warning .dashboard-finance-bar-track span {
  background: linear-gradient(90deg, #bb7d16, #e2aa45);
}

.dashboard-finance-bar.tone-teal .dashboard-finance-bar-track span {
  background: linear-gradient(90deg, #0499a2, #19b9b3);
}

.dashboard-finance-bar.tone-accent .dashboard-finance-bar-track span {
  background: linear-gradient(90deg, #5b70b5, #8d78c5);
}

.dashboard-finance-bar.tone-danger .dashboard-finance-bar-track span {
  background: linear-gradient(90deg, #b54555, #dc6a73);
}

.dashboard-recent-trip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-recent-trip-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 178px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(25,185,179,.13), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.92), var(--surface-card-strong));
  box-shadow: 0 12px 29px rgba(3,72,132,.09);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-recent-trip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(4,153,162,.58);
  box-shadow: 0 18px 36px rgba(3,72,132,.14);
  text-decoration: none;
}

.dashboard-recent-trip-accent {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--brand-gradient);
}

.dashboard-recent-trip-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(4,153,162,.23);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 25px rgba(3,72,132,.1);
}

.dashboard-recent-trip-mark img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.dashboard-recent-trip-content {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.dashboard-recent-trip-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.dashboard-recent-trip-meta small {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-recent-trip-card h3 {
  margin: 0;
  color: var(--brand-blue-deep);
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
}

.dashboard-recent-trip-card p {
  margin: 0;
  color: var(--brand-blue);
  font-size: .88rem;
}

.dashboard-recent-trip-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.dashboard-recent-trip-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 9px;
  border: 1px solid rgba(5,72,132,.1);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  font-size: .72rem;
}

.dashboard-recent-trip-stats b {
  color: var(--brand-blue-deep);
  font-size: .92rem;
}

.dashboard-recent-trip-open {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  color: white;
  background: var(--brand-gradient);
  box-shadow: 0 8px 18px rgba(4,153,162,.24);
  font-size: 1.08rem;
}

@media (max-width: 980px) {
  .dashboard-recent-trip-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dashboard-recent-trip-card {
    grid-template-columns: 62px minmax(0,1fr);
    gap: 12px;
    min-height: 0;
    padding: 18px 15px;
  }

  .dashboard-recent-trip-mark {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .dashboard-recent-trip-mark img {
    width: 46px;
    height: 46px;
  }

  .dashboard-recent-trip-open {
    display: none;
  }

  .dashboard-finance-visual {
    margin: 10px;
    padding: 12px;
  }

  .dashboard-finance-bar-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

/* ============================================================
   OrganizeMe v0.99.11 — adaptive dashboard and usability suite
   ============================================================ */

/* Dashboard uses the full width when only one trip is available. */
.dashboard-finance-grid.single-item,
.dashboard-recent-trip-grid.single-item {
  grid-template-columns: 1fr;
}

.dashboard-finance-grid.single-item .finance-sheet-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  align-items: stretch;
}

.dashboard-finance-grid.single-item .finance-sheet-title,
.dashboard-finance-grid.single-item .finance-category-lines {
  grid-column: 1 / -1;
}

.dashboard-finance-grid.single-item .finance-sheet-table {
  align-content: start;
  border-inline-end: 1px solid var(--border-strong);
}

.dashboard-finance-grid.single-item .dashboard-finance-visual {
  min-height: 250px;
  align-content: center;
}

.dashboard-recent-trip-grid.single-item .dashboard-recent-trip-card {
  grid-template-columns: 100px minmax(0,1fr) auto;
  min-height: 205px;
}

.dashboard-recent-trip-grid.single-item .dashboard-recent-trip-mark {
  width: 100px;
  height: 100px;
}

.dashboard-recent-trip-grid.single-item .dashboard-recent-trip-mark img {
  width: 76px;
  height: 76px;
}

/* Alerts center: active/archive tabs and compact bulk controls. */
.alert-center-toolbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
}

.alert-center-tabs {
  display: flex;
  gap: 9px;
  align-items: stretch;
  flex-wrap: wrap;
}

.alert-center-tabs > a,
.alert-unread-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(255,255,255,.68);
  color: var(--ink);
}

.alert-center-tabs > a:hover,
.alert-center-tabs > a.active {
  border-color: var(--brand-teal);
  background: var(--surface-card-strong);
  text-decoration: none;
}

.alert-center-tabs > a b,
.alert-unread-counter strong {
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  border-radius: 999px;
  color: white;
  background: var(--brand-gradient);
  font-size: .78rem;
}

.alert-bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.alert-bulk-actions form {
  margin: 0;
}

.alert-card-content {
  min-width: 0;
}

.alert-card-actions {
  justify-content: flex-end;
}

.branded-empty-state img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-inline: auto;
}

/* User management: branded profile cards and grouped actions. */
.admin-user-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}

.admin-user-profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 5% 0%, rgba(25,185,179,.12), transparent 32%),
    var(--surface-card);
  box-shadow: 0 13px 32px rgba(3,72,132,.1);
}

.admin-user-card-accent {
  display: block;
  height: 5px;
  background: var(--brand-gradient);
}

.admin-user-profile-header {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 17px;
}

.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 21px;
  color: white;
  background: var(--brand-gradient);
  box-shadow: 0 10px 23px rgba(4,153,162,.23);
  font-size: 1.65rem;
  font-weight: 900;
}

.admin-user-identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-user-identity h3 {
  margin: 0;
  color: var(--brand-blue-deep);
}

.admin-user-identity > span,
.admin-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.admin-user-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border-block: 1px solid var(--border-strong);
  background: rgba(255,255,255,.52);
}

.admin-user-facts > div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border-inline-end: 1px solid rgba(184,215,222,.7);
}

.admin-user-facts span {
  color: var(--muted);
  font-size: .72rem;
}

.admin-user-facts strong {
  color: var(--brand-blue-deep);
  font-size: .88rem;
}

.admin-user-mini-history {
  display: grid;
  gap: 6px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--border-strong);
}

.admin-user-mini-history > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .76rem;
}

.admin-user-mini-history small {
  color: var(--muted);
}

.admin-user-action-sections {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.admin-user-action-sections > details {
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(255,255,255,.57);
}

.admin-user-action-sections > details > summary {
  padding: 11px 13px;
  cursor: pointer;
  color: var(--brand-blue-deep);
  font-weight: 800;
}

.admin-user-action-sections > details[open] > summary {
  border-bottom: 1px solid var(--border-strong);
  background: rgba(225,240,243,.62);
}

.admin-user-section-form {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.admin-user-inline-actions {
  display: grid;
  gap: 8px;
  padding: 0 13px 13px;
}

.admin-user-inline-actions form {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.danger-details {
  border-color: rgba(181,69,85,.35) !important;
  background: rgba(255,241,243,.7) !important;
}

/* Branded broadcast and reusable email templates. */
.admin-broadcast-workspace {
  margin-top: 20px;
}

.email-template-picker {
  display: flex;
  gap: 9px;
  align-items: end;
  flex-wrap: wrap;
  padding: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-card-soft);
}

.email-template-picker label {
  flex: 1 1 280px;
}

.broadcast-brand-form {
  display: grid;
  gap: 13px;
  margin-top: 13px;
  padding: 17px;
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(225,240,243,.8));
}

.email-placeholder-help {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .8rem;
}

.email-placeholder-help code {
  padding: 4px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: white;
  direction: ltr;
}

.email-template-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 13px;
}

.email-template-card {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-card-soft);
  overflow: hidden;
}

.email-template-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  cursor: pointer;
}

.email-template-card > summary > span:first-child {
  display: grid;
}

.email-template-card > form {
  padding: 13px;
  border-top: 1px solid var(--border-strong);
}

.email-preview-shell {
  overflow: auto;
  padding: 0;
}

/* Compact trip alerts across itinerary, accommodation, transport and budget. */
.compact-trip-alert-panel {
  padding: 0;
  overflow: hidden;
}

.compact-trip-alert-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
}

.compact-trip-alert-summary::-webkit-details-marker {
  display: none;
}

.compact-trip-alert-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compact-trip-alert-title > b {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  color: #9b6410;
  background: #fff1cc;
}

.compact-trip-alert-title > span {
  display: grid;
  gap: 2px;
}

.compact-trip-alert-title small {
  color: var(--muted);
  font-weight: 400;
}

.compact-trip-alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px,1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.compact-trip-alert-card,
.compact-trip-alert-grid .schedule-alert {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 9px;
  min-height: 0;
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
}

.compact-trip-alert-card p,
.compact-trip-alert-card small,
.compact-trip-alert-grid .schedule-alert small {
  margin: 2px 0 0;
  font-size: .76rem;
  line-height: 1.3;
  color: var(--muted);
}

.compact-trip-alert-card.severity-danger {
  border-inline-start: 4px solid var(--danger);
}

.compact-trip-alert-card.severity-warning {
  border-inline-start: 4px solid var(--warning);
}

.alert,
.planning-alert,
.booking-alert {
  min-height: 0;
  padding: 8px 10px;
  border-radius: 11px;
}

/* Transport filter cards with counts and icons. */
.transport-filter-cards {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 5px 2px 12px;
  scrollbar-width: thin;
}

.transport-filter-card {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 36px auto;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
}

.transport-filter-card:hover,
.transport-filter-card.active {
  border-color: var(--brand-teal);
  background: var(--surface-card-strong);
  box-shadow: 0 8px 20px rgba(3,72,132,.09);
  text-decoration: none;
}

.transport-filter-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: white;
  background: var(--brand-gradient);
}

.transport-filter-card > span:last-child {
  display: grid;
}

.transport-filter-card small {
  color: var(--muted);
}

/* Responsive refinements. */
@media (max-width: 1050px) {
  .admin-user-profile-grid,
  .email-template-card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-finance-grid.single-item .finance-sheet-card {
    grid-template-columns: 1fr;
  }

  .dashboard-finance-grid.single-item .finance-sheet-table {
    border-inline-end: 0;
  }
}

@media (max-width: 760px) {
  .alert-center-toolbar {
    grid-template-columns: 1fr;
  }

  .alert-bulk-actions {
    justify-content: flex-start;
  }

  .admin-user-profile-header {
    grid-template-columns: 56px minmax(0,1fr);
  }

  .admin-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 17px;
  }

  .admin-user-badges {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .admin-user-facts {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .dashboard-recent-trip-grid.single-item .dashboard-recent-trip-card {
    grid-template-columns: 62px minmax(0,1fr);
    min-height: 0;
  }
}

.density-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  color: var(--brand-blue);
  background: rgba(255,255,255,.74);
  cursor: pointer;
}

.density-toggle[aria-pressed="true"] {
  color: white;
  border-color: transparent;
  background: var(--brand-gradient);
}

body.density-compact .panel {
  padding: 14px;
}

body.density-compact .content {
  gap: 12px;
}

body.density-compact .metric-card,
body.density-compact .admin-user-profile-card,
body.density-compact .finance-sheet-card {
  box-shadow: 0 7px 18px rgba(3,72,132,.08);
}

body.density-compact .admin-user-profile-header,
body.density-compact .dashboard-recent-trip-card {
  padding: 14px;
}

body.density-compact .system-alert-card,
body.density-compact .compact-trip-alert-card {
  padding-block: 7px;
}
.admin-user-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(255,255,255,.68);
  color: var(--muted);
  font-size: .7rem;
  cursor: pointer;
}
.admin-user-select input { margin: 0; }
.broadcast-audience-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(4,153,162,.24);
  border-radius: 12px;
  background: rgba(25,185,179,.08);
}
.broadcast-audience-preview > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: white;
  background: var(--brand-gradient);
}
.broadcast-audience-preview > div { display: grid; }
.broadcast-audience-preview small { color: var(--muted); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(25,185,179,.45);
  outline-offset: 2px;
}

/* ============================================================
   OrganizeMe v0.99.12 — Places autocomplete and dual map providers
   ============================================================ */

.place-autocomplete-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(4,153,162,.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(25,185,179,.12), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(225,240,243,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

.place-search-status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.place-search-status-row > div:first-child {
  display: grid;
  gap: 3px;
}

.place-search-status-row strong {
  color: var(--brand-blue-deep);
}

.place-search-status-row small {
  color: var(--muted);
}

.place-search-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.place-suggestions {
  position: relative;
  z-index: 30;
  display: grid;
  gap: 6px;
  max-height: 350px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 42px rgba(3,72,132,.14);
}

.place-suggestion-card {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.place-suggestion-card:hover,
.place-suggestion-card:focus-visible {
  border-color: rgba(4,153,162,.35);
  background: var(--surface-card-strong);
}

.place-suggestion-card:disabled {
  opacity: .62;
  cursor: wait;
}

.place-suggestion-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: white;
  background: var(--brand-gradient);
  font-size: 1rem;
}

.place-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.place-suggestion-copy strong,
.place-suggestion-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-suggestion-copy strong {
  color: var(--brand-blue-deep);
}

.place-suggestion-copy small {
  color: var(--muted);
}

.place-suggestion-empty {
  padding: 15px;
  color: var(--muted);
  text-align: center;
}

.place-selected-card {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid rgba(4,153,162,.3);
  border-radius: 13px;
  background: rgba(25,185,179,.08);
}

.place-selected-card > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 3px 10px;
  align-items: center;
}

.place-selected-card strong,
.place-selected-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-selected-card small {
  color: var(--muted);
}

.place-selected-card .badge {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.place-selected-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: white;
  background: var(--brand-gradient);
  font-size: 1.1rem;
}

.place-search-attribution {
  min-height: 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--muted);
  font-size: .68rem;
}

.place-search-attribution img {
  display: block;
  width: 120px;
  height: auto;
}

.map-provider-banner {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 13px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--surface-card);
}

.map-provider-banner > div {
  display: grid;
  gap: 2px;
}

.map-provider-banner small {
  color: var(--muted);
}

.map-provider-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: white;
  background: var(--brand-gradient);
  font-weight: 900;
  font-size: 1.15rem;
}

.map-provider-banner.provider-osm .map-provider-icon {
  background: linear-gradient(135deg, #3f854f, #6aaa55);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}

.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: .74rem;
}

.google-place-marker {
  --marker-color: #0499a2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid white;
  border-radius: 50% 50% 50% 10%;
  color: white;
  background: var(--marker-color);
  box-shadow: 0 7px 18px rgba(3,72,132,.28);
  transform: rotate(-45deg);
  font-size: .8rem;
  font-weight: 900;
}

.google-place-marker::first-letter {
  transform: rotate(45deg);
}

.google-place-marker.type-accommodation {
  border-radius: 11px 11px 11px 3px;
}

.google-place-marker.preview {
  --marker-color: #d4762f;
  animation: map-marker-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes map-marker-pulse {
  from { transform: rotate(-45deg) scale(.92); }
  to { transform: rotate(-45deg) scale(1.12); }
}

.map-popup-card {
  min-width: 180px;
  display: grid;
  gap: 5px;
  padding: 3px;
  font-family: inherit;
}

.map-popup-card strong {
  color: var(--brand-blue-deep);
}

.map-popup-card small {
  color: #5c7280;
}

.map-popup-card a {
  color: var(--brand-teal);
  font-weight: 800;
}

.map-load-error {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 20px;
  color: var(--danger);
  background: rgba(255,241,243,.8);
  text-align: center;
}

.map-search-results {
  display: grid;
  gap: 6px;
}

.map-search-results .place-suggestion-card {
  border-color: var(--border-strong);
  background: rgba(255,255,255,.72);
}

.places-settings-panel {
  display: grid;
  gap: 17px;
}

.places-provider-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.places-settings-switches {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.places-provider-selectors {
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: rgba(255,255,255,.55);
}

.places-usage-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.places-usage-card {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--surface-card-soft);
}

.places-usage-card.provider-google {
  border-top: 4px solid #4285f4;
}

.places-usage-card.provider-geoapify {
  border-top: 4px solid #44a652;
}

.places-usage-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-strong);
}

.places-usage-card > div:not(.places-usage-heading) {
  display: grid;
  gap: 2px;
  padding: 7px;
  border-radius: 9px;
  background: rgba(255,255,255,.65);
}

.places-usage-card span {
  color: var(--muted);
  font-size: .72rem;
}

.places-usage-card b {
  color: var(--brand-blue-deep);
}

.places-test-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.places-test-actions small {
  color: var(--muted);
}

.hidden-form {
  display: none !important;
}

@media (max-width: 980px) {
  .places-settings-switches {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .places-usage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .place-search-status-row,
  .map-provider-banner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .place-search-actions,
  .places-provider-badges {
    justify-content: flex-start;
  }

  .place-suggestion-card {
    grid-template-columns: 36px minmax(0,1fr);
  }

  .place-suggestion-card > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .place-selected-card > div {
    grid-template-columns: 1fr;
  }

  .place-selected-card .badge {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .places-settings-switches,
  .places-usage-card {
    grid-template-columns: 1fr;
  }

  .places-usage-heading {
    grid-column: 1;
  }
}

/* ============================================================
   OrganizeMe v0.99.12.1 — map loader and input-anchored place menus
   ============================================================ */

.place-query-field {
  position: relative;
  z-index: 40;
  overflow: visible;
}

.place-query-field-open {
  z-index: 1300;
}

.place-query-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.place-query-shell > input,
.place-query-shell > textarea {
  width: 100%;
}

.place-suggestions.place-suggestions-dropdown,
.map-search-results.place-suggestions-dropdown {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 1400;
  width: 100%;
  min-width: min(100%, 320px);
  max-height: min(380px, 52vh);
  margin: 0;
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(4, 153, 162, .45);
  border-radius: 13px;
  background: rgba(255, 255, 255, .995);
  box-shadow:
    0 18px 45px rgba(3, 72, 132, .2),
    0 4px 12px rgba(3, 72, 132, .1);
}

.place-suggestions-dropdown[hidden] {
  display: none !important;
}

.place-suggestions-dropdown .place-suggestion-card {
  min-height: 62px;
  border-bottom: 1px solid rgba(8, 118, 163, .09);
}

.place-suggestions-dropdown .place-suggestion-card:last-of-type {
  border-bottom: 0;
}

.place-suggestion-card.is-active,
.place-suggestion-card[aria-selected="true"] {
  border-color: rgba(4, 153, 162, .44);
  background: linear-gradient(
    135deg,
    rgba(4, 153, 162, .12),
    rgba(5, 72, 132, .07)
  );
}

.place-search-attribution-dropdown {
  position: sticky;
  inset-block-end: -7px;
  z-index: 2;
  justify-content: flex-end;
  min-height: 28px;
  margin: 5px -7px -7px;
  padding: 7px 10px;
  border-top: 1px solid rgba(8, 118, 163, .11);
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, .98);
}

.place-autocomplete-panel {
  overflow: visible;
}

.place-autocomplete-panel > .place-suggestions {
  display: none;
}

.map-place-query-shell {
  z-index: 1500;
}

.map-place-query-shell .map-search-results {
  text-align: start;
}

.map-place-query-shell .place-suggestion-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.map-side-panel,
.map-main-panel,
.map-workspace,
.workspace-form,
.form-section {
  overflow: visible;
}

@media (max-width: 650px) {
  .place-suggestions.place-suggestions-dropdown,
  .map-search-results.place-suggestions-dropdown {
    inset-inline: 0;
    width: 100%;
    min-width: 0;
    max-height: 46vh;
  }

  .place-suggestions-dropdown .place-suggestion-card {
    min-height: 56px;
  }
}

/* ============================================================
   OrganizeMe v0.99.12.4 — category markers and route visibility
   ============================================================ */

.google-route-marker,
.leaflet-route-marker {
  width: 46px !important;
  height: 58px !important;
  border: 0 !important;
  background: transparent !important;
  filter: drop-shadow(0 5px 7px rgba(3,72,132,.28));
  cursor: pointer;
}

.google-route-marker > svg,
.leaflet-route-marker > svg {
  display: block;
  width: 46px;
  height: 58px;
  overflow: visible;
}

.google-route-marker:hover > svg,
.google-route-marker:focus-within > svg,
.leaflet-route-marker:hover > svg {
  transform: translateY(-2px) scale(1.06);
  transform-origin: 50% 100%;
}

.google-route-marker.preview > svg,
.leaflet-route-marker.preview > svg {
  animation: route-marker-preview-pulse 1.05s ease-in-out infinite alternate;
}

.leaflet-route-marker.leaflet-div-icon {
  margin: 0;
  border: 0;
  background: transparent;
}

@keyframes route-marker-preview-pulse {
  from {
    transform: translateY(0) scale(.94);
    filter: drop-shadow(0 4px 7px rgba(212,118,47,.24));
  }
  to {
    transform: translateY(-3px) scale(1.08);
    filter: drop-shadow(0 8px 12px rgba(212,118,47,.4));
  }
}

.map-legend .map-point-dot.type-accommodation {
  background: #8b5fbf;
}

.map-legend .map-point-dot.type-activity {
  background: #08a6a3;
}

.map-legend .map-point-dot.type-transport_departure,
.map-legend .map-point-dot.type-transport_arrival {
  background: #e4a522;
}

@media (prefers-reduced-motion: reduce) {
  .google-route-marker.preview > svg,
  .leaflet-route-marker.preview > svg {
    animation: none;
  }

  .google-route-marker:hover > svg,
  .google-route-marker:focus-within > svg,
  .leaflet-route-marker:hover > svg {
    transform: none;
  }
}


/* ============================================================
   OrganizeMe v0.99.12.5 — transport places, scroll-safe map list,
   and independent colors for every daily route and transport segment
   ============================================================ */

.transport-route-section,
.transport-form-route,
.transport-form-stop,
.transport-place-endpoint,
.transport-place-query-field,
.transport-place-query-shell {
  overflow: visible !important;
}

.transport-form-stop {
  position: relative;
  min-width: 0;
}

.transport-place-endpoint {
  position: relative;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(4,153,162,.26);
  border-radius: 15px;
  background:
    radial-gradient(circle at 8% 0%, rgba(25,185,179,.1), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(226,241,244,.76));
}

.transport-place-query-field {
  position: relative;
  z-index: 80;
}

.transport-place-query-shell {
  position: relative;
  display: block;
  width: 100%;
}

.transport-place-suggestions {
  position: absolute !important;
  z-index: 5000 !important;
  inset-block-start: calc(100% + 5px) !important;
  inset-inline: 0 !important;
  width: 100% !important;
  min-width: min(480px, 90vw);
  max-height: 340px;
  margin: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.transport-place-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.transport-place-details {
  border: 1px dashed rgba(5,72,132,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.58);
}

.transport-place-details > summary {
  padding: 9px 11px;
  color: var(--brand-blue-deep);
  font-weight: 800;
  cursor: pointer;
}

.transport-place-details[open] > summary {
  border-bottom: 1px solid rgba(5,72,132,.16);
}

.transport-place-details > .form-grid {
  padding: 11px;
}

.transport-stop-operations {
  margin-top: 12px;
}

.map-workspace {
  align-items: stretch;
}

.map-side-panel {
  position: sticky !important;
  top: 92px;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: min(76vh, 760px);
  max-height: calc(100vh - 112px) !important;
  min-height: 520px;
  overflow: hidden !important;
  align-self: start;
}

.map-side-search,
.map-side-summary,
.map-point-list-scroll {
  min-height: 0;
  min-width: 0;
}

.map-side-search {
  position: relative;
  z-index: 30;
  display: grid;
  gap: 9px;
}

.map-side-summary {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-strong);
}

.map-side-summary-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 0 2px 9px;
}

.map-side-summary-heading h3 {
  margin: 0;
}

.map-side-summary-heading small {
  color: var(--muted);
  text-align: end;
}

.map-point-list-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-inline-end: 4px;
  padding-bottom: 8px;
}

.map-point-list {
  display: grid;
  gap: 7px;
}

.map-point-list .map-point-card {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(5,72,132,.1);
  border-radius: 11px;
  background: rgba(255,255,255,.58);
}

.map-point-list .map-point-card:hover {
  border-color: rgba(4,153,162,.3);
  background: rgba(255,255,255,.88);
}

.map-point-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.map-point-copy strong,
.map-point-copy small {
  overflow-wrap: anywhere;
}

.map-point-copy strong {
  color: var(--brand-blue-deep);
  line-height: 1.35;
}

.map-point-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.map-point-card > .badge {
  align-self: start;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-line-legend i {
  display: inline-block;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, hsl(8 72% 42%), hsl(146 72% 42%), hsl(283 72% 42%));
}

.map-line-legend.daily i {
  height: 3px;
  background: repeating-linear-gradient(90deg, #087c98 0 8px, transparent 8px 13px);
}

.map-line-legend.segment i {
  height: 5px;
}

@media (max-width: 1080px) {
  .map-side-panel {
    position: static !important;
    height: auto;
    max-height: none !important;
    min-height: 0;
    overflow: visible !important;
  }

  .map-side-summary {
    min-height: 320px;
  }

  .map-point-list-scroll {
    max-height: 520px;
  }
}

@media (max-width: 650px) {
  .transport-place-suggestions {
    min-width: 0;
    max-height: 44vh;
  }

  .transport-place-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-side-summary-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-side-summary-heading small {
    text-align: start;
  }

  .map-point-list-scroll {
    max-height: 460px;
  }

  .map-point-list .map-point-card {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .map-point-card > .badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* ============================================================
   OrganizeMe v0.99.12.6 — worldwide place search
   ============================================================ */
.place-global-search-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.place-global-search-scope small {
  color: var(--muted);
  line-height: 1.45;
}

.place-global-search-scope.compact {
  margin-top: 5px;
}

.place-search-status-row .place-global-search-scope {
  margin-inline-start: auto;
  justify-content: flex-end;
  max-width: min(560px, 52vw);
}

@media (max-width: 780px) {
  .place-search-status-row .place-global-search-scope {
    margin-inline-start: 0;
    justify-content: flex-start;
    max-width: none;
  }
}


/* ============================================================
   OrganizeMe v0.99.13 — map layers, transport intelligence and
   precision-safe numeric fields
   ============================================================ */

.map-layer-control-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-color: rgba(4,153,162,.28);
  background:
    radial-gradient(circle at 4% 0%, rgba(25,185,179,.12), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.91), rgba(224,240,243,.78));
}

.map-layer-control-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.map-layer-control-heading h2,
.map-layer-control-heading p {
  margin: 0;
}

.map-layer-control-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
}

.map-layer-actions,
.map-layer-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.map-layer-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.map-layer-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.map-layer-switch > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(5,72,132,.16);
  border-radius: 11px;
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  transition: .16s ease;
}

.map-layer-switch > span i {
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid white;
  border-radius: 50%;
  background: #8294a1;
  box-shadow: 0 0 0 1px rgba(5,72,132,.16);
}

.map-layer-switch input:checked + span {
  border-color: rgba(4,153,162,.38);
  background: rgba(255,255,255,.96);
  color: var(--brand-blue-deep);
  box-shadow: 0 6px 18px rgba(3,72,132,.08);
}

.map-layer-switch input:focus-visible + span {
  outline: 3px solid rgba(25,185,179,.25);
  outline-offset: 2px;
}

.map-layer-switch.layer-accommodation > span i { background: #8b5fbf; }
.map-layer-switch.layer-activity > span i { background: #08a6a3; }
.map-layer-switch.layer-transport > span i { background: #e4a522; }
.map-layer-switch.layer-daily-line > span i,
.map-layer-switch.layer-transport-line > span i {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 99px;
}
.map-layer-switch.layer-daily-line > span i {
  background: repeating-linear-gradient(90deg, #087c98 0 7px, transparent 7px 11px);
}
.map-layer-switch.layer-transport-line > span i {
  background: linear-gradient(90deg, hsl(61 73% 40%), hsl(198 68% 44%));
}

.map-layer-count {
  justify-self: end;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
}

.map-layer-count strong {
  color: var(--brand-teal);
  font-size: 1rem;
}

.map-side-panel {
  height: min(86vh, 900px) !important;
  min-height: 690px !important;
  grid-template-rows: auto minmax(330px, 1fr) !important;
}

.map-side-summary {
  min-height: 330px !important;
}

.map-point-list-scroll {
  min-height: 300px;
}

.map-point-card[hidden] {
  display: none !important;
}

.transport-duration-preview {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(5,72,132,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.65);
}

.transport-duration-preview-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: white;
  background: var(--brand-gradient);
  font-size: 1.2rem;
}

.transport-duration-preview > div {
  display: grid;
  gap: 3px;
}

.transport-duration-preview strong {
  color: var(--brand-blue-deep);
}

.transport-duration-preview small {
  color: var(--muted);
}

.transport-duration-preview.is-ready {
  border-color: rgba(42,138,98,.35);
  background: rgba(225,247,237,.72);
}

.transport-duration-preview.is-warning {
  border-color: rgba(228,165,34,.45);
  background: rgba(255,247,224,.76);
}

.transport-duration-preview.is-danger {
  border-color: rgba(193,62,70,.42);
  background: rgba(255,235,238,.8);
}

.transport-timezone-label {
  display: block;
  margin-top: 2px;
  color: var(--brand-teal) !important;
  direction: ltr;
  unicode-bidi: isolate;
}

.transport-timeline-list {
  gap: 0 !important;
}

.transport-connection-card {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 18px;
  padding: 12px 15px;
  border-inline-start: 4px solid #08a6a3;
  background: rgba(227,246,246,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.transport-connection-card.severity-danger {
  border-inline-start-color: #c13e46;
  background: rgba(255,235,238,.86);
}
.transport-connection-card.severity-warning {
  border-inline-start-color: #e4a522;
  background: rgba(255,247,224,.86);
}
.transport-connection-card.severity-info {
  border-inline-start-color: #3c7db2;
  background: rgba(232,243,252,.86);
}

.transport-connection-line {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-teal);
}

.transport-connection-line i {
  flex: 1;
  height: 2px;
  background: currentColor;
}

.transport-connection-line b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  background: currentColor;
}

.transport-connection-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.transport-connection-copy h3,
.transport-connection-copy p {
  margin: 0;
}

.transport-connection-copy h3 {
  color: var(--brand-blue-deep);
  font-size: 1rem;
}

.transport-connection-copy p,
.transport-connection-copy small {
  color: var(--muted);
}

.transport-connection-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.text-danger {
  color: #b32e3b !important;
}

@media (max-width: 1080px) {
  .map-side-panel {
    min-height: 0 !important;
    height: auto !important;
  }

  .map-side-summary,
  .map-point-list-scroll {
    min-height: 340px !important;
  }
}

@media (max-width: 720px) {
  .map-layer-control-heading,
  .transport-connection-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .map-layer-actions {
    justify-content: flex-start;
  }

  .map-layer-switches {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .map-layer-switch > span {
    width: 100%;
  }

  .map-layer-count {
    justify-self: start;
  }

  .transport-duration-preview {
    grid-template-columns: 42px minmax(0,1fr);
  }

  .transport-duration-preview > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .transport-connection-card {
    margin-inline: 6px;
  }

  .transport-connection-actions {
    justify-content: flex-start;
  }
}

/* ============================================================
   OrganizeMe v0.99.14 — multi-segment journeys and itinerary links
   ============================================================ */

.page-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.page-heading-actions form { margin: 0; }

.journey-form {
  display: grid;
  gap: 18px;
}

.journey-form > .form-section {
  margin: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(8,166,163,.08), transparent 32%),
    rgba(255,255,255,.97);
  border-color: rgba(5,72,132,.16);
}

.journey-segments-section {
  overflow: visible;
}

.journey-route-preview {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
  padding: 13px 15px;
  border: 1px solid rgba(8,166,163,.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,251,250,.94), rgba(235,245,251,.9));
  color: var(--navy);
}

.journey-route-preview-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(5,72,132,.16);
}

.journey-segment-list {
  display: grid;
  gap: 16px;
}

.journey-segment-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(5,72,132,.2);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(242,249,250,.93));
  box-shadow: 0 9px 25px rgba(5,72,132,.07);
}

.journey-segment-card::before {
  content: "";
  position: absolute;
  inset-block: 16px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, var(--navy-2), var(--gold));
}

[dir="rtl"] .journey-segment-card::before {
  border-radius: 6px 0 0 6px;
}

.journey-segment-card.is-inactive { display: none; }
.journey-segment-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.journey-segment-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(5,72,132,.12);
}

.journey-segment-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.journey-segment-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.journey-segment-heading small {
  display: block;
  max-width: 680px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-segment-number,
.journey-timeline-number,
.journey-mini-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  font-weight: 900;
  box-shadow: 0 7px 17px rgba(5,72,132,.16);
}

.journey-segment-number { width: 42px; height: 42px; font-size: 1rem; }

.journey-segment-head-actions,
.journey-segment-actions,
.linked-transport-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.journey-segment-actions {
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed rgba(5,72,132,.22);
}

.journey-segment-actions small { color: var(--muted); }

.journey-segment-route {
  align-items: stretch;
  margin-top: 14px;
}

.journey-segment-route .transport-form-stop {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(5,72,132,.15);
  border-radius: 15px;
  background: rgba(255,255,255,.76);
}

.journey-segment-route .transport-form-stop h4 {
  margin: 0 0 10px;
  color: var(--navy);
}

.journey-place-endpoint,
.journey-place-endpoint .transport-place-query-shell,
.journey-place-endpoint .transport-place-query-field {
  position: relative;
  min-width: 0;
}

.journey-place-endpoint {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
  padding: 11px;
  border: 1px solid rgba(8,166,163,.22);
  border-radius: 13px;
  background: rgba(232,251,250,.52);
}

.journey-place-endpoint .transport-place-suggestions {
  z-index: 90;
}

.journey-layover-preview {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  width: min(460px, 100%);
  margin: 12px auto 0;
  padding: 9px 12px;
  border: 1px dashed rgba(154,97,0,.32);
  border-radius: 12px;
  background: rgba(255,245,216,.66);
}

.journey-layover-preview > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--warning);
  background: var(--warning-soft);
}

.journey-layover-preview > div { display: grid; gap: 1px; }
.journey-layover-preview small { color: var(--muted); }

.journey-segment-more {
  margin-top: 12px;
  border-top: 1px solid rgba(5,72,132,.1);
}

.journey-segment-more > summary {
  width: fit-content;
  padding: 10px 2px 4px;
  color: var(--navy-2);
  font-weight: 800;
  cursor: pointer;
}

.journey-segment-more[open] > summary { margin-bottom: 10px; }

.journey-segment-financials {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(228,165,34,.25);
  border-radius: 13px;
  background: rgba(255,250,236,.74);
}

.journey-pricing-mode {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.journey-pricing-mode .choice-card {
  min-height: 108px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid rgba(5,72,132,.18);
  border-radius: 15px;
  background: rgba(248,252,253,.92);
}

.journey-pricing-mode .choice-card:has(input:checked) {
  border-color: rgba(8,166,163,.65);
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(8,166,163,.09);
}

.journey-pricing-mode .choice-card > span { display: grid; gap: 4px; }
.journey-pricing-mode .choice-card small { color: var(--muted); font-weight: 400; }

.journey-total-pricing {
  padding: 13px;
  border-radius: 14px;
  background: rgba(234,245,251,.68);
}

.participant-selector-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.participant-fieldset {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(5,72,132,.16);
  border-radius: 14px;
  background: rgba(248,252,253,.82);
}

.participant-fieldset legend {
  padding: 0 7px;
  color: var(--navy);
  font-weight: 800;
}

.participant-choice-list {
  display: grid;
  gap: 7px;
  max-height: 280px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.participant-choice {
  display: grid;
  grid-template-columns: auto 34px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(5,72,132,.12);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.participant-choice:has(input:checked) {
  border-color: rgba(8,166,163,.45);
  background: var(--gold-soft);
}

.participant-choice input { width: 17px; height: 17px; }
.participant-choice > span:last-child { min-width: 0; display: grid; }
.participant-choice b,
.participant-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.participant-choice-icon,
.participant-choice-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--navy-2), var(--gold));
  font-weight: 900;
}

.journey-icon-column {
  background: linear-gradient(180deg, #075b92, #08a6a3) !important;
}

.transport-journey-card {
  border-color: rgba(8,166,163,.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(8,166,163,.09), transparent 30%),
    white;
}

.journey-mini-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  margin: 13px 0;
  padding: 10px;
  border: 1px solid rgba(5,72,132,.12);
  border-radius: 13px;
  background: rgba(246,251,252,.9);
}

.journey-mini-stop {
  display: grid;
  grid-template-columns: 30px minmax(110px,1fr) minmax(22px,70px);
  gap: 7px;
  align-items: center;
  min-width: 180px;
}

.journey-mini-stop > div { min-width: 0; display: grid; }
.journey-mini-stop strong,
.journey-mini-stop small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-mini-stop > i { height: 3px; background: linear-gradient(90deg,var(--navy-2),var(--gold)); }
.journey-mini-number { width: 30px; height: 30px; border-radius: 9px; font-size: .78rem; }

.journey-show-heading .activity-badges { margin-top: 9px; }

.journey-overview-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: 16px;
}

.journey-summary-card,
.journey-travelers-card {
  min-width: 0;
}

.journey-summary-card h2,
.journey-travelers-card h2 { margin-top: 0; color: var(--navy); }

.journey-summary-card dl {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  margin: 0;
}

.journey-summary-card dl > div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border-radius: 11px;
  background: rgba(242,249,250,.9);
}

.journey-summary-card dt { color: var(--muted); font-size: .8rem; }
.journey-summary-card dd { margin: 0; color: var(--navy); font-weight: 900; }
.journey-notes { padding: 10px 12px; border-inline-start: 4px solid var(--gold); background: var(--gold-soft); border-radius: 9px; }

.journey-linked-activities {
  display: grid;
  gap: 6px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.journey-linked-activities a {
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--info-soft);
}

.journey-timeline-panel { overflow: hidden; }
.journey-timeline { position: relative; display: grid; gap: 0; }

.journey-timeline::before {
  content: "";
  position: absolute;
  inset-block: 28px;
  inset-inline-start: 22px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg,var(--navy),var(--gold));
  opacity: .35;
}

.journey-timeline-segment {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
}

.journey-timeline-number { width: 46px; height: 46px; border-radius: 14px; }

.journey-timeline-body {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(5,72,132,.16);
  border-radius: 15px;
  background: white;
  box-shadow: 0 7px 20px rgba(5,72,132,.06);
}

.journey-timeline-body > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.journey-timeline-body h3 { margin: 3px 0 0; color: var(--navy); }

.journey-timeline-route {
  display: grid;
  grid-template-columns: minmax(0,1fr) 90px minmax(0,1fr);
  gap: 12px;
  align-items: center;
}

.journey-timeline-route > div:not(.journey-timeline-flight) {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 11px;
  background: rgba(242,249,250,.9);
}

.journey-timeline-route strong { color: var(--navy); }
.journey-timeline-route time { font-weight: 800; }
.journey-timeline-route span { color: var(--muted); font-size: .75rem; }

.journey-timeline-flight {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 60px;
  text-align: center;
}

.journey-timeline-flight::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,var(--navy-2),var(--gold));
}

.journey-timeline-flight b,
.journey-timeline-flight span {
  position: relative;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: white;
}

.journey-timeline-flight b { font-size: 1.25rem; }
.journey-timeline-flight span { color: var(--muted); font-size: .72rem; }
.journey-segment-price { display: block; margin-top: 9px; color: var(--success); font-weight: 800; }

.journey-layover-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  width: min(520px, calc(100% - 60px));
  margin: 2px auto;
  padding: 10px 13px;
  border: 1px dashed rgba(154,97,0,.38);
  border-radius: 13px;
  background: var(--warning-soft);
}

.journey-layover-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: white;
  background: var(--warning);
}

.journey-layover-card > div { display: grid; gap: 2px; }
.journey-layover-card.is-conflict { border-color: rgba(167,45,53,.42); background: var(--danger-soft); }
.journey-layover-card.is-conflict > span { background: var(--danger); }

.transport-activity-suggestion-panel {
  border-color: rgba(8,166,163,.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(8,166,163,.1), transparent 34%),
    white;
}

.transport-activity-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px;
}

.transport-activity-suggestion-card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(5,72,132,.16);
  border-radius: 13px;
  background: rgba(248,252,253,.94);
}

.transport-suggestion-icon,
.linked-transport-icon,
.transport-continuation-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg,var(--navy),var(--gold));
  font-size: 1.15rem;
  font-weight: 900;
}

.transport-activity-suggestion-card > div { min-width: 0; display: grid; gap: 2px; }
.transport-activity-suggestion-card strong,
.transport-activity-suggestion-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.linked-transport-banner {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid rgba(8,166,163,.35);
  border-radius: 15px;
  background: linear-gradient(135deg,rgba(232,251,250,.93),rgba(234,245,251,.9));
}

.linked-transport-banner.is-changed {
  border-color: rgba(154,97,0,.38);
  background: var(--warning-soft);
}

.linked-transport-banner > div { min-width: 0; display: grid; gap: 2px; }
.linked-transport-banner h3 { margin: 0; color: var(--navy); }
.linked-transport-banner p { margin: 0; color: var(--muted); }

.transport-continuation-card {
  border-style: dashed !important;
  border-color: rgba(8,166,163,.42) !important;
  background: linear-gradient(145deg,rgba(232,251,250,.95),rgba(237,247,250,.92)) !important;
  cursor: default !important;
}

.transport-continuation-card .matrix-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.transport-continuation-card .transport-continuation-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: .9rem;
}

.matrix-activity-card.is-linked-transport,
.activity-card.is-linked-transport {
  border-color: rgba(8,166,163,.34);
  background:
    linear-gradient(145deg,rgba(255,255,255,.98),rgba(232,251,250,.7));
}

.matrix-activity-card.is-linked-transport::before {
  background: linear-gradient(180deg,var(--navy-2),var(--gold));
}

@media (max-width: 1120px) {
  .journey-segment-route,
  .journey-overview-grid { grid-template-columns: 1fr; }
  .journey-segment-route .transport-form-arrow { transform: rotate(90deg); }
  .transport-activity-suggestion-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .journey-pricing-mode,
  .participant-selector-grid,
  .journey-summary-card dl { grid-template-columns: 1fr; }
  .journey-timeline-route { grid-template-columns: 1fr; }
  .journey-timeline-flight { min-height: 42px; }
  .journey-timeline-flight::before { inset-block: 0; inset-inline-start: 50%; width: 3px; height: auto; top: 0; }
  .journey-timeline-body > header,
  .journey-segment-heading { align-items: stretch; flex-direction: column; }
  .journey-segment-head-actions { justify-content: flex-start; }
  .linked-transport-banner { grid-template-columns: 44px minmax(0,1fr); }
  .linked-transport-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 600px) {
  .journey-segment-card { padding: 13px 11px; }
  .journey-segment-card::before { display: none; }
  .journey-segment-heading small { white-space: normal; }
  .journey-mini-timeline { padding: 8px; }
  .journey-timeline-segment { grid-template-columns: 36px minmax(0,1fr); gap: 8px; }
  .journey-timeline-number { width: 36px; height: 36px; border-radius: 11px; }
  .journey-timeline::before { inset-inline-start: 17px; }
  .journey-layover-card { width: calc(100% - 44px); }
  .transport-activity-suggestion-card { grid-template-columns: 38px minmax(0,1fr); }
  .transport-activity-suggestion-card form { grid-column: 1 / -1; }
  .participant-choice { grid-template-columns: auto 30px minmax(0,1fr); }
  .participant-choice-icon,
  .participant-choice-avatar { width: 30px; height: 30px; }
}

.linked-transport-banner.is-stale {
  border-color: rgba(154,97,0,.42);
  background: linear-gradient(135deg,var(--warning-soft),rgba(255,255,255,.94));
}

.linked-transport-banner.is-stale .linked-transport-icon {
  background: linear-gradient(135deg,var(--warning),#d68c15);
}

/* ============================================================
   OrganizeMe v0.99.15 — journey stability, round trips and RTL routes
   ============================================================ */

.route-sequence {
  display: inline-flex;
  unicode-bidi: isolate;
  align-items: center;
  gap: .42rem;
  max-width: 100%;
  color: inherit;
  line-height: 1.45;
  flex-wrap: wrap;
}

.route-sequence[data-route-direction="ltr"] {
  direction: ltr;
  text-align: left;
}

.route-sequence[data-route-direction="rtl"] {
  direction: rtl;
  text-align: right;
}

.route-sequence .route-hop {
  display: inline-flex;
  direction: inherit;
  unicode-bidi: isolate;
  align-items: center;
  gap: .42rem;
  flex: 0 0 auto;
}

.route-sequence .route-stop-text {
  direction: auto;
  unicode-bidi: isolate;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: inherit;
}

.route-sequence .route-arrow {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--brand-teal);
  font-weight: 950;
  flex: 0 0 auto;
}

.route-sequence.compact-route {
  gap: .28rem;
  font-size: .82rem;
}

.route-sequence.journey-full-route,
.route-sequence.booking-route {
  color: var(--brand-blue-deep);
  font-weight: 900;
}

.route-sequence.segment-route {
  margin-block: 6px;
  color: var(--brand-blue-deep);
  font-size: .9rem;
  font-weight: 850;
}

.journey-route-preview {
  unicode-bidi: isolate;
}

.journey-route-preview [data-journey-route-preview-text] {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  min-width: 0;
  max-width: 100%;
}

.journey-route-preview-sequence {
  display: inline-block;
  unicode-bidi: isolate;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.journey-route-preview-sequence[data-route-direction="rtl"] {
  direction: rtl;
  text-align: right;
}

.journey-route-preview-sequence[data-route-direction="ltr"] {
  direction: ltr;
  text-align: left;
}

.journey-route-preview-separator {
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--muted);
}

.participant-selector-grid {
  align-items: start;
}

.participant-choice-list {
  overflow-x: hidden !important;
}

.participant-choice {
  grid-template-columns: 35px minmax(0,1fr) !important;
  align-items: start !important;
  min-height: 58px;
}

.participant-choice > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.participant-choice b,
.participant-choice small {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.participant-choice b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.participant-choice small {
  max-width: 100%;
}

.journey-type-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.journey-type-choice {
  min-height: 106px;
}

.journey-identity-grid {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.journey-leg-field {
  display: grid;
  grid-template-columns: auto minmax(110px,1fr);
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: .76rem;
}

.journey-leg-field select {
  min-height: 34px;
  padding: 5px 8px;
}

.journey-leg-headings {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 10px 0;
}

.journey-leg-headings span {
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--brand-blue-deep);
  background: var(--surface-card-strong);
  font-weight: 900;
  text-align: center;
}

.journey-segment-actions {
  flex-wrap: wrap;
}

.unified-transport-timeline {
  display: grid;
  gap: 15px;
}

.journey-inline-details {
  display: block;
  padding: 0 !important;
  overflow: visible;
}

.journey-inline-details > summary {
  list-style: none;
}

.journey-inline-details > summary::-webkit-details-marker {
  display: none;
}

.journey-card-summary {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  cursor: pointer;
  border-radius: inherit;
  min-height: 180px;
}

.journey-card-summary:focus-visible {
  outline: 3px solid rgba(8,166,163,.28);
  outline-offset: 3px;
}

.journey-card-summary .transport-icon-column {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

html[dir="rtl"] .journey-card-summary .transport-icon-column {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.journey-card-summary .booking-card-main {
  padding: 18px;
}

.journey-card-title {
  display: block;
  margin: 5px 0;
  color: var(--brand-blue-deep);
  font-size: 1.15rem;
}

.journey-expand-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-teal);
  white-space: nowrap;
}

.journey-expand-hint i {
  display: inline-block;
  font-style: normal;
  transition: transform .18s ease;
}

.journey-inline-details[open] .journey-expand-hint i {
  transform: rotate(180deg);
}

.journey-card-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin-top: 13px;
}

.journey-card-stats > span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.72);
}

.journey-card-stats small {
  color: var(--muted);
}

.journey-inline-expanded {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 100% 0%,rgba(8,166,163,.08),transparent 34%),
    var(--surface-card-soft);
}

.journey-expanded-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.journey-expanded-toolbar h3 {
  margin: 0 0 5px;
  color: var(--brand-blue-deep);
}

.journey-expanded-toolbar .form-actions {
  margin: 0;
  flex-wrap: wrap;
}

.journey-expanded-segments {
  display: grid;
  gap: 9px;
}

.journey-expanded-segment {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
}

.journey-expanded-segment-copy {
  min-width: 0;
}

.journey-segment-time-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin: 9px 0;
}

.journey-segment-time-grid > span {
  display: grid;
  gap: 2px;
}

.journey-segment-time-grid small,
.journey-segment-time-grid em {
  color: var(--muted);
  font-size: .74rem;
  font-style: normal;
}

.journey-inline-layover {
  display: grid;
  grid-template-columns: 35px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  max-width: 620px;
  margin-inline: auto;
  padding: 9px 14px;
  border: 1px dashed rgba(228,165,34,.6);
  border-radius: 12px;
  background: rgba(255,244,214,.78);
}

.journey-inline-layover > span {
  font-size: 1.25rem;
}

.journey-inline-layover > div {
  display: grid;
}

.trip-schedule-preview-panel {
  overflow: hidden;
}

.schedule-preview-heading-actions,
.schedule-preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-preview-controls {
  justify-content: center;
  margin-bottom: 12px;
}

.enhanced-schedule-preview {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.enhanced-schedule-preview .timeline-day-link article {
  height: 100%;
  align-items: flex-start;
}

.timeline-day-link.is-current-day article {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(8,166,163,.1);
  background: var(--accent-soft);
}

.schedule-preview-day-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.schedule-preview-day-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.schedule-preview-activities {
  display: grid;
  gap: 2px;
  margin: 4px 0 0;
  padding-inline-start: 18px;
  color: var(--ink);
  font-size: .82rem;
}

.schedule-preview-activities li {
  overflow-wrap: anywhere;
}

.schedule-more-activities {
  color: var(--brand-teal);
  font-weight: 850;
}

.matrix-activity-head {
  position: relative;
}

.matrix-activity-actions {
  margin-inline-start: auto;
  z-index: 15;
}

.matrix-activity-actions .activity-action-menu {
  min-width: 190px;
}

@media (max-width: 980px) {
  .journey-type-grid,
  .enhanced-schedule-preview {
    grid-template-columns: 1fr;
  }

  .journey-card-stats,
  .journey-segment-time-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .participant-selector-grid {
    grid-template-columns: 1fr !important;
  }

  .participant-choice {
    grid-template-columns: 30px minmax(0,1fr) !important;
  }

  .journey-card-summary {
    grid-template-columns: 68px minmax(0,1fr);
  }

  .journey-expanded-toolbar {
    display: grid;
  }

  .journey-card-stats,
  .journey-segment-time-grid {
    grid-template-columns: 1fr;
  }

  .journey-type-grid {
    grid-template-columns: 1fr;
  }
}
.is-transport-activity .matrix-activity-location,
.transport-route-text {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}



/* OrganizeMe v0.99.16 — financial ledger readability */
.ledger-description-cell,.expense-description-cell,.expense-amount-cell{min-width:0}
.ledger-description-title,.expense-description-cell>strong,.expense-amount-cell>strong{display:block;line-height:1.45;margin:0 0 .3rem}
.ledger-description-meta,.expense-description-cell>small,.expense-amount-cell>small{display:block;line-height:1.45;color:var(--muted);margin-top:.2rem}
.ledger-route-sequence{margin:.15rem 0 .3rem;max-width:100%;white-space:normal}
.expense-amount-cell{white-space:nowrap}
[dir="rtl"] .ledger-route-sequence{direction:ltr;text-align:right}
@media(max-width:760px){.expense-amount-cell{white-space:normal}.ledger-route-sequence{font-size:.92rem}}


/* OrganizeMe v0.99.16 — reports and import */
.export-feature-panel,.print-report-panel{margin-block:1rem}.export-card-featured{grid-column:span 2;background:linear-gradient(145deg,#eefafa,#fff);border-color:#76ced0}.report-type-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.75rem}.report-type-card{display:flex;align-items:center;gap:.75rem;padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-decoration:none;color:var(--text);transition:.2s}.report-type-card:hover{transform:translateY(-2px);border-color:var(--accent)}.report-type-card span{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-weight:800}.import-preview-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}.import-canonical-note{margin-top:.75rem}@media(max-width:760px){.export-card-featured{grid-column:span 1}}

/* ========================================================================
   OrganizeMe v0.99.16-r3 — compact standalone transport cards
   Keep standalone bookings visually aligned with multi-segment journeys.
   ======================================================================== */
.booking-inline-details {
  display: block;
  padding: 0 !important;
  overflow: hidden;
  max-width: 100%;
}

.booking-inline-details > summary {
  list-style: none;
}

.booking-inline-details > summary::-webkit-details-marker {
  display: none;
}

.standalone-booking-summary {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  min-height: 180px;
  cursor: pointer;
  border-radius: inherit;
}

.standalone-booking-summary:focus-visible {
  outline: 3px solid rgba(8,166,163,.28);
  outline-offset: 3px;
}

.standalone-booking-summary .transport-icon-column {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

html[dir="rtl"] .standalone-booking-summary .transport-icon-column {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.standalone-booking-summary .booking-card-main {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 14px 17px;
}

.standalone-booking-head {
  min-width: 0;
}

.standalone-booking-head > span:first-child {
  min-width: 0;
}

.standalone-booking-title {
  display: block;
  margin: 4px 0 2px;
  color: var(--brand-blue-deep);
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.standalone-booking-route {
  margin-block: 2px;
  max-width: 100%;
}

.booking-expand-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-teal);
  white-space: nowrap;
}

.booking-expand-hint i {
  display: inline-block;
  font-style: normal;
  transition: transform .18s ease;
}

.booking-inline-details[open] .booking-expand-hint i {
  transform: rotate(180deg);
}

.booking-compact-time-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(90px,.55fr) minmax(0,1fr);
  gap: 7px;
  align-items: stretch;
}

.booking-compact-time-grid > span,
.booking-compact-stats > span {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.76);
}

.booking-compact-time-grid > span {
  display: grid;
  align-content: center;
  gap: 1px;
  min-height: 43px;
  padding: 6px 8px;
}

.booking-compact-time-grid small,
.booking-compact-stats small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.2;
}

.booking-compact-time-grid b {
  color: var(--brand-blue-deep);
  font-size: .84rem;
  overflow-wrap: anywhere;
}

.booking-compact-duration {
  justify-items: center;
  text-align: center;
  background: var(--accent-soft) !important;
}

.booking-compact-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
}

.booking-compact-stats > span {
  display: grid;
  gap: 1px;
  min-height: 39px;
  padding: 6px 8px;
}

.booking-compact-stats b {
  color: var(--brand-blue-deep);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.booking-inline-expanded {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 100% 0%,rgba(8,166,163,.08),transparent 34%),
    var(--surface-card-soft);
}

.booking-expanded-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.booking-expanded-toolbar h3 {
  margin: 0 0 5px;
  color: var(--brand-blue-deep);
}

.booking-expanded-toolbar .form-actions {
  margin: 0;
  flex-wrap: wrap;
}

.booking-expanded-route-board {
  display: grid;
  grid-template-columns: minmax(0,1fr) 170px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  background: linear-gradient(135deg,#f5fbfc,#edf8f8);
}

.booking-expanded-detail-grid {
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
}

.booking-inline-details[open] .standalone-booking-summary {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

@media (max-width: 980px) {
  .booking-compact-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .standalone-booking-summary {
    grid-template-columns: 72px minmax(0,1fr);
  }

  .booking-expanded-route-board {
    grid-template-columns: minmax(0,1fr) 110px minmax(0,1fr);
  }
}

@media (max-width: 680px) {
  .standalone-booking-summary {
    grid-template-columns: 68px minmax(0,1fr);
  }

  .booking-compact-time-grid {
    grid-template-columns: minmax(0,1fr) 76px minmax(0,1fr);
  }

  .booking-compact-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .booking-expanded-toolbar {
    display: grid;
  }

  .booking-expanded-route-board {
    grid-template-columns: 1fr;
    text-align: start;
  }

  .booking-expanded-route-board .transport-stop:last-child {
    text-align: start;
  }
}

@media (max-width: 600px) {
  .standalone-booking-summary {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .standalone-booking-summary .transport-icon-column {
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 10px 13px;
  }

  html[dir="rtl"] .standalone-booking-summary .transport-icon-column {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .standalone-booking-summary .booking-card-main {
    padding: 13px;
  }

  .booking-compact-time-grid {
    grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr);
  }

  .booking-compact-stats {
    grid-template-columns: 1fr;
  }

  .booking-inline-expanded {
    padding: 13px;
  }

  .booking-expanded-toolbar .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .booking-expanded-toolbar .form-actions .btn,
  .booking-expanded-toolbar .form-actions form,
  .booking-expanded-toolbar .form-actions form .btn {
    width: 100%;
  }
}


/* ============================================================
   OrganizeMe v0.99.16-r4 — script-aware route direction
   ============================================================ */
.route-sequence[data-route-direction="rtl"] .route-hop,
.route-sequence[data-route-direction="ltr"] .route-hop {
  max-width: 100%;
}

/* Preserve content-aware direction in financial-ledger route rows. */
html[dir="rtl"] .route-sequence.ledger-route-sequence[data-route-direction="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .route-sequence.ledger-route-sequence[data-route-direction="ltr"] {
  direction: ltr;
  text-align: left;
}
