/* Compact working layout: palette colors remain; decorative wallpaper gives way to useful space. */
@media screen {
  html[data-sadat-ui][data-palette] body:not(.print-mode) { --sadat-nav-width:204px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) :is(.sidebar,.desk-hero)::before,
  html[data-sadat-ui][data-palette] body:not(.print-mode) :is(.sidebar,.desk-hero)::after,
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .brand-stage::before { display:none!important; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar {
    width:var(--sadat-nav-width);padding:12px 10px;display:block;
    background:linear-gradient(160deg,#ffffff0d,transparent 32%),var(--sadat-sidebar);
    border-inline-end:1px solid var(--sadat-line);border-inline-start:0;
    box-shadow:inset -1px 0 #ffffff0b,2px 0 16px #00000016;
    overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--sadat-control) transparent;
  }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .brand {
    gap:9px;padding:6px 3px 12px;min-height:56px;border-bottom:1px solid var(--sadat-line);background:none;
  }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .ka-sidebar-badge { width:38px;height:38px;min-width:38px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .brand strong { font-size:13px;line-height:1.5;letter-spacing:.04em;text-shadow:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .brand small { font-size:8px;letter-spacing:.06em; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .workspace-label { min-height:0;margin:12px 0 10px;padding:8px 7px;font-size:10px;box-shadow:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar nav { display:flex;flex-direction:column;gap:3px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-label { display:block;margin:12px 8px 5px;padding:0;font-size:10px;line-height:1.5;letter-spacing:0; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-item {
    min-height:36px;gap:8px;padding:7px 9px;margin:0;border:1px solid transparent;border-radius:7px;
    background:transparent;color:var(--sadat-side-muted);font-size:12px;line-height:1.55;
    white-space:normal;box-shadow:none;transition:background-color 140ms,border-color 140ms;
  }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-item svg { width:17px;height:17px;flex:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-item:hover { background:color-mix(in srgb,var(--sadat-side-text) 8%,transparent);border-color:var(--sadat-line);box-shadow:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-item.active {
    background:var(--sadat-nav-active);color:var(--sadat-side-text);border-color:var(--sadat-nav-edge);box-shadow:inset 0 1px #ffffff19;
  }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-item.active::before { width:3px;inset-inline-start:-1px;border-radius:2px;background:var(--sadat-nav-edge);box-shadow:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-item:focus-visible { outline:2px solid var(--sadat-nav-edge);outline-offset:-2px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-spark { display:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar-bottom { margin-top:15px;padding-top:10px;border-top:1px solid var(--sadat-line); }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .sidebar-foot { margin-top:12px;padding:9px;background:transparent;border-radius:0;box-shadow:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .shell { min-width:0;max-width:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .shell > .topbar {
    display:flex;flex-wrap:nowrap;align-items:center;gap:10px;min-height:62px;height:auto;padding:10px 16px;position:relative;
    box-shadow:0 1px 0 var(--sadat-line);border-bottom:0;
  }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .breadcrumb { min-width:0;flex:1 1 auto;gap:8px;font-size:12px;white-space:nowrap; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .breadcrumb strong { overflow:hidden;text-overflow:ellipsis;min-width:0; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .shell > .main { padding:16px 18px 28px;min-width:0;max-width:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace { width:100%;max-width:1600px;margin-inline:auto; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-hero {
    display:grid;grid-template-columns:minmax(0,1fr) 318px;grid-template-rows:auto auto;grid-template-areas:'welcome clock' 'calendar calendar';
    height:auto;min-height:0;max-height:none;aspect-ratio:auto;gap:0;margin:0 0 18px;padding:0;align-items:stretch;
    background:linear-gradient(120deg,var(--sadat-deep),var(--sadat-panel));border:1px solid var(--sadat-line);border-radius:14px;box-shadow:0 8px 20px var(--sadat-case-shadow);
  }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome {
    grid-area:welcome;padding:16px 20px;margin:0;height:auto;min-height:0;max-height:none;aspect-ratio:auto;background:none;
  }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-eyebrow { gap:10px;margin:0;font-size:11px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .ka-desk-badge { width:36px;height:36px;min-width:36px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-eyebrow small { margin-top:1px;font-size:9px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-greeting { margin:7px 0 4px;font-size:11px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome h1 { margin:4px 0 6px;font-size:27px;line-height:1.35;letter-spacing:0; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome h1 span { display:inline;margin-inline-start:7px;font-size:inherit;line-height:inherit; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-description { margin:4px 0 9px;font-size:11px;line-height:1.8;max-width:55em; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome .heading-actions { gap:7px;margin:10px 0 0;flex-wrap:wrap; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome .heading-actions .button { min-height:36px;padding:7px 11px;font-size:11px;gap:7px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-currency-note { margin-top:9px;font-size:9px;gap:6px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .desk-timepiece.sadat-timepiece-v2 {
    --watch-size:138px;grid-area:clock;display:grid;grid-template-columns:var(--watch-size) minmax(0,1fr);
    grid-template-rows:auto auto auto;grid-template-areas:'watch heading' 'watch reading' 'watch caption';
    align-content:center;align-items:center;justify-content:normal;gap:5px 12px;padding:16px 12px;margin:0;
    height:auto;min-height:0;max-height:none;aspect-ratio:auto;border-inline-start:1px solid var(--sadat-line);background:var(--sadat-panel);
  }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 .sadat-watch-shell { grid-area:watch;width:var(--watch-size);max-width:100%;height:auto;aspect-ratio:1;margin:0;align-self:center; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 .sadat-clock-heading { grid-area:heading;display:flex;flex-wrap:wrap;justify-content:center;gap:5px;font-size:10px;line-height:1.4; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 .sadat-clock-reading { grid-area:reading;justify-content:center;gap:3px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 .sadat-clock-caption { grid-area:caption;justify-content:center;gap:3px 6px;font-size:9px;line-height:1.4; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 #desk-live-time { font-size:23px;line-height:1.3;white-space:nowrap; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 #desk-clock-format { min-height:40px;min-width:44px;padding:4px 8px;font-size:10px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-calendars { grid-area:calendar;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;height:auto;min-height:0;aspect-ratio:auto;padding:0; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-card { min-width:0;min-height:0;padding:10px 16px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-title { font-size:10px;line-height:1.4; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value { margin:5px 0;gap:8px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value strong { font-size:27px;line-height:1; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value div { font-size:11px;line-height:1.4; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value b { font-size:10px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-foot { margin:4px 0 0;font-size:8px;line-height:1.3; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-section-heading { margin:14px 0 10px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-section-heading h2 { font-size:15px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-overview-note { margin:4px 0 10px;font-size:10px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi-grid { gap:12px;margin-bottom:16px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi { padding:14px;min-height:116px;border-radius:11px; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi-label { font-size:11px;line-height:1.5; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi-value { margin:9px 0 8px;font-size:27px;line-height:1.2; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi-foot { font-size:9px; }
  html[data-sadat-ui][data-palette] body.luxury-login:not(.print-mode) .emblem-stage { transform:none; }
  @media(min-width:700px) {
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar { position:fixed;left:auto;right:auto;inset-block:0;inset-inline-start:0;inset-inline-end:auto;height:100vh;height:100dvh;max-height:100dvh;transform:none!important;visibility:visible;pointer-events:auto;z-index:60; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .shell { width:auto;margin:0;margin-inline-start:var(--sadat-nav-width); }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .menu-toggle,
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar-shade { display:none!important; }
  }
  @media(min-width:700px) and (max-width:1099px) {
    html[data-sadat-ui][data-palette] body:not(.print-mode) { --sadat-nav-width:184px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar { padding-inline:8px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-item { padding-inline:7px;font-size:11px;gap:6px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .brand strong { font-size:11px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .shell > .main { padding:12px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-hero { grid-template-columns:minmax(0,1fr) 224px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .desk-timepiece.sadat-timepiece-v2 { --watch-size:104px;padding:12px 9px;gap:4px 8px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 #desk-live-time { font-size:19px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome { padding:13px 14px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome h1 { font-size:21px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-description { display:none; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-card { padding:9px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media(min-width:700px) and (max-width:1399px) {
    html[data-sadat-ui][data-palette] body:not(.print-mode) .ka-mobile-tools-toggle { display:grid;flex:none; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .shell > .topbar .top-tools { display:flex!important;flex:0 0 auto;gap:0; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .top-tools > :not(.profile) { display:none!important; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .top-tools > .profile { display:flex!important; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .breadcrumb > span { display:none; }
  }
  @media(max-width:1399px) {
    html[data-sadat-ui][data-palette] body:not(.print-mode).mobile-tools-open .shell > .topbar .top-tools {
      display:flex!important;position:absolute;inset-inline:12px;top:calc(100% + 6px);z-index:100;
      flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px;padding:14px;
      max-height:65vh;max-height:65dvh;overflow:auto;background:var(--sadat-panel);border:1px solid var(--sadat-control);border-radius:12px;box-shadow:0 15px 40px #00000055;
    }
    html[data-sadat-ui][data-palette] body:not(.print-mode).mobile-tools-open .top-tools > * { display:flex!important; }
    html[data-sadat-ui][data-palette] body:not(.print-mode).mobile-tools-open .top-search { flex:1 1 180px;max-width:none; }
  }
  @media(min-width:1400px) {
    html[data-sadat-ui][data-palette] body:not(.print-mode) .ka-mobile-tools-toggle { display:none; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .top-tools { flex-wrap:nowrap;gap:7px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .top-search { width:170px;min-width:0; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .profile { gap:7px; }
  }
  @media(max-width:1599px) { html[data-sadat-ui][data-palette] body:not(.print-mode) .top-tools .today { display:none; } }
  @media(max-width:899px) { html[data-sadat-ui][data-palette] body:not(.print-mode):not(.mobile-tools-open) .top-tools .ka-profile-account { display:none; } }
  @media(max-width:699px) {
    html[data-sadat-ui][data-palette] body:not(.print-mode) { --sadat-nav-width:min(288px,84vw); }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar { height:100vh;height:100dvh;max-height:100dvh;padding:12px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sidebar .nav-item { min-height:44px;font-size:12px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .shell { width:auto;margin:0; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .shell > .topbar { min-height:62px;padding:9px 12px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .ka-mobile-tools-toggle { display:grid; }
    html[data-sadat-ui][data-palette] body:not(.print-mode):not(.mobile-tools-open) .top-tools { display:none!important; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .shell > .main { padding:12px 12px 84px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-hero { grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:'welcome' 'clock' 'calendar';margin-bottom:14px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome { padding:13px 14px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome h1 { font-size:22px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-greeting,
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-description { display:none; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-welcome .heading-actions .button { min-height:42px;font-size:10px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .desk-timepiece.sadat-timepiece-v2 { --watch-size:88px;grid-template-columns:88px minmax(0,1fr);padding:10px 16px;gap:3px 16px;border-inline-start:0;border-top:1px solid var(--sadat-line); }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 .sadat-clock-heading { justify-content:space-between;font-size:10px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 #desk-live-time { font-size:22px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-card { padding:8px 7px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-title { font-size:8px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value { margin:4px 0;gap:4px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value strong { font-size:23px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value div { font-size:9px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-foot { font-size:7px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
    html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi { padding:12px;min-height:116px; }
  }
}

@media screen {
  html[data-sadat-ui] { scrollbar-width:thin;scrollbar-color:var(--sadat-control) var(--sadat-bg); }
  html[data-sadat-ui]::-webkit-scrollbar,html[data-sadat-ui] .sidebar::-webkit-scrollbar { width:7px; }
  html[data-sadat-ui]::-webkit-scrollbar-thumb,html[data-sadat-ui] .sidebar::-webkit-scrollbar-thumb { background:var(--sadat-control);border-radius:8px;border:2px solid var(--sadat-bg); }
  html[data-sadat-ui]::-webkit-scrollbar-track,html[data-sadat-ui] .sidebar::-webkit-scrollbar-track { background:var(--sadat-bg); }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-foot { display:none; }
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-title,
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value div,
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-date-value b,
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-currency-note,
  html[data-sadat-ui][data-palette] body:not(.print-mode) .desk-workspace .kpi-foot,
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 .sadat-clock-heading,
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 .sadat-clock-caption,
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 .sadat-clock-caption bdi,
  html[data-sadat-ui][data-palette] body:not(.print-mode) .sadat-timepiece-v2 #desk-clock-format { font-size:11px; }
}

/* The signed-in logo artwork is present in the first HTML, including on poor links. */
.sadat-logo-frame { position:relative; display:block; flex:none; isolation:isolate; }
.sadat-logo-header { width:48px; height:48px; }
.sadat-logo-hero, .sadat-logo-intro { width:100%; height:100%; }
.sadat-logo-frame > img { position:absolute; inset:0; display:block; width:100%; height:100%; margin:0; object-fit:contain; }
.sadat-logo-frame > .sadat-logo-preview { z-index:0; pointer-events:none; }
.sadat-logo-frame > img.sadat-logo-upgrade { z-index:1; opacity:0; }
.sadat-logo-frame[data-sadat-logo-ready] > img.sadat-logo-upgrade { opacity:1; }
.sadat-logo-frame[data-sadat-logo-ready] > .sadat-logo-preview { visibility:hidden; }
@media(max-width:600px) { .sadat-logo-header { width:40px; height:40px; } }
