/* SeriousBusiness Suite 2000 - a parody. Grey bevels, gradients, and process. */
:root {
  --face: #d4d0c8;
  --hi: #ffffff;
  --shadow: #808080;
  --dark: #404040;
  --desk: #3a6ea5;
  --t1: #0a246a;
  --t2: #a6caf0;
  --sel: #0a246a;
  --tip: #ffffe1;
  --tb: 30px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--desk);
  font: 12px Tahoma, "MS Sans Serif", Verdana, "DejaVu Sans", sans-serif;
  color: #000;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
button, input, select, textarea { font: inherit; color: #000; }
.noscript { color: #fff; padding: 24px; font-size: 16px; }

/* ---------- bevels ---------- */
.raised, .btn, .win, .menu, .taskbtn, .beginbtn {
  background: var(--face);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shadow), inset 2px 2px var(--face);
}
.sunken, .field, .listview, .tray {
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shadow), inset -2px -2px var(--face), inset 2px 2px var(--dark);
}
.btn {
  border: 0; min-width: 75px; min-height: 23px; padding: 3px 10px; cursor: default;
}
.btn:active:not(:disabled), .btn.pressed {
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--dark), inset -2px -2px var(--face), inset 2px 2px var(--shadow);
  padding: 4px 9px 2px 11px;
}
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.btn:disabled { color: var(--shadow); text-shadow: 1px 1px var(--hi); }
.btn.default { box-shadow: inset 0 0 0 1px #000, inset -2px -2px var(--dark), inset 2px 2px var(--hi), inset -3px -3px var(--shadow), inset 3px 3px var(--face); }
.field {
  border: 0; background: #fff; padding: 4px 5px; min-height: 22px; width: 100%;
  user-select: text; -webkit-user-select: text;
}
.field:disabled, .field[readonly] { background: var(--face); color: #444; }
select.field { padding: 2px; }
textarea.field { resize: none; }

/* ---------- desktop ---------- */
#desktop { position: fixed; inset: 0 0 var(--tb) 0; }
#layer { position: fixed; inset: 0 0 var(--tb) 0; pointer-events: none; }
#layer > * { pointer-events: auto; }
.icons {
  position: absolute; top: 8px; left: 8px; bottom: 8px;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 84px); gap: 4px 8px;
}
.dicon {
  width: 80px; border: 0; background: none; color: #fff; padding: 4px 2px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: default;
  text-align: center; font-size: 12px;
}
.dicon svg { width: 34px; height: 34px; }
.dicon span { padding: 1px 3px; line-height: 1.25; text-shadow: 1px 1px 1px #000; }
.dicon:focus { outline: none; }
.dicon:focus span, .dicon.sel span { background: var(--sel); outline: 1px dotted #fff; text-shadow: none; }
.dicon:focus svg, .dicon.sel svg { filter: brightness(.6) sepia(1) hue-rotate(190deg) saturate(4); }
.wallmark {
  position: absolute; right: 22px; bottom: 18px; color: rgba(255,255,255,.55); text-align: right;
  font: italic bold 26px/1.1 "Trebuchet MS", Tahoma, sans-serif; pointer-events: none;
}
.wallmark small { display: block; font: 12px Tahoma, sans-serif; font-style: normal; opacity: .9; }

/* ---------- taskbar ---------- */
#taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--tb); z-index: 100000;
  background: var(--face); box-shadow: inset 0 1px var(--face), inset 0 2px var(--hi);
  display: flex; align-items: center; gap: 4px; padding: 2px 2px 0;
}
.beginbtn {
  border: 0; height: 24px; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 4px; font-weight: bold; cursor: default;
}
.beginbtn svg { width: 18px; height: 18px; }
.beginbtn.on, .taskbtn.on {
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--dark), inset -2px -2px var(--face), inset 2px 2px var(--shadow);
}
.taskbtn.on { background: repeating-conic-gradient(#fff 0 25%, var(--face) 0 50%) 0 0 / 2px 2px; font-weight: bold; }
.tasks { flex: 1; display: flex; gap: 3px; overflow: hidden; min-width: 0; }
.taskbtn {
  border: 0; height: 24px; min-width: 0; flex: 0 1 160px; display: flex; align-items: center; gap: 4px;
  padding: 0 6px; text-align: left; cursor: default; white-space: nowrap; overflow: hidden;
}
.taskbtn svg { width: 16px; height: 16px; flex: none; }
.taskbtn span { overflow: hidden; text-overflow: ellipsis; }
.tray { height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 8px; white-space: nowrap; }
.tray svg { width: 16px; height: 16px; cursor: default; }

/* ---------- begin menu ---------- */
.menu { position: fixed; z-index: 100001; padding: 3px; min-width: 180px; }
.beginmenu { left: 2px; bottom: calc(var(--tb) - 2px); display: flex; padding: 3px 3px 3px 0; }
.beginmenu .side {
  width: 24px; background: linear-gradient(0deg, #000080, #1084d0); color: #d4d0c8;
  writing-mode: vertical-rl; transform: rotate(180deg); font: bold 15px Tahoma, sans-serif; padding: 6px 2px; letter-spacing: .5px;
}
.beginmenu .side b { color: #fff; }
.beginmenu .items { flex: 1; min-width: 210px; }
.mi {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left;
  padding: 6px 18px 6px 6px; cursor: default; white-space: nowrap;
}
.mi svg { width: 24px; height: 24px; flex: none; }
.mi:hover, .mi:focus { background: var(--sel); color: #fff; outline: none; }
.msep { height: 2px; margin: 3px 2px; box-shadow: inset 0 1px var(--shadow), inset 0 -1px var(--hi); }
.dropmenu .mi { padding: 4px 22px 4px 18px; }

/* ---------- windows ---------- */
.win {
  position: absolute; display: flex; flex-direction: column; padding: 3px; min-width: 200px; max-width: 100vw;
}
.titlebar {
  height: 20px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 2px 0 3px;
  background: linear-gradient(90deg, var(--t1), var(--t2)); color: #fff; font-weight: bold; touch-action: none;
}
.win.inactive .titlebar { background: linear-gradient(90deg, #808080, #c0c0c0); color: #d4d0c8; }
.titlebar .ti svg { width: 16px; height: 16px; display: block; }
.titlebar .tt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbtns { display: flex; gap: 0; }
.tbtns button {
  width: 16px; height: 14px; padding: 0; border: 0; display: grid; place-items: center; cursor: default; margin-left: 0;
  background: var(--face);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shadow), inset 2px 2px var(--face);
}
.tbtns button:active { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--dark), inset -2px -2px var(--face), inset 2px 2px var(--shadow); }
.tbtns .tb-close { margin-left: 2px; }
.tbtns svg { width: 8px; height: 7px; }
.wbody { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.win.minimized { display: none; }
.win.opening { animation: open .18s ease-out; }
@keyframes open { from { transform: scale(.2); opacity: 0; } }

.menubar { display: flex; flex-wrap: wrap; padding: 1px 0; flex: none; }
.menubar button { border: 0; background: none; padding: 3px 7px; cursor: default; }
.menubar button:hover, .menubar button.on { box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--hi); }
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1px; padding: 2px 3px; flex: none;
  box-shadow: inset 0 1px var(--hi), inset 0 -1px var(--shadow);
}
.toolbar .tbn {
  border: 0; background: none; min-width: 23px; height: 22px; padding: 0 4px; cursor: default; display: grid; place-items: center;
}
.toolbar .tbn:hover { box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--hi); }
.toolbar .tbn:active, .toolbar .tbn.on { box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shadow); }
.toolbar .tsep { width: 2px; height: 18px; margin: 0 3px; box-shadow: inset 1px 0 var(--shadow), inset -1px 0 var(--hi); }
.toolbar select.field { width: auto; height: 20px; min-height: 0; padding: 0 2px; }
.statusbar { display: flex; gap: 2px; padding-top: 2px; flex: none; }
.statusbar > div { padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shadow); }
.statusbar > div:first-child { flex: 1; }

/* ---------- message boxes ---------- */
.modalveil { position: fixed; inset: 0; z-index: 299990; }
.msgbox { position: fixed; z-index: 299991; width: min(420px, calc(100vw - 24px)); }
.msgbox .mbody { display: flex; gap: 14px; padding: 14px 12px 8px; align-items: flex-start; }
.msgbox .mbody > svg { width: 32px; height: 32px; flex: none; }
.msgbox .mtext { padding-top: 2px; line-height: 1.45; user-select: text; -webkit-user-select: text; }
.msgbox .mtext p { margin: 0 0 8px; }
.msgbox .mbtns { display: flex; justify-content: center; gap: 6px; padding: 6px 10px 10px; flex-wrap: wrap; }
.shake { animation: shake .35s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* ---------- boot ---------- */
.screen { position: fixed; inset: 0; z-index: 200000; display: grid; place-items: center; }
.boot { background: #000; }
.splash { width: min(480px, calc(100vw - 32px)); background: #fff; border: 1px solid #888; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }
.splash .sp-top { display: flex; align-items: center; gap: 16px; padding: 26px 24px 14px; }
.splash .sp-top svg { width: 64px; height: 64px; flex: none; }
.brand { font: italic bold 30px/1 "Trebuchet MS", Tahoma, sans-serif; color: #0a246a; letter-spacing: -.5px; }
.brand em { color: #c0262d; }
.brand small { display: block; font: normal 14px Tahoma, sans-serif; color: #555; letter-spacing: 0; margin-top: 6px; }
.splash .sp-mid { padding: 0 24px 16px; color: #333; line-height: 1.5; }
.splash .sp-status { padding: 6px 24px 14px; color: #000; min-height: 34px; }
.splash .sp-strip { height: 8px; background: linear-gradient(90deg, #c0262d 0 25%, #e8a400 0 50%, #2b8a3e 0 75%, #1c5bb8 0); }
.skip { position: fixed; right: 12px; bottom: 12px; z-index: 200001; color: #aaa; background: none; border: 0; text-decoration: underline; font-size: 13px; padding: 8px; }
.cad { background: var(--desk); }
.cad .win, .logon .win { position: relative; width: min(440px, calc(100vw - 24px)); }
.cadbody { padding: 0; }
.cadbanner { background: linear-gradient(90deg, #0a246a, #3a6ea5); color: #fff; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.cadbanner svg { width: 40px; height: 40px; }
.cadbanner .brand { color: #fff; font-size: 22px; }
.cadbanner .brand em { color: #ffcc66; }
.cadbanner .brand small { color: #dde; font-size: 12px; margin-top: 3px; }
.cadtext { padding: 18px 18px 10px; display: flex; gap: 14px; align-items: center; line-height: 1.5; font-size: 13px; }
.keys { display: inline-flex; gap: 4px; }
.key { display: inline-block; padding: 2px 7px; background: #fff; border: 1px solid #888; border-bottom-width: 3px; border-radius: 3px; font-weight: bold; }
.formgrid { display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; align-items: center; padding: 14px 18px; }
.btnrow { display: flex; justify-content: flex-end; gap: 6px; padding: 4px 18px 16px; flex-wrap: wrap; }

/* ---------- list views ---------- */
.listview { background: #fff; flex: 1; overflow: auto; margin: 6px; min-height: 80px; }
.listview table { border-collapse: collapse; width: 100%; }
.listview th {
  position: sticky; top: 0; background: var(--face); text-align: left; font-weight: normal; padding: 3px 6px; white-space: nowrap;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shadow);
}
.listview td { padding: 4px 6px; white-space: nowrap; }
.listview td svg { width: 16px; height: 16px; vertical-align: -4px; margin-right: 6px; }
.listview tr.row { cursor: default; }
.listview tr.row.sel td { background: var(--sel); color: #fff; }
.listview tr.row.sel td:first-child span { outline: 1px dotted #fff; }
.taskfoot { display: flex; align-items: center; gap: 8px; padding: 2px 6px 6px; flex-wrap: wrap; }
.taskfoot .grow { flex: 1; min-width: 150px; color: #333; }
.banner {
  margin: 6px 6px 0; padding: 8px 10px; background: var(--tip); border: 1px solid #888; display: flex; gap: 10px; align-items: center; line-height: 1.4;
}
.banner svg { width: 24px; height: 24px; flex: none; }

/* ---------- wizard ---------- */
.wiz { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.wizhead { background: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 14px; flex: none;
  box-shadow: inset 0 -1px var(--shadow), 0 1px var(--hi); }
.wizhead .wh-text { flex: 1; }
.wizhead b { display: block; font-size: 12px; }
.wizhead span { display: block; padding: 4px 0 0 14px; color: #333; }
.wizhead svg { width: 40px; height: 40px; flex: none; }
.wizmain { flex: 1; min-height: 0; display: flex; }
.wizside { width: 150px; flex: none; background: linear-gradient(160deg, #0a246a, #3a6ea5 60%, #a6caf0); position: relative; overflow: hidden; }
.wizside svg { position: absolute; left: 12px; bottom: 14px; width: 120px; height: 120px; }
.wizcontent { flex: 1; min-width: 0; overflow: auto; padding: 14px 18px; line-height: 1.5; user-select: text; -webkit-user-select: text; }
.wizcontent h2 { font: bold 17px Tahoma, sans-serif; margin: 0 0 12px; }
.wizcontent p { margin: 0 0 10px; }
.wizcontent ul { margin: 0 0 10px; padding-left: 20px; }
.wizfoot { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px; flex: none; box-shadow: inset 0 1px var(--shadow), inset 0 2px var(--hi); flex-wrap: wrap; }
.wizfoot .stepno { flex: 1; color: #444; min-width: 90px; }
.wizfoot .gap { width: 6px; }
.flds { display: grid; gap: 10px; }
.fld label.lbl { display: block; margin-bottom: 3px; }
.fld .hint { color: #666; font-size: 11px; margin-top: 2px; }
.fld .opts { display: flex; flex-direction: column; gap: 4px; }
.fld .opts label { display: flex; gap: 6px; align-items: center; }
.fld input[type=range] { width: 100%; }
.req { color: #c00; }
.eulabox { height: 150px; overflow: auto; background: #fff; padding: 8px 10px; font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
.eulabox h3 { font-size: 12px; margin: 0 0 6px; text-align: center; }
.eulabox p { margin: 0 0 8px; }
.chk { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; }
.chk input { margin-top: 2px; }
.chk.dis { color: var(--shadow); }
.approvals { width: 100%; border-collapse: collapse; background: #fff; }
.approvals td { padding: 5px 6px; border-bottom: 1px solid #e4e4e4; vertical-align: top; }
.approvals td:first-child { width: 22px; }
.approvals td.st { color: #555; }
.approvals .dot { width: 12px; height: 12px; border-radius: 50%; background: #bbb; margin-top: 2px; }
.approvals .dot.wait { background: #e8a400; animation: pulse 1s infinite; }
.approvals .dot.ok { background: #2b8a3e; }
.approvals .dot.meh { background: #c0262d; }
@keyframes pulse { 50% { opacity: .3; } }
.pbar { height: 20px; padding: 3px; background: #fff; margin: 10px 0 6px; }
.pbar i { display: block; height: 100%; width: 0; transition: width .35s;
  background: repeating-linear-gradient(90deg, #0a246a 0 9px, transparent 9px 11px); }
.pmsg { min-height: 20px; }
.pleft { color: #555; font-size: 11px; }
.captcha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 300px; }
.captcha button {
  aspect-ratio: 1; border: 2px solid #fff; background: #eef3fb; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 26px; cursor: default; padding: 0; box-shadow: 0 0 0 1px #999;
}
.captcha button small { font-size: 10px; color: #333; }
.captcha button.on { border-color: #1c5bb8; background: #cfe0ff; box-shadow: 0 0 0 2px #1c5bb8; }
.capthead { background: #1c5bb8; color: #fff; padding: 8px 10px; max-width: 300px; margin-bottom: 4px; }
.capthead b { font-size: 15px; display: block; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10px; }
.cal th { background: var(--face); padding: 3px 2px; font-weight: bold; }
.cal td { padding: 0; border: 1px solid #c8c8c8; height: 26px; }
.cal td.tm { background: var(--face); text-align: right; padding-right: 4px; white-space: nowrap; }
.cal button { width: 100%; height: 100%; border: 0; font-size: 10px; padding: 1px; cursor: default; overflow: hidden; line-height: 1.1; }
.cal button.busy { background: #c9d7ef; color: #223; }
.cal button.free { background: #fff; color: #2b8a3e; font-weight: bold; }
.cal button.pick { background: #2b8a3e; color: #fff; }
.calmsg { min-height: 18px; margin-top: 6px; color: #444; }
.sigpad { background: #fff; width: 100%; height: 130px; touch-action: none; display: block; cursor: crosshair; }
.sigline { border-top: 1px solid #333; margin: -30px 16px 22px; position: relative; pointer-events: none; font-size: 10px; color: #666; padding-top: 2px; }
.quizq { margin-bottom: 12px; }
.quizq b { display: block; margin-bottom: 4px; }
.printdlg { display: grid; grid-template-columns: 80px 1fr; gap: 8px; align-items: center; margin-bottom: 10px; }
.bigclick { display: grid; place-items: center; padding: 20px 0; }
.bigclick .btn { font-size: 18px; padding: 12px 28px; min-width: 160px; }
.done-note { background: #e8f5e9; border: 1px solid #2b8a3e; padding: 8px 10px; margin-top: 10px; }

/* ---------- certificate ---------- */
.cert { flex: 1; overflow: auto; background: #808080; padding: 12px; }
.certpage {
  background: #fffdf3; max-width: 560px; margin: 0 auto; padding: 22px 20px; text-align: center; color: #222;
  border: 10px double #b8860b; outline: 2px solid #b8860b; outline-offset: -18px; font-family: Georgia, "Times New Roman", serif;
}
.wordart {
  font: italic 900 38px/1.05 Impact, "Arial Black", "Trebuchet MS", sans-serif; letter-spacing: 1px; margin: 4px 0 12px;
  background: linear-gradient(180deg, #ffef5a 0%, #ff9b00 45%, #e01a5f 55%, #7a1fa2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 3px 0 #333);
  transform: perspective(400px) rotateX(18deg) skewX(-8deg);
}
.certpage .who { font-size: 22px; font-style: italic; border-bottom: 1px solid #999; display: inline-block; padding: 0 20px 2px; margin: 6px 0 10px; }
.certpage .what { font-size: 18px; font-weight: bold; margin: 6px 0 14px; }
.certstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 14px; text-align: left; font-family: Tahoma, sans-serif; font-size: 12px; max-width: 380px; margin: 0 auto 14px; }
.certstats div { display: flex; justify-content: space-between; border-bottom: 1px dotted #bbb; }
.certsig { display: flex; justify-content: space-around; gap: 10px; margin-top: 18px; font-size: 11px; font-family: Tahoma, sans-serif; }
.certsig div { border-top: 1px solid #555; padding-top: 3px; min-width: 120px; }
.certsig i { display: block; font: italic 18px "Brush Script MT", "Segoe Script", cursive; color: #1c3d8c; margin-bottom: -2px; }
.seal { width: 74px; height: 74px; margin: 6px auto 0; }

/* ---------- word processor ---------- */
.docarea { flex: 1; overflow: auto; background: #808080; padding: 14px; }
.ruler { height: 18px; background: #fff; margin: 0 auto 0; max-width: 620px; flex: none;
  background-image: repeating-linear-gradient(90deg, #888 0 1px, transparent 1px 12px); background-size: 12px 5px; background-repeat: repeat-x; background-position: 0 100%; }
.page {
  background: #fff; max-width: 620px; min-height: 100%; margin: 0 auto; padding: 48px 52px; box-shadow: 3px 3px 0 #333;
  font: 15px/1.55 "Times New Roman", Times, serif; outline: none; user-select: text; -webkit-user-select: text; white-space: pre-wrap;
}
.page .squig { text-decoration: underline wavy #e00; text-decoration-skip-ink: none; text-underline-offset: 3px; }
.page .gsquig { text-decoration: underline wavy #090; text-decoration-skip-ink: none; text-underline-offset: 3px; }
.page h1 { font: bold 22px Arial, sans-serif; margin: 0 0 4px; text-align: center; }

/* ---------- spreadsheet ---------- */
.fxbar { display: flex; gap: 4px; padding: 3px; align-items: center; flex: none; }
.fxbar .namebox { width: 70px; flex: none; }
.fxbar .fx { font-style: italic; font-weight: bold; padding: 0 4px; font-family: "Times New Roman", serif; }
.grid { flex: 1; overflow: auto; background: #fff; margin: 0 3px; }
.grid table { border-collapse: collapse; font-size: 12px; }
.grid th { background: var(--face); font-weight: normal; padding: 2px 4px; min-width: 28px;
  box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--hi); position: sticky; top: 0; z-index: 1; }
.grid tbody th { position: sticky; left: 0; top: auto; }
.grid td { border: 1px solid #d0d0d0; padding: 2px 5px; white-space: nowrap; height: 20px; cursor: cell; }
.grid td.sel { outline: 2px solid #000; outline-offset: -2px; }
.grid td.num { text-align: right; }
.grid td.err { color: #c00; text-align: center; }
.grid td.b { font-weight: bold; }
.grid td.h { background: #ffffcc; font-weight: bold; }
.grid td.tot { border-top: 2px double #000; font-weight: bold; }
.sheettabs { display: flex; gap: 0; padding: 0 0 2px 22px; flex: none; }
.sheettabs button { border: 1px solid #808080; border-top: 0; background: var(--face); padding: 2px 12px; margin-right: -1px; cursor: default; }
.sheettabs button.on { background: #fff; font-weight: bold; }

/* ---------- slides ---------- */
.stage { flex: 1; min-height: 0; background: #1b1b1b; display: grid; place-items: center; overflow: hidden; padding: 10px; }
.slide {
  width: min(100%, 640px); aspect-ratio: 4 / 3; max-height: 100%; background: linear-gradient(180deg, #0b3a8a, #2a74d0 70%, #8ec1ff);
  color: #fff; position: relative; overflow: hidden; padding: 6% 7%; font-family: "Trebuchet MS", Tahoma, sans-serif;
  container-type: inline-size;
}
.slide h1 { font: bold 9cqw/1.05 "Trebuchet MS", Tahoma, sans-serif; margin: 10% 0 4%; text-shadow: 3px 3px 0 #04224f; color: #ffe066; }
.slide h2 { font: bold 6.5cqw/1.1 "Trebuchet MS", Tahoma, sans-serif; margin: 0 0 4%; color: #ffe066; text-shadow: 2px 2px 0 #04224f; }
.slide p, .slide li { font-size: 4.2cqw; line-height: 1.35; }
.slide ul { padding-left: 6%; margin: 0; }
.slide li { margin-bottom: 2.2%; }
.slide .foot { position: absolute; left: 7%; right: 7%; bottom: 3%; display: flex; justify-content: space-between; font-size: 2.6cqw; opacity: .85; }
.slide .swoosh { position: absolute; right: -10%; bottom: -12%; width: 70%; height: 40%; border-radius: 50%; border-top: 3cqw solid rgba(255,224,102,.55); transform: rotate(-12deg); }
.slide small { font-size: 2.8cqw; opacity: .9; }
.chart { display: flex; align-items: flex-end; gap: 4%; height: 52%; padding: 0 4%; border-left: 2px solid #fff; border-bottom: 2px solid #fff; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 2.6cqw; }
.chart .bar i { display: block; width: 100%; background: linear-gradient(180deg, #ffe066, #e8a400); border: 1px solid #04224f; }
.chart .bar.red i { background: linear-gradient(180deg, #ff8a8a, #c0262d); }
.legend { display: flex; gap: 6%; font-size: 3cqw; margin-top: 3%; }
.legend span::before { content: ""; display: inline-block; width: 2.6cqw; height: 2.6cqw; margin-right: 1cqw; background: #e8a400; vertical-align: middle; }
.legend span.red::before { background: #c0262d; }
.t-spin { animation: tspin .8s ease-out; }
@keyframes tspin { from { transform: rotate(-540deg) scale(0); } }
.t-fly { animation: tfly .7s cubic-bezier(.2,1.6,.4,1); }
@keyframes tfly { from { transform: translateX(-120%) rotate(-8deg); } }
.t-zoom { animation: tzoom .7s ease-out; }
@keyframes tzoom { from { transform: scale(4); opacity: 0; filter: blur(6px); } }
.t-flip { animation: tflip .8s ease-out; }
@keyframes tflip { from { transform: perspective(600px) rotateY(180deg); } }
.t-drop { animation: tdrop .8s cubic-bezier(.3,1.8,.5,1); }
@keyframes tdrop { from { transform: translateY(-130%); } }
.slidenav { display: flex; align-items: center; gap: 6px; padding: 6px 4px 2px; flex: none; flex-wrap: wrap; }
.slidenav .grow { flex: 1; }

/* ---------- Doug ---------- */
#doug { position: fixed; right: 14px; bottom: calc(var(--tb) + 12px); z-index: 99980; display: none; flex-direction: column; align-items: flex-end; gap: 6px; max-width: min(300px, calc(100vw - 28px)); }
#doug.show { display: flex; animation: dougin .4s cubic-bezier(.2,1.6,.4,1); }
@keyframes dougin { from { transform: translateY(40px) scale(.6); opacity: 0; } }
#doug .bubble {
  background: var(--tip); border: 1px solid #000; border-radius: 8px; padding: 10px 12px; position: relative; line-height: 1.45;
  box-shadow: 2px 2px 0 rgba(0,0,0,.35);
}
#doug .bubble::after { content: ""; position: absolute; right: 34px; bottom: -10px; border: 10px solid transparent; border-bottom: 0; border-top-color: #000; }
#doug .bubble::before { content: ""; position: absolute; right: 35px; bottom: -8px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--tip); z-index: 1; }
#doug .bubble b { display: block; margin-bottom: 4px; }
#doug .dopts { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
#doug .dopts button { text-align: left; border: 0; background: none; color: #00c; text-decoration: underline; padding: 2px 0 2px 14px; cursor: pointer; position: relative; }
#doug .dopts button::before { content: "\25CF"; position: absolute; left: 0; font-size: 9px; top: 4px; color: #1c5bb8; text-decoration: none; }
#doug .dougbody { width: 76px; height: 86px; border: 0; background: none; padding: 0; cursor: pointer; }
#doug .dougbody svg { width: 100%; height: 100%; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(2deg); } }
.blink { animation: blink 4s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* ---------- balloon ---------- */
.balloon {
  position: fixed; right: 8px; bottom: calc(var(--tb) + 8px); z-index: 99985; width: min(290px, calc(100vw - 16px));
  background: var(--tip); border: 1px solid #000; border-radius: 6px; padding: 8px 10px 10px; box-shadow: 2px 2px 0 rgba(0,0,0,.35); line-height: 1.4;
}
.balloon b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.balloon b svg { width: 16px; height: 16px; }
.balloon .x { position: absolute; right: 4px; top: 4px; border: 0; background: none; font-size: 14px; cursor: default; padding: 2px 6px; }

/* ---------- shutdown ---------- */
.safe { background: #000; color: #ff8c00; font: bold 22px/1.4 Tahoma, sans-serif; text-align: center; padding: 20px; cursor: pointer; }
.safe small { display: block; color: #777; font-size: 13px; font-weight: normal; margin-top: 18px; }

/* ---------- phones ---------- */
body.narrow { font-size: 13px; }
body.narrow .win.app:not(.dlg) { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
body.narrow .wizside { display: none; }
body.narrow .wallmark { font-size: 20px; }
body.narrow .taskbtn { flex-basis: 110px; }
body.narrow .page { padding: 24px 20px; font-size: 16px; }
body.narrow .wordart { font-size: 30px; }
body.narrow .formgrid { grid-template-columns: 1fr; gap: 4px; }
body.narrow .formgrid label { margin-top: 6px; }
body.narrow .titlebar { height: 26px; }
body.narrow .tbtns button { width: 22px; height: 20px; }
body.narrow .tbtns .tb-max { display: none; }
body.narrow .dicon { width: 84px; font-size: 13px; }
body.narrow .certstats { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body * { visibility: hidden !important; }
  .certpage, .certpage * { visibility: visible !important; }
  .certpage { position: fixed; left: 0; top: 0; width: 100%; max-width: none; }
  html, body { background: #fff; }
}

/* Doug on phones: top of the screen, out of the way of wizard buttons */
body.narrow #doug { top: 8px; bottom: auto; right: 8px; flex-direction: row-reverse; align-items: flex-start; max-width: calc(100vw - 16px); }
body.narrow #doug .dougbody { width: 52px; height: 60px; flex: none; }
body.narrow #doug .bubble::before, body.narrow #doug .bubble::after { display: none; }
body.narrow #doug .bubble { padding: 8px 10px; }

/* ---------- multiplayer ---------- */
.mpico { display: inline-flex; align-items: center; gap: 3px; cursor: default; }
.mpico b { font-weight: normal; min-width: 8px; }
#ghosts { position: fixed; inset: 0; pointer-events: none; z-index: 99970; overflow: hidden; }
.ghost { position: absolute; transition: left 1.5s linear, top 1.5s linear; display: flex; align-items: flex-start; gap: 2px; }
.ghost svg { width: 12px; height: 19px; fill: var(--gc); stroke: #fff; stroke-width: 1; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); }
.ghost span { margin-top: 14px; background: var(--gc); color: #fff; font-size: 10px; padding: 1px 5px; white-space: nowrap; border: 1px solid rgba(0,0,0,.3); }
.mphead { display: flex; align-items: center; gap: 8px; padding: 8px 8px 4px; flex: none; }
.mpme b { display: block; }
.mpme .sub, .mpdetail .sub { color: #555; font-size: 11px; }
.mplist { margin: 4px 6px; min-height: 120px; }
.mpgroup { font-weight: bold; padding: 4px 6px; color: #0a246a; }
.mprow { display: flex; gap: 8px; align-items: flex-start; width: 100%; border: 0; background: none; text-align: left; padding: 5px 8px; cursor: default; }
.mprow:hover { background: #e8eefc; }
.mprow.sel { background: var(--sel); color: #fff; }
.mprow.sel i { color: #dde; }
.mpn { min-width: 0; }
.mpn b { display: block; font-weight: normal; }
.mpn i { display: block; font-size: 11px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpdot { width: 10px; height: 10px; border-radius: 50%; background: #2b8a3e; border: 1px solid #0b4a1e; margin-top: 3px; flex: none; }
.mpdot.away { background: #e8a400; border-color: #8a5a00; }
.mpempty { padding: 16px 12px; color: #555; text-align: center; line-height: 1.5; }
.mpdetail { flex: none; margin: 0 6px 6px; }
.mpsurf { background: var(--tip); border: 1px solid #888; padding: 8px 10px; line-height: 1.4; }
.mpsurf .nm { display: block; font-size: 13px; }
.mpsurf .act { margin: 2px 0 4px; }
.mpsurf .pbar { margin: 4px 0; height: 14px; }
.mpsend { display: flex; gap: 6px; margin-top: 8px; }
.mpsend select { flex: 1; min-width: 0; }
.mpsend .btn { min-width: 64px; }

/* ---------- notepad ---------- */
.notepad { flex: 1; overflow: auto; background: #fff; margin: 2px 3px; padding: 6px 8px; white-space: pre-wrap; font: 13px/1.45 "Lucida Console", "Courier New", monospace; user-select: text; -webkit-user-select: text; }

/* ---------- Break Room Vending ---------- */
.vendbox { flex: 1; min-height: 0; display: flex; gap: 6px; padding: 6px; background: #8f1d22; overflow: auto; }
.vglass { flex: 1.3; min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; background: linear-gradient(135deg, #dceefa, #b9d8ee 60%, #e8f4fc); align-content: start; }
.vslot { border: 0; border-bottom: 3px solid #777; background: transparent; padding: 4px 2px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 11px; cursor: default; min-height: 74px; }
.vslot.sel { outline: 2px dashed #c0262d; outline-offset: -2px; }
.vslot small { background: #222; color: #7dff7d; padding: 0 4px; font-family: "Lucida Console", "Courier New", monospace; }
.vsnack { display: block; width: 28px; height: 36px; border: 1px solid #333; border-radius: 3px 3px 1px 1px; box-shadow: inset 4px 0 rgba(255,255,255,.35); }
.vslot.stuck .vsnack { transform: translateY(6px) rotate(-14deg); transition: transform .5s; }
.vslot.gone .vsnack { visibility: hidden; }
.vpanel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vlcd { background: #0a2a0a; color: #7dff7d; font: 12px/1.35 "Lucida Console", "Courier New", monospace; padding: 6px 8px; min-height: 64px; white-space: pre-wrap; border: 2px inset #555; overflow-wrap: anywhere; }
.vctl { flex: 1; display: flex; flex-direction: column; gap: 6px; background: var(--face); padding: 6px; min-height: 120px; }
.vctl .btn { width: 100%; }
.vquotes { display: flex; flex-direction: column; gap: 4px; }
.vquotes .btn { text-align: left; font-size: 11px; padding: 4px 6px; }
.vlbl { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.vhint { margin: 0; font-size: 12px; color: #333; }
.vtray { border: 0; height: 44px; background: #222; color: #888; font: bold 11px sans-serif; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; cursor: default; flex: none; }
.vtray.full .vsnack { transform: rotate(80deg); width: 22px; height: 30px; }
.win.vshook { animation: shake .4s; }
body.narrow .vendbox { flex-direction: column; overflow-y: auto; }
body.narrow .vglass, body.narrow .vpanel { flex: none; }

/* Org Chart (Live) */
.orgbtns { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; flex: none; }
.orgbtns .btn { min-width: 0; }
.orgnews { margin: 0 4px 4px; padding: 4px 6px; min-height: 34px; font-size: 12px; background: #fffbe0; flex: none; }
.orgwrap { flex: 1; min-height: 0; overflow: auto; background: #fff; margin: 0 4px; padding: 10px 6px; border: 1px solid #888; }
.orgtree { display: flex; flex-direction: column; align-items: center; max-width: 560px; margin: 0 auto; }
.ob { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; max-width: 160px; padding: 4px; border: 1px solid #1c3d8c; background: #e6eeff; box-shadow: 2px 2px 0 #9aa; font: inherit; font-size: 11px; line-height: 1.2; cursor: default; overflow-wrap: anywhere; }
.ob small { color: #555; font-size: 10px; }
.ob.dotted { border-style: dashed; border-color: #c0262d; }
.ob.you { background: #fff59a; outline: 2px solid #c0262d; }
.ob i { position: absolute; top: -8px; right: -4px; background: #c0262d; color: #fff; font: bold 9px sans-serif; padding: 1px 3px; font-style: normal; }
.ob.flash { animation: obflash .7s; }
.ob.found { animation: shake .4s 2; }
@keyframes obflash { 0% { transform: scale(.85) rotate(-3deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
.orgv { width: 0; height: 10px; border-left: 1px solid #333; flex: none; }
.orgcols { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; padding-top: 10px; }
.orgcols::before { content: ''; position: absolute; top: 0; left: 16.6%; right: 16.6%; border-top: 1px solid #333; }
.orgcol { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.orgcol::before { content: ''; position: absolute; top: -10px; left: 50%; height: 10px; border-left: 1px solid #333; }
body.narrow .ob { font-size: 10px; padding: 3px 2px; }

/* ---------- hit counter ---------- */
.hitcounter { position: absolute; right: 16px; top: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer; color: rgba(255,255,255,.75); font: 11px Tahoma, sans-serif; }
.hitcounter[hidden] { display: none; }
.odo { display: inline-flex; gap: 1px; padding: 2px; background: #111; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.odo b { display: inline-block; width: 12px; text-align: center; font: bold 15px/20px "Courier New", monospace; color: #7CFC00; background: linear-gradient(#000 0 48%, #1a1a1a 52% 100%); }
.odo .odoc { color: #7CFC00; font: bold 13px/20px monospace; font-style: normal; width: 5px; }
body.narrow .hitcounter { top: 10px; right: 12px; }
/* Conference Room Booking */
.rmbar { flex-wrap: wrap; gap: 4px; padding: 4px; }
.rmbar select.field { max-width: 100%; min-width: 0; }
.rmbar .btn { min-width: 0; }
.rmwrap { flex: 1; min-height: 0; overflow: auto; background: #fff; margin: 0 4px; border: 1px solid #888; }
.rmgrid { border-collapse: collapse; width: 100%; min-width: 380px; table-layout: fixed; font-size: 11px; }
.rmgrid th { background: var(--face); border: 1px solid #aaa; padding: 2px; font-weight: bold; position: sticky; top: 0; z-index: 1; }
.rmgrid tr > th:first-child { width: 40px; position: sticky; left: 0; text-align: right; }
.rmgrid td { border: 1px solid #ccc; padding: 1px; height: 38px; }
.rmc { width: 100%; height: 100%; min-height: 34px; border: 0; padding: 2px; font-size: 10px; line-height: 1.15; text-align: left; overflow: hidden; background: #cfe0ff; border-left: 3px solid #1c3d8c; cursor: pointer; overflow-wrap: anywhere; }
.rmc.free-slot { background: #e6ffe6; border-left-color: #2b8a3e; color: #1b5e20; font-weight: bold; text-align: center; }
.rmc.pre { background: #fff59a; border-left-color: #8a6d00; }
.rmc.found { animation: shake .4s 2; outline: 2px dotted #2b8a3e; }

/* Fax Machine (Shared) */
.faxbox { flex: 1; min-height: 0; display: flex; gap: 6px; padding: 6px; background: #b8b2a2; overflow: auto; }
.faxunit { flex: 1.2; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.faxfeed { position: relative; height: 54px; flex: none; background: #6f6a5e; overflow: hidden; }
.faxpg { position: absolute; left: calc(18% + var(--i) * 10px); top: calc(6px + var(--i) * 4px); width: 46%; height: 70px; background: #fff; border: 1px solid #888; box-shadow: 1px 1px 0 #444;
  background-image: repeating-linear-gradient(#fff 0 6px, #ccc 6px 7px); }
.faxlcd { flex: none; }
.faxout { flex: 1; min-height: 110px; background: #3d3a33; padding: 6px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.faxsheet { background: #fffef4; color: #222; padding: 6px 8px; font-size: 11px; box-shadow: 2px 2px 0 #111; animation: faxprint 1.4s steps(12) both; transform-origin: top; }
.faxsheet.in { background: #f2f0e0; filter: contrast(1.2); }
.faxsheet b { display: block; border-bottom: 1px dashed #777; margin-bottom: 3px; letter-spacing: 1px; }
.faxsheet pre { margin: 0; font: 11px/1.35 "Lucida Console", "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes faxprint { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.faxctl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; background: var(--face); padding: 8px; align-self: flex-start; }
.faxctl .field { width: 100%; }
.faxctl .btn { width: 100%; }
body.narrow .faxbox { flex-direction: column; }
body.narrow .faxunit, body.narrow .faxctl { flex: none; align-self: stretch; }
.qdesk { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; padding: 12px 0; }
.qnow { background: #111; color: #ff4d3a; padding: 8px 14px; min-width: 130px; text-align: center; font-family: "Courier New", monospace; }
.qnow span, .qtix span { display: block; font-size: 10px; letter-spacing: 2px; }
.qnow b { display: block; font-size: 34px; line-height: 1.1; text-shadow: 0 0 6px rgba(255, 60, 40, .7); }
.qnow.flash b { animation: qflash .5s steps(2) 2; }
@keyframes qflash { 50% { opacity: .2; } }
.qtake { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qtix { background: #ffe9a8; border: 1px dashed #a07d00; padding: 6px 14px; text-align: center; font-family: "Courier New", monospace; transform: rotate(-3deg); }
.qtix b { display: block; font-size: 26px; }
.qtix.bump { animation: qbump .6s; }
@keyframes qbump { 30% { transform: rotate(4deg) scale(1.15); } }
.potbar { flex-wrap: wrap; align-items: flex-end; gap: 6px; padding: 4px 6px; }
.potbar .vlbl { flex: 1; min-width: 130px; }
.potbar .field, .potbar select.field { width: 100%; }
.potgrid { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 12px; }
.potgrid th { background: var(--face); border: 1px solid #aaa; padding: 2px 4px; text-align: left; position: sticky; top: 0; }
.potgrid tr > th:first-child { width: 26px; text-align: right; position: static; }
.potgrid td { border: 1px solid #ccc; padding: 3px 4px; overflow-wrap: anywhere; vertical-align: top; }
.potgrid tr:first-child th:nth-child(2) { width: 26%; }
.potgrid tr:first-child th:nth-child(4) { width: 24%; }
.potgrid tr.you td { background: #fffbe0; font-weight: bold; }
.potgrid s { color: #888; font-weight: normal; }
/* Mandatory Training.exe */
.trbox { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px; overflow-y: auto; }
.trslide { position: relative; flex: 1; min-height: 170px; background: linear-gradient(#1c3d8c 0 46px, #fff 46px); padding: 0 12px 10px; overflow: hidden; }
.trh { color: #fff; font: bold 18px/46px Tahoma, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.trslide ul { margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.7; max-width: calc(100% - 60px); }
.trguy { position: absolute; right: 12px; bottom: 8px; width: 40px; height: 60px; }
.trq { font-size: 14px; margin: 0 0 8px; }
.trans { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.trans .btn { text-align: left; max-width: 100%; }
.trcap { background: #111; color: #fff; font-size: 12px; padding: 4px 8px; flex: none; }
.trcap b { color: #ffd34d; }
.trseek { position: relative; height: 12px; flex: none; background: #ccc; border: 1px solid #666; cursor: pointer; }
.trfill { height: 100%; width: 0; background: #2b8a3e; transition: width .9s linear; }
.trknob { position: absolute; top: -3px; left: -5px; width: 10px; height: 16px; background: var(--face); border: 1px solid #333; transition: left .9s linear; }
.trctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; flex: none; }
.trctl .btn { min-width: 0; }
.trinfo { flex: 1; font-size: 12px; white-space: nowrap; }
body.narrow .trh { font-size: 14px; }
body.narrow .trslide ul { font-size: 12px; }

/* ===== Screen Saver.cpl ===== */
.ssbox { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 10px; overflow: auto; align-items: flex-start; }
.ssmon { flex: none; width: 210px; display: flex; flex-direction: column; align-items: center; }
.ssscr { position: relative; width: 210px; height: 150px; background: #000; overflow: hidden; border: 10px solid #d8d4c8; border-radius: 6px 6px 2px 2px; box-shadow: inset 0 0 0 1px #444, 0 0 0 1px #555; box-sizing: content-box; }
.ssstand { width: 70px; height: 14px; background: linear-gradient(#bbb, #999); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); border-bottom: 2px solid #666; }
.ssctl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ssctl .field { width: 100%; }
.ssbtns { display: flex; gap: 6px; }
.ssbtns .btn { flex: 1; }
.ssck { display: flex; align-items: center; gap: 6px; font-size: 12px; }
body.narrow .ssbox { flex-direction: column; align-items: stretch; }
body.narrow .ssmon { align-self: center; }
.ssaver { position: fixed; inset: 0; z-index: 299000; background: #000; overflow: hidden; cursor: none; }
.ss-busy { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; font: 12px/1.3 Tahoma, Verdana, sans-serif; color: #000; }
.ss-bt { background: linear-gradient(90deg, #0a246a, #a6caf0); color: #fff; font-weight: bold; padding: 3px 6px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-grid { flex: 1; overflow: hidden; }
.ss-row { display: flex; }
.ss-row span { flex: 1; min-width: 0; border: 1px solid #ccc; border-width: 0 1px 1px 0; padding: 1px 4px; text-align: right; overflow: hidden; white-space: nowrap; }
.ss-row span:first-child { flex: 0 0 3.5em; background: #e8e6dc; text-align: center; }
.ss-type { flex: none; border-top: 2px solid #0a246a; padding: 4px 6px; font-family: "Courier New", monospace; white-space: nowrap; overflow: hidden; min-height: 1.4em; }
.ssscr .ss-busy { font-size: 7px; }
.ss-dl { position: absolute; left: 0; top: 0; border: 3px solid; padding: 6px 12px; text-align: center; font: bold 28px/1.1 Impact, "Arial Black", sans-serif; white-space: nowrap; will-change: transform; }
.ss-dl small { display: block; font-size: 13px; letter-spacing: 2px; }
.ssscr .ss-dl { font-size: 12px; padding: 2px 5px; border-width: 2px; }
.ssscr .ss-dl small { font-size: 7px; }
.ss-stars { position: absolute; inset: 0; }
.ss-stars span { position: absolute; left: 0; top: 0; color: #fff; font: bold 16px Tahoma, sans-serif; white-space: nowrap; will-change: transform; }
.ssscr .ss-stars span { font-size: 7px; }
.ss-mq { position: absolute; inset: 0; }
.ss-mq span { position: absolute; left: 0; white-space: nowrap; color: #6cf; font: italic bold 30px Georgia, serif; animation: ssmq 14s linear infinite; }
.ssscr .ss-mq span { font-size: 13px; animation-duration: 9s; }
@keyframes ssmq { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
.ssscr .ss-mq span { animation-name: ssmqs; }
@keyframes ssmqs { from { transform: translateX(210px); } to { transform: translateX(-100%); } }

/* Suggestion Box */
.suggbox { flex: none; display: flex; gap: 6px; padding: 6px; background: #b8b2a2; }
.suggwood { position: relative; flex: 1; min-width: 0; min-height: 150px; background: repeating-linear-gradient(90deg, #a8743a 0 22px, #9c6a32 22px 24px); border: 2px solid #5a3a14; box-shadow: inset 0 0 0 4px #c48d4c; display: flex; flex-direction: column; align-items: center; padding: 14px 8px 8px; overflow: hidden; }
.suggslot { width: 60%; height: 8px; background: #1a0e04; border-radius: 3px; box-shadow: inset 0 2px 2px #000; position: relative; z-index: 2; }
.sugglbl { margin-top: 18px; background: #fff8d8; border: 1px solid #5a3a14; padding: 4px 10px; font-weight: bold; letter-spacing: 2px; text-align: center; font-size: 13px; }
.sugglbl small { display: block; letter-spacing: 0; font-weight: normal; font-size: 11px; }
.sugglock { width: 14px; height: 18px; margin-top: 10px; background: #d8c040; border: 1px solid #5a3a14; border-radius: 3px 3px 2px 2px; }
.suggfine { margin-top: auto; font-size: 10px; color: #fff3d0; text-align: center; }
.suggslip { position: absolute; left: 25%; top: 20px; width: 50%; padding: 4px; background: #fffef4; border: 1px solid #888; font-size: 10px; overflow: hidden; height: 44px; overflow-wrap: anywhere; z-index: 1; animation: suggin 1.2s ease-in forwards; }
@keyframes suggin { 0% { opacity: 0; transform: translateY(40px) rotate(-4deg); clip-path: inset(0 0 0 0); } 30% { opacity: 1; transform: translateY(40px) rotate(-4deg); } 55% { transform: translateY(0) rotate(0); clip-path: inset(0 0 0 0); } 100% { opacity: 1; transform: translateY(-46px); clip-path: inset(100% 0 0 0); } }
.suggctl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; background: var(--face); padding: 8px; }
.suggctl .field, .suggctl .btn { width: 100%; }
.suggchk { font-size: 12px; display: flex; gap: 4px; align-items: center; }
.sugglog { flex: 1; min-height: 70px; overflow-y: auto; margin: 0 6px 4px; }
body.narrow .suggbox { flex-direction: column; }
body.narrow .suggwood { flex: none; min-height: 140px; }
/* PTO-9 blackout calendar */
.pto { background: #fff; padding: 6px; max-width: 420px; margin: 0 auto; }
.ptohead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 6px; flex-wrap: wrap; }
.ptohead span { font-size: 11px; color: #a00; }
.ptogrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.ptodow { text-align: center; font-size: 10px; font-weight: bold; color: #555; }
.ptoday { background: #111; color: #ddd; min-height: 30px; padding: 1px 2px; font-size: 10px; cursor: help; overflow: hidden; }
.ptoday b { display: block; font-size: 11px; color: #fff; }
.ptoday small { display: block; font-size: 8px; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f66; }
.ptoday.nil { background: transparent; cursor: default; }
.ptoday.open { background: #e6ffe6; outline: 2px solid #2b8a3e; cursor: default; }
.ptoday.open b, .ptoday.open small { color: #1d6b2e; }

/* Seasonal Decor.cpl */
.decor-x { position: absolute; pointer-events: none; }
.decor-lights { top: 0; left: 0; right: 0; height: 20px; display: flex; justify-content: space-around; padding: 0 8px; overflow: hidden; }
.decor-lights::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 1px solid #1d3a1d; }
.decor-lights i { width: 7px; height: 10px; margin-top: 3px; border-radius: 50% 50% 45% 45%; background: #a89c80; border-top: 2px solid #2a2a2a; }
.decor-lights i.lit { background: #fff6d6; box-shadow: 0 0 8px 4px rgba(255, 236, 170, .95); }
.decor-snow { left: 62%; top: 35%; display: flex; flex-direction: column; align-items: center; animation: decorfall 16s linear infinite; }
.decor-snow svg { width: 22px; height: 22px; animation: decorspin 6s linear infinite; }
.decor-snow b { font: 9px Tahoma, sans-serif; background: #fff; color: #000; border: 1px solid #333; padding: 0 2px; }
@keyframes decorfall { 0% { top: -40px; transform: translateX(0); } 25% { transform: translateX(-24px); } 50% { transform: translateX(10px); } 75% { transform: translateX(-16px); } 100% { top: calc(100% + 10px); transform: translateX(0); } }
@keyframes decorspin { to { transform: rotate(360deg); } }
.decor-tape { left: 0; right: 0; bottom: 4px; height: 16px; overflow: hidden; white-space: nowrap; background: repeating-linear-gradient(-45deg, #ffd400 0 14px, #1a1a1a 14px 20px); border-block: 1px solid #000; }
.decor-tape span { display: inline-block; margin: 1px 0 0 30px; padding: 0 6px; background: #ffd400; color: #000; font: bold 10px/12px Tahoma, sans-serif; letter-spacing: 1px; }
.dicon { position: relative; }
.dicon .wreath { position: absolute; top: 0; right: 12px; width: 20px; height: 20px; padding: 0; background: none; text-shadow: none; }
.dicon .wreath svg { width: 20px; height: 20px; filter: none !important; }
.decgrid tr:first-child th:nth-child(3) { width: 40%; }
.decgrid tr:first-child th:nth-child(4) { width: 80px; }
.decgrid .btn { min-width: 0; padding: 2px 6px; }
.decbar { gap: 8px; flex-wrap: wrap; padding: 4px; }
body.narrow .decgrid tr:first-child th:nth-child(3) { width: 34%; }
body.narrow .decgrid tr:first-child th:nth-child(4) { width: 72px; }
.dicon:focus .wreath, .dicon.sel .wreath { background: none; outline: none; }
