.zus-portal { display: none; }

:root[data-theme="zus"] {
  --background: #ebebeb;
  --foreground: #222;
  --muted: #4b4b4b;
  --border: #a6a6a6;
  color-scheme: light;
}

[data-theme="zus"] main { display: block; }
[data-theme="zus"] main > :is(h1, canvas, .projects, .word-caption, .contact) { display: none; }
[data-theme="zus"] .zus-portal {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: #222;
  background: #ebebeb;
  font: 13px/1.22 Tahoma, Arial, sans-serif;
}

[data-theme="zus"] .theme-switch {
  z-index: 3;
  top: 6px;
  right: 7px;
  gap: 1px;
  padding: 2px;
  border-color: #6a842e;
  background: #c7d990;
}
[data-theme="zus"] .theme-switch button { min-width: 35px; min-height: 23px; padding: 4px 7px; font: bold 11px Arial, sans-serif; }
[data-theme="zus"] .theme-switch button[aria-pressed="true"] { color: #fff; background: #4b642a; }

.zus-portal a { color: inherit; }
.zus-portal button, .zus-portal input { font: inherit; }
.zus-portal button, .zus-portal summary { cursor: pointer; }
.zus-portal :focus-visible { outline: 2px solid #79501c; outline-offset: 2px; }
.zus-portal [hidden] { display: none !important; }
.zus-header { position: relative; flex: 0 0 58px; background: #accb4c; border-bottom: 3px double #fff; }
.zus-logo { position: absolute; top: 5px; left: 10px; color: #15513e !important; font: italic 900 32px/1.1 Arial, sans-serif; letter-spacing: -2px; text-decoration: none; border-bottom: 5px solid #15513e; padding-right: 6px; }
.zus-session { position: absolute; left: 224px; top: 7px; font-size: 12px; }
.zus-session > strong { display: inline-block; min-width: 126px; padding: 1px 8px; background: #172515; color: #d3e59b; font: 11px monospace; letter-spacing: 2px; }
.zus-exit { margin-top: 5px; padding: 2px 15px; border: 1px solid #819c39; border-radius: 3px; background: linear-gradient(#d6e99f, #aac657); color: #444; font-weight: bold !important; }
.zus-session-note { margin-left: 10px; color: #455525; font-size: 10px; }
.zus-help { position: absolute; top: 9px; right: 202px; font-size: 11px; font-weight: bold; text-decoration: none; color: #4b543b !important; }
.zus-help-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 5px; border: 1px solid white; border-radius: 2px; outline: 1px solid #4b642a; background: #4b642a; color: white; font: bold 12px Arial, sans-serif; vertical-align: middle; }
.zus-tabs { position: absolute; right: 2px; bottom: -1px; display: flex; gap: 1px; }
.zus-tabs button { border: 1px solid #818181; border-radius: 5px 5px 0 0; padding: 4px 17px 3px; background: linear-gradient(#fafafa, #ddd); color: #454545; font-size: 11px; font-weight: bold; }
.zus-tabs button[aria-pressed="true"] { background: white; color: #111; border-bottom-color: white; }
.zus-tabs .zus-eportal { border: 4px solid #e42920; border-radius: 0; padding: 1px 13px; background: #606060 !important; color: #fff !important; }
.zus-workspace { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 4px; flex: 1; min-height: 0; padding: 0 3px; }
.zus-sidebar { min-height: 0; overflow-y: auto; padding-bottom: 6px; border-right: 1px solid white; }
.zus-bar { display: flex; align-items: center; gap: 4px; min-height: 37px; padding: 5px 9px; border-radius: 5px 5px 0 0; background: #696969; color: white; font: 18px/1 "Arial Narrow", "Helvetica Neue", sans-serif; }
.zus-scroll-cap { height: 16px; width: 85px; margin: 8px auto 14px; border: 1px solid #c2c2c2; border-radius: 6px; color: #b4b4b4; text-align: center; font-size: 10px; }
.zus-menu-home, .zus-menu-tile { position: relative; display: block; margin-bottom: 2px; padding: 11px 36px 10px 10px; border: 1px solid #aaa; border-radius: 5px; background: #d9d9d9; text-decoration: none; }
.zus-menu-home { background: #accb4c; }
.zus-menu-home span, .zus-menu-tile span { display: block; margin-top: 5px; font-size: 12px; }
.zus-menu-home b, .zus-menu-tile b { position: absolute; right: 10px; top: 12px; color: #4b6829; font-size: 29px; line-height: 1; }
.zus-menu a { display: block; margin-bottom: 2px; padding: 8px 10px 8px 14px; border: 1px solid #b0b0b0; border-radius: 5px; background: #ebebeb; font-size: 12px; text-decoration: none; }
.zus-menu a::before { content: "▧"; margin-right: 9px; font-size: 11px; color: #779631; }
.zus-menu a:hover, .zus-sidebar a[aria-current] { background: #f2c665; }
.zus-menu-tile { min-height: 57px; }
.zus-content { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: white; }
.zus-panel-bar { flex-shrink: 0; }
.zus-panel-bar h2 { margin: 0; font: inherit; }
.zus-account { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; min-height: 24px; padding: 3px 10px; font-family: Georgia, serif; }
.zus-account > strong { font-size: 12px; }
.zus-account .zus-exit { margin: 0; padding: 0; border: 0; background: none; color: #885037; font-family: Arial, sans-serif; }
.zus-panels { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 12px 2px; scrollbar-color: #bdbdbd #eee; }
.zus-card-grid { columns: 2; column-gap: 5px; }
.zus-card { display: inline-block; vertical-align: top; width: 100%; margin-bottom: 6px; border: 1px solid #aab782; border-radius: 2px; background: white; break-inside: avoid; scroll-margin: 6px; }
.zus-card h3 { position: relative; margin: 0; padding: 5px 27px 5px 10px; background: #accb4c; color: #090d03; font: bold 12px/1.2 Arial, sans-serif; min-height: 26px; }
.zus-collapse { position: absolute; right: 3px; top: 3px; display: grid; place-items: center; width: 17px; height: 18px; padding: 0; border: 1px solid white; outline: 1px solid #4b642a; border-radius: 2px; background: #4b642a; color: white; font-size: 11px !important; }
.zus-card-body { padding: 7px 10px 7px; }
.zus-card ul { padding-left: 12px; margin: 0 0 8px; }
.zus-card li + li { margin-top: 2px; }
.zus-card p { margin: 8px 0; }
.zus-card a:not(.zus-action) { color: #4c6722; text-underline-offset: 2px; }
.zus-card details { display: flex; flex-direction: column; }
.zus-card summary, .zus-action { display: block; width: fit-content; margin-left: auto; padding: 0; border: 0; color: #ac622b !important; background: transparent; font-size: 12px !important; font-weight: bold !important; text-align: right; text-decoration: none; }
.zus-card summary { list-style: none; }
.zus-card summary::-webkit-details-marker { display: none; }
.zus-card summary::after { content: " ▸"; }
.zus-card details[open] summary::after { content: " ▾"; }
.zus-card details[open] p { border-top: 1px solid #ddd; padding-top: 7px; }
.zus-calculator label { display: block; margin-bottom: 4px; font-size: 12px; }
.zus-calculator > div { display: flex; gap: 5px; }
.zus-calculator input { width: 80px; min-width: 0; border: 1px solid #999; padding: 3px 5px; background: white; color: #222; }
.zus-calculator button { padding: 3px 12px; border: 1px solid #999; border-radius: 3px; color: #333; background: linear-gradient(white, #d8d8d8); }
.zus-calculator output:not(:empty), .zus-receipt { display: block; border: 1px solid #b1c380; background: #f1f5e5; padding: 8px; margin-top: 8px; }
.zus-footer { padding: 8px 2px; color: #777; font-size: 10px; break-inside: avoid; }
.zus-mobile-menu { display: none; }

@media (min-width: 1400px) { .zus-card-grid { columns: 3; } }
@media (max-width: 850px) {
  .zus-help, .zus-session-note { display: none; }
  .zus-workspace { grid-template-columns: 210px minmax(0, 1fr); }
  .zus-card-grid { columns: 1; }
  .zus-session > strong { min-width: 65px; }
}
@media (max-width: 600px) {
  .zus-header { flex-basis: 114px; }
  .zus-logo { top: 9px; font-size: 20px; letter-spacing: -0.8px; border-bottom-width: 3px; }
  .zus-session { left: 10px; top: 51px; font-size: 10px; }
  .zus-session > br { display: none; }
  .zus-session .zus-exit { margin: 0 0 0 5px; padding: 2px 8px; }
  .zus-tabs { width: calc(100% - 4px); }
  .zus-tabs button { flex: 1; padding: 5px 3px; font-size: 10px; }
  .zus-tabs .zus-eportal { display: none; }
  .zus-workspace { position: relative; grid-template-columns: minmax(0, 1fr); }
  .zus-sidebar { display: none; }
  .zus-menu-open .zus-sidebar { display: block; position: absolute; z-index: 4; top: 37px; bottom: 0; left: 0; width: min(270px, 90%); padding: 4px; background: #ebebeb; box-shadow: 3px 2px 6px #0005; }
  .zus-mobile-menu { display: inline-block; padding: 3px 7px; border: 1px solid #bbb; border-radius: 2px; background: #777; color: white; font: 12px Arial, sans-serif !important; margin-right: 4px; }
  .zus-bar { font-size: 15px; }
  .zus-account { font-size: 12px; }
  .zus-panels { padding: 3px 5px; }
  .zus-card h3 { font-size: 13px; }
  .zus-card-body { font-size: 13px; line-height: 1.35; }
  .zus-collapse { width: 22px; height: 22px; top: 2px; }
  .zus-card h3 { min-height: 29px; padding-right: 30px; }
}
