@import url("./modal.css");

/* Shell chrome: header → privacy (home) → alarm → sticky notes (home) → main → spotlight → footer */

/* Signed-in userid watermark  -  above modals / launcher; never intercepts input */
.oa-session-wm {
  position: fixed;
  inset: 0;
  /* Above the fullscreen app host frame; never intercepts input. */
  z-index: 2147483001;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.oa-session-wm[hidden] {
  display: none !important;
}

/* Integrity break  -  denser ink so tampering is obvious while seal restores. */
.oa-session-wm.is-broken .oa-session-wm__mark {
  color: rgba(127, 29, 29, 0.09);
}

.oa-session-wm__grid {
  position: absolute;
  left: -35%;
  top: -35%;
  width: 170%;
  height: 170%;
  display: grid;
  grid-template-columns: repeat(var(--oa-wm-cols, 12), 1fr);
  gap: 0.55rem 0.35rem;
  align-content: space-around;
  justify-items: center;
  transform: rotate(-32deg);
  transform-origin: center center;
}

.oa-session-wm__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.62rem, 1.1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.03);
  white-space: nowrap;
  line-height: 1.05;
  text-align: center;
}

.oa-session-wm__id,
.oa-session-wm__user {
  display: block;
}

.oa-session-wm__user {
  font-size: 0.92em;
  font-weight: 650;
}

/* Signed-out seal over account workspaces (Slate / Audit Trails / …) */
.oa-auth-gate-host {
  position: relative;
}

.oa-auth-gate-host.is-workspace-sealed > *:not(.oa-auth-gate) {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.oa-auth-gate {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(244, 246, 248, 0.92);
}

.oa-auth-gate[hidden] {
  display: none !important;
}

.oa-auth-gate__card {
  max-width: 26rem;
  width: 100%;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid #c5c9d0;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  text-align: left;
}

.oa-auth-gate__card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: #0f172a;
}

.oa-auth-gate__card p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}

.oa-auth-gate__btn {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid #0f172a;
  border-radius: 3px;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.oa-auth-gate__btn:hover {
  background: #1e293b;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--oa-bg-deep);
  color: var(--oa-text);
  font-family: var(--oa-font);
}

/* Discourage casual select/copy of the shell chrome; editors opt back in. */
html.oa-protect,
html.oa-protect body {
  -webkit-user-select: none;
  user-select: none;
}

html.oa-protect textarea,
html.oa-protect input,
html.oa-protect [contenteditable="true"],
html.oa-protect [contenteditable=""],
html.oa-protect [data-editor],
html.oa-protect .td-editor,
html.oa-protect [data-testid="report-studio"],
html.oa-protect .sheet-grid,
html.oa-protect .sheet-scroll,
html.oa-protect [data-allow-copy],
html.oa-protect .ff-path,
html.oa-protect .ff-search,
html.oa-protect .td-toolbar__title {
  -webkit-user-select: text;
  user-select: text;
}

button,
input {
  font-family: inherit;
}

/* Kill browser accent focus rings (often thick orange/blue). Gray-only. */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #8a8a8a;
  outline-offset: 2px;
}

.oa-shell {
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--oa-bg-deep);
}

.oa-header {
  flex: 0 0 auto;
  background: var(--oa-chrome-bg);
  color: var(--oa-chrome-text);
}

.oa-header__bar {
  height: var(--oa-header-h);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 var(--oa-pad-x);
  background: var(--oa-chrome-bg);
}

.oa-header__mark {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.oa-header__mark img,
.oa-header__logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 7px;
}

.oa-header__wordmark {
  border: 0;
  background: transparent;
  color: var(--oa-chrome-text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.25px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.oa-header__spacer {
  flex: 1 1 auto;
}

.oa-header__user {
  flex: 0 1 auto;
  max-width: min(52vw, 320px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--oa-chrome-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  padding: 2px 4px;
  align-self: center;
  user-select: text;
}

.oa-header__user[hidden] {
  display: none !important;
}

.oa-header__menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.oa-header__burger {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--oa-chrome-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/*
  One bar + two box-shadow copies = identical thickness on fractional DPI
  (three separate elements/SVG rects often rasterize unevenly).
*/
.oa-header__burger-icon {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
  /* Keep the shadow stack inside the hit/layout box visually centered */
  margin-top: -6px;
}

.oa-header__menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 200px;
  background: var(--oa-chrome-elevated);
  border: 1px solid var(--oa-chrome-border);
  border-radius: var(--oa-radius);
  padding: 6px 0;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.oa-header__menu.is-open {
  display: block;
}

.oa-header__menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--oa-chrome-muted);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 14px;
  cursor: pointer;
}

.oa-header__menu button:hover {
  background: #2a2a2a;
  color: var(--oa-chrome-text);
}

.oa-header__rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, #5a5a5a, #2a2a2a, #5a5a5a);
  opacity: 0.6;
}

.oa-alarm,
.oa-spotlight {
  flex: 0 0 auto;
  width: 100%;
  min-height: var(--oa-banner-min-h);
  padding: 5.5px var(--oa-pad-x);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 0;
  text-align: left;
  font-size: 13px;
}

.oa-alarm {
  cursor: default;
}

.oa-alarm__hit {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.oa-alarm__ack {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.oa-alarm__ack:hover {
  background: rgba(255, 255, 255, 0.55);
}

.oa-banner__count {
  flex: 0 0 auto;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.oa-alarm {
  background: var(--oa-alarm-empty-bg);
  color: var(--oa-alarm-empty-fg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Private sticky notes (home)  -  full width under alarm, above apps */
.oa-stickies {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 14px var(--oa-pad-x) 18px;
  background: #f7f8fa;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.oa-stickies[hidden] {
  display: none !important;
}

.oa-stickies__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  min-width: 0;
}

.oa-stickies__label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #0f172a;
}

.oa-stickies__hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.oa-stickies__add {
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.oa-stickies__add:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.oa-stickies__add:disabled {
  opacity: 0.45;
  cursor: default;
}

.oa-stickies__clock {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: #64748b;
  white-space: nowrap;
}

.oa-stickies__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  align-items: stretch;
}

.oa-stickies__card {
  position: relative;
  flex: 1 1 190px;
  max-width: 248px;
  min-width: 168px;
  min-height: 10rem;
  box-sizing: border-box;
  padding: 28px 14px 14px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 20px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oa-stickies__card:focus-within,
.oa-stickies__card:hover {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 10px 24px rgba(15, 23, 42, 0.07);
}

.oa-stickies__card.is-amber {
  background: linear-gradient(180deg, #fff8e8 0%, #f7efd8 100%);
}
.oa-stickies__card.is-mint {
  background: linear-gradient(180deg, #eef8f1 0%, #e3f0e8 100%);
}
.oa-stickies__card.is-sky {
  background: linear-gradient(180deg, #eef5fa 0%, #e2edf5 100%);
}
.oa-stickies__card.is-peach {
  background: linear-gradient(180deg, #faf0e8 0%, #f3e6db 100%);
}
.oa-stickies__card.is-fog {
  background: linear-gradient(180deg, #f3f5f7 0%, #e8ebef 100%);
}

.oa-stickies__tools {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.oa-stickies__card:hover .oa-stickies__tools,
.oa-stickies__card:focus-within .oa-stickies__tools {
  opacity: 1;
}

.oa-stickies__swatch,
.oa-stickies__remove {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.oa-stickies__swatch::before {
  content: "";
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.oa-stickies__card.is-amber .oa-stickies__swatch {
  color: #b45309;
}
.oa-stickies__card.is-mint .oa-stickies__swatch {
  color: #0f766e;
}
.oa-stickies__card.is-sky .oa-stickies__swatch {
  color: #0369a1;
}
.oa-stickies__card.is-peach .oa-stickies__swatch {
  color: #c2410c;
}
.oa-stickies__card.is-fog .oa-stickies__swatch {
  color: #64748b;
}

.oa-stickies__swatch:hover,
.oa-stickies__remove:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.16);
}

.oa-stickies__remove:hover {
  color: #b91c1c;
}

.oa-stickies__text {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 7.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  resize: vertical;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: -0.01em;
  outline: none;
}

.oa-stickies__text::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.oa-alarm[data-severity="info"] {
  background: var(--oa-alarm-info-bg);
  color: var(--oa-alarm-info-fg);
}

.oa-alarm[data-severity="warning"] {
  background: var(--oa-alarm-warn-bg);
  color: var(--oa-alarm-warn-fg);
}

.oa-alarm[data-severity="error"] {
  background: var(--oa-alarm-error-bg);
  color: var(--oa-alarm-error-fg);
}

.oa-alarm[data-severity="critical"] {
  background: var(--oa-alarm-critical-bg);
  color: var(--oa-alarm-critical-fg);
}

.oa-spotlight {
  background: var(--oa-spotlight-empty-bg);
  color: var(--oa-spotlight-empty-fg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.oa-spotlight[data-filled="1"] {
  background: var(--oa-spotlight-bg);
  color: var(--oa-spotlight-fg);
}

.oa-banner__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
  flex: 0 0 auto;
}

.oa-banner__when {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  flex: 0 0 auto;
}

.oa-banner__line {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-main {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  /* Only the center pane scrolls; header / banners / footer stay put. */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background:
    radial-gradient(1200px 500px at 10% -10%, #e8e8e8 0%, transparent 60%),
    radial-gradient(900px 400px at 90% 0%, #dedede 0%, transparent 55%),
    var(--oa-bg);
}

.oa-main::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.oa-footer,
.oa-footer--marks {
  flex: 0 0 auto;
  border-top: 1px solid var(--oa-chrome-border);
  background: var(--oa-chrome-bg);
  color: var(--oa-chrome-text);
  padding: 4px var(--oa-pad-x);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: var(--oa-footer-h);
  height: var(--oa-footer-h);
}

.oa-footer__dock {
  flex: 1 1 auto;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.oa-footer__search {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  width: min(220px, 42vw);
  min-width: 132px;
}

.oa-footer__search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--oa-chrome-muted);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.85;
  transform: translateY(-50%);
  box-sizing: border-box;
  z-index: 1;
}

.oa-footer__search-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 5px;
  height: 1.5px;
  background: var(--oa-chrome-muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.oa-footer__search input {
  width: 100%;
  height: 26px;
  margin: 0;
  padding: 3px 8px 3px 24px;
  border: 1px solid var(--oa-chrome-border);
  border-radius: 6px;
  background: var(--oa-chrome-elevated);
  color: var(--oa-chrome-text);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  outline: none;
}

.oa-footer__search input::placeholder {
  color: var(--oa-chrome-muted);
}

.oa-footer__search input:focus {
  border-color: #5a5a5a;
}

.oa-footer__apps {
  flex: 0 0 auto;
  width: 28px;
  height: 26px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oa-chrome-border);
  border-radius: 6px;
  background: var(--oa-chrome-elevated);
  color: var(--oa-chrome-muted);
  cursor: pointer;
}

.oa-footer__apps:hover,
.oa-footer__apps:focus-visible {
  color: var(--oa-chrome-text);
  border-color: #5a5a5a;
  outline: none;
}

.oa-footer__apps[aria-expanded="true"] {
  color: var(--oa-chrome-text);
  background: #1a1a1a;
  border-color: #3a3a3a;
}

.oa-footer__apps-glyph {
  display: block;
}

/* Apps picker modal  -  opened from footer apps glyph; filter stays in search box */
.oa-apps-modal[hidden] {
  display: none !important;
}

.oa-apps-modal {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  /* Leave the footer free so Search apps stays usable */
  bottom: var(--oa-footer-h);
  z-index: 2147483008;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
  pointer-events: none;
}

.oa-apps-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(26, 26, 26, 0.28);
  cursor: pointer;
  pointer-events: auto;
}

.oa-apps-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 12px;
  border: 1px solid var(--oa-border-soft, #dcdcdc);
  border-radius: 10px;
  background: var(--oa-bg, #f5f5f5);
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.18);
  color: var(--oa-text, #1a1a1a);
  pointer-events: auto;
}

.oa-apps-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
}

.oa-apps-modal__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.oa-apps-modal__logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.oa-apps-modal__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--oa-text, #1a1a1a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oa-apps-modal__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--oa-border, #c8c8c8);
  border-radius: 7px;
  background: var(--oa-bg-elevated, #fff);
  color: var(--oa-text-muted, #5c5c5c);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.oa-apps-modal__close:hover {
  background: var(--oa-bg-hover, #e8e8e8);
  color: var(--oa-text, #1a1a1a);
}

.oa-apps-modal__grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-content: flex-start;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.oa-apps-modal__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.oa-apps-modal__group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #31465c;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf2;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.oa-apps-modal__group-head:hover {
  background: rgba(255, 255, 255, 0.08);
}

.oa-apps-modal__group-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8955a;
}

.oa-apps-modal__group-icon .oa-mark svg {
  width: 22px;
  height: 22px;
}

.oa-apps-modal__group-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.oa-apps-modal__group-title {
  font-size: 0.88rem;
  font-weight: 650;
  color: #e8edf2;
}

.oa-apps-modal__group-count {
  font-size: 0.72rem;
  color: #8b9aab;
}

.oa-apps-modal__group-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #8b9aab;
  border-bottom: 2px solid #8b9aab;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.oa-apps-modal__group.is-expanded .oa-apps-modal__group-chevron {
  transform: rotate(45deg);
}

.oa-apps-modal__group-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 4px 6px;
}

.oa-apps-modal__card-group {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8955a;
}

.oa-apps-modal__grid::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.oa-apps-modal__empty {
  margin: 0;
  padding: 18px 8px 10px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--oa-text-dim, #8a8a8a);
}

.oa-apps-modal__card {
  --oa-vault: #0d1b2a;
  --oa-vault-edge: #243447;
  --oa-vault-lift: #152536;
  --oa-bronze: #b8955a;
  --oa-platinum: #e8edf2;
  --oa-mute: #8b9aab;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 160px;
  width: 160px;
  height: 176px;
  margin: 0;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #132334 0%, var(--oa-vault) 42%, #0a1520 100%);
  border: 1px solid var(--oa-vault-edge);
  border-radius: 4px;
  color: var(--oa-mute);
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 18px rgba(8, 16, 28, 0.22);
  cursor: pointer;
}

.oa-apps-modal__card::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 2px;
  background: var(--oa-bronze);
  opacity: 0.92;
}

.oa-apps-modal__card:hover,
.oa-apps-modal__card.is-active {
  border-color: #3a5168;
  background: linear-gradient(180deg, #183044 0%, var(--oa-vault-lift) 45%, #0d1b2a 100%);
}

.oa-apps-modal__card.is-bookmark {
  border-color: #6e5a38;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px rgba(184, 149, 90, 0.35),
    0 8px 18px rgba(8, 16, 28, 0.22);
}

.oa-apps-modal__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #31465c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* Match dashboard vault cards: platinum marks at 24px */
.oa-apps-modal__card-icon .oa-mark {
  width: 24px;
  height: 24px;
  color: #d7e0ea;
  filter: none;
}

.oa-apps-modal__card-icon .oa-mark svg {
  width: 24px;
  height: 24px;
}

.oa-apps-modal__card-icon .oa-mark--home,
.oa-apps-modal__card-icon .oa-mark--slate,
.oa-apps-modal__card-icon .oa-mark--audit-trails,
.oa-apps-modal__card-icon .oa-mark--matrix,
.oa-apps-modal__card-icon .oa-mark--comparator,
.oa-apps-modal__card-icon .oa-mark--markdown,
.oa-apps-modal__card-icon .oa-mark--json,
.oa-apps-modal__card-icon .oa-mark--xml,
.oa-apps-modal__card-icon .oa-mark--text,
.oa-apps-modal__card-icon .oa-mark--service-request,
.oa-apps-modal__card-icon .oa-mark--flow,
.oa-apps-modal__card-icon .oa-mark--draw,
.oa-apps-modal__card-icon .oa-mark--calculator,
.oa-apps-modal__card-icon .oa-mark--calendar,
.oa-apps-modal__card-icon .oa-mark--pdf,
.oa-apps-modal__card-icon .oa-mark--secrets,
.oa-apps-modal__card-icon .oa-mark--timetable,
.oa-apps-modal__card-icon .oa-mark--planner,
.oa-apps-modal__card-icon .oa-mark--roster,
.oa-apps-modal__card-icon .oa-mark--audio,
.oa-apps-modal__card-icon .oa-mark--capture,
.oa-apps-modal__card-icon .oa-mark--clock,
.oa-apps-modal__card-icon .oa-mark--variables,
.oa-apps-modal__card-icon .oa-mark--query-report,
.oa-apps-modal__card-icon .oa-mark--keyboard,
.oa-apps-modal__card-icon .oa-mark--compression,
.oa-apps-modal__card-icon .oa-mark--emailer,
.oa-apps-modal__card-icon .oa-mark--scheduler,
.oa-apps-modal__card-icon .oa-mark--notifications,
.oa-apps-modal__card-icon .oa-mark--diary,
.oa-apps-modal__card-icon .oa-mark--rituals,
.oa-apps-modal__card-icon .oa-mark--tree,
.oa-apps-modal__card-icon .oa-mark--sales,
.oa-apps-modal__card-icon .oa-mark--wages,
.oa-apps-modal__card-icon .oa-mark--warehouse,
.oa-apps-modal__card-icon .oa-mark--ledger,
.oa-apps-modal__card-icon .oa-mark--timesheet,
.oa-apps-modal__card-icon .oa-mark--revision,
.oa-apps-modal__card-icon .oa-mark--invoice,
.oa-apps-modal__card-icon .oa-mark--minutes,
.oa-apps-modal__card-icon .oa-mark--data,
.oa-apps-modal__card-icon .oa-mark--generic {
  color: #d7e0ea;
}

.oa-apps-modal__card-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--oa-platinum);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.oa-apps-modal__card-summary {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--oa-mute);
  flex: 1 1 auto;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
}

html.oa-apps-modal-open {
  overflow: hidden;
}

html.oa-apps-modal-open .oa-footer,
html.oa-apps-modal-open .oa-footer--marks {
  position: relative;
  z-index: 2147483009;
}

.oa-footer__fs {
  flex: 0 0 auto;
  width: 28px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--oa-chrome-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.oa-footer__fs:hover,
.oa-footer__fs:focus-visible {
  color: var(--oa-chrome-text);
  background: var(--oa-chrome-elevated);
  border-color: var(--oa-chrome-border);
  outline: none;
}

.oa-footer__fs.is-active {
  color: var(--oa-chrome-text);
}

.oa-footer__fs-icon[hidden] {
  display: none !important;
}

/* Top document stays fullscreen; apps load in this host frame. */
html.oa-fs-hosting,
html.oa-fs-hosting body {
  overflow: hidden;
  height: 100%;
}

.oa-fs-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  z-index: 2147482998;
  background: var(--oa-bg, #f5f5f5);
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Preloaded apps flip on instantly  -  no reload, no veil */
.oa-fs-frame.is-active {
  z-index: 2147483000;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.oa-footer__dock::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.oa-footer__app {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 44px;
  text-decoration: none;
  color: var(--oa-chrome-muted);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 4px 3px;
  line-height: 0;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.oa-footer__app--group {
  min-width: 52px;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

.oa-footer__app--group.is-expanded,
.oa-footer__app--group.is-open {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.4);
}

.oa-footer__app--grouped {
  opacity: 0.95;
}

.oa-footer__group-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 8px;
  line-height: 13px;
  text-align: center;
  font-weight: 700;
}

.oa-footer__label {
  display: block;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: inherit;
  text-align: center;
  opacity: 0.88;
}

.oa-footer__app:hover {
  color: var(--oa-chrome-text);
  background: var(--oa-chrome-elevated);
  border-color: var(--oa-chrome-border);
}

/* Open / current app - Windows-style taskbar cue */
.oa-footer__app.is-open,
.oa-footer__app.is-active {
  color: var(--oa-chrome-text);
  background: var(--oa-chrome-elevated);
  border-color: #4a4a4a;
}

.oa-footer__app.is-open::after,
.oa-footer__app.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: #f2f2f2;
  opacity: 0.95;
}

.oa-footer__app.is-bookmark:not(.is-pinned)::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a3a3a3;
}

.oa-footer__ctx {
  position: fixed;
  z-index: 80;
  min-width: 10.5rem;
  padding: 4px;
  border: 1px solid var(--oa-chrome-border);
  border-radius: 8px;
  background: #141414;
  color: var(--oa-chrome-text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.oa-footer__ctx button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.oa-footer__ctx button:hover:not(:disabled) {
  background: var(--oa-chrome-elevated);
}

.oa-footer__ctx button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* -- Proprietary Devlopak app marks (CSS motion only) -- */
.oa-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  color: inherit;
  contain: layout style;
}

.oa-mark svg {
  display: block;
  width: 28px;
  height: 28px;
  overflow: visible;
}

/* Marks on light surfaces - deep institutional ink */
.oa-mark--home,
.oa-mark--slate,
.oa-mark--audit-trails,
.oa-mark--matrix,
.oa-mark--comparator,
.oa-mark--markdown,
.oa-mark--json,
.oa-mark--xml,
.oa-mark--text,
.oa-mark--service-request,
.oa-mark--flow,
.oa-mark--draw,
.oa-mark--calculator,
.oa-mark--calendar,
.oa-mark--pdf,
.oa-mark--secrets,
.oa-mark--timetable,
.oa-mark--planner,
.oa-mark--roster,
.oa-mark--audio,
.oa-mark--capture,
.oa-mark--clock,
.oa-mark--variables,
.oa-mark--query-report,
.oa-mark--keyboard,
.oa-mark--compression,
.oa-mark--emailer,
.oa-mark--scheduler,
.oa-mark--notifications,
.oa-mark--diary,
.oa-mark--rituals,
.oa-mark--tree,
.oa-mark--minutes,
.oa-mark--invoice,
.oa-mark--sales,
.oa-mark--wages,
.oa-mark--warehouse,
.oa-mark--ledger,
.oa-mark--timesheet,
.oa-mark--revision,
.oa-mark--data,
.oa-mark--generic {
  color: #1e3a5f;
}

/* Footer / dark chrome - bright platinum (one metal family = trust) */
.oa-footer .oa-mark {
  width: 28px;
  height: 28px;
}

.oa-footer .oa-mark svg {
  width: 28px;
  height: 28px;
}

.oa-footer .oa-mark--home,
.oa-footer .oa-mark--slate,
.oa-footer .oa-mark--audit-trails,
.oa-footer .oa-mark--matrix,
.oa-footer .oa-mark--comparator,
.oa-footer .oa-mark--markdown,
.oa-footer .oa-mark--json,
.oa-footer .oa-mark--xml,
.oa-footer .oa-mark--text,
.oa-footer .oa-mark--service-request,
.oa-footer .oa-mark--flow,
.oa-footer .oa-mark--draw,
.oa-footer .oa-mark--calculator,
.oa-footer .oa-mark--calendar,
.oa-footer .oa-mark--pdf,
.oa-footer .oa-mark--secrets,
.oa-footer .oa-mark--timetable,
.oa-footer .oa-mark--planner,
.oa-footer .oa-mark--roster,
.oa-footer .oa-mark--audio,
.oa-footer .oa-mark--capture,
.oa-footer .oa-mark--clock,
.oa-footer .oa-mark--variables,
.oa-footer .oa-mark--query-report,
.oa-footer .oa-mark--keyboard,
.oa-footer .oa-mark--compression,
.oa-footer .oa-mark--emailer,
.oa-footer .oa-mark--scheduler,
.oa-footer .oa-mark--notifications,
.oa-footer .oa-mark--diary,
.oa-footer .oa-mark--rituals,
.oa-footer .oa-mark--tree,
.oa-footer .oa-mark--sales,
.oa-footer .oa-mark--wages,
.oa-footer .oa-mark--warehouse,
.oa-footer .oa-mark--ledger,
.oa-footer .oa-mark--timesheet,
.oa-footer .oa-mark--revision,
.oa-footer .oa-mark--invoice,
.oa-footer .oa-mark--minutes,
.oa-footer .oa-mark--data,
.oa-footer .oa-mark--generic {
  color: #dce6f0;
}

.oa-footer__app {
  border-radius: 6px;
}

.oa-footer__app:hover .oa-mark,
.oa-footer__app.is-open .oa-mark,
.oa-footer__app.is-active .oa-mark {
  color: #f3f6fa;
  filter: none;
}

.oa-footer__app.is-open,
.oa-footer__app.is-active {
  background: #1a1a1a;
  border-color: #3a3a3a;
}

/* Slate - stacked sheets */
.oa-mark__slate-t {
  transform-origin: 19px 13px;
  animation: oa-mark-slate-lift 7.5s ease-in-out infinite;
}
.oa-mark__slate-m {
  animation: oa-mark-slate-shift 7.5s ease-in-out infinite;
}
.oa-mark__slate-tab {
  animation: oa-mark-fade-pulse 7.5s ease-in-out infinite;
}
@keyframes oa-mark-slate-lift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  45% {
    transform: translate(1px, -1.5px);
  }
}
@keyframes oa-mark-slate-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  45% {
    transform: translate(0.5px, -0.5px);
  }
}

/* Matrix - cell cascade */
.oa-mark__mx {
  opacity: 0.35;
  animation: oa-mark-mx-cell 4.8s ease-in-out infinite;
}
.oa-mark__mx-1 {
  animation-delay: 0s;
}
.oa-mark__mx-2 {
  animation-delay: 0.15s;
}
.oa-mark__mx-3 {
  animation-delay: 0.3s;
}
.oa-mark__mx-4 {
  animation-delay: 0.45s;
}
.oa-mark__mx-5 {
  animation-delay: 0.6s;
  opacity: 0.55;
}
.oa-mark__mx-6 {
  animation-delay: 0.75s;
}
.oa-mark__mx-7 {
  animation-delay: 0.9s;
}
.oa-mark__mx-8 {
  animation-delay: 1.05s;
}
.oa-mark__mx-9 {
  animation-delay: 1.2s;
}
@keyframes oa-mark-mx-cell {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.92);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Audit - seal rotation */
.oa-mark__aud-ring {
  transform-origin: 16px 16px;
  animation: oa-mark-spin-slow 14s linear infinite;
}
.oa-mark__aud-a,
.oa-mark__aud-b {
  transform-origin: 16px 16px;
  animation: oa-mark-spin-rev 9s linear infinite;
}
.oa-mark__aud-dot {
  animation: oa-mark-fade-pulse 3.2s ease-in-out infinite;
}
@keyframes oa-mark-spin-slow {
  to {
    transform: rotate(360deg);
  }
}
@keyframes oa-mark-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

/* Comparator - panes breathe */
.oa-mark__cmp-l {
  transform-origin: 9px 16px;
  animation: oa-mark-cmp-l 5.5s ease-in-out infinite;
}
.oa-mark__cmp-r {
  transform-origin: 23px 16px;
  animation: oa-mark-cmp-r 5.5s ease-in-out infinite;
}
.oa-mark__cmp-beam {
  animation: oa-mark-fade-pulse 2.8s ease-in-out infinite;
}
@keyframes oa-mark-cmp-l {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1px);
  }
}
@keyframes oa-mark-cmp-r {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-1px);
  }
}

/* Markdown - lines reveal */
.oa-mark__md-1,
.oa-mark__md-2,
.oa-mark__md-3,
.oa-mark__md-4 {
  transform-origin: 6px center;
  animation: oa-mark-md-grow 6s ease-in-out infinite;
}
.oa-mark__md-2 {
  animation-delay: 0.2s;
}
.oa-mark__md-3 {
  animation-delay: 0.4s;
}
.oa-mark__md-4 {
  animation-delay: 0.6s;
}
.oa-mark__md-hash {
  animation: oa-mark-fade-pulse 4s ease-in-out infinite;
}
@keyframes oa-mark-md-grow {
  0%,
  100% {
    transform: scaleX(0.85);
    opacity: 0.55;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* JSON - braces open/close */
.oa-mark__json-l {
  transform-origin: 11px 16px;
  animation: oa-mark-json-l 5s ease-in-out infinite;
}
.oa-mark__json-r {
  transform-origin: 21px 16px;
  animation: oa-mark-json-r 5s ease-in-out infinite;
}
.oa-mark__json-k {
  animation: oa-mark-fade-pulse 2.5s ease-in-out infinite;
}
@keyframes oa-mark-json-l {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-1.5px);
  }
}
@keyframes oa-mark-json-r {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1.5px);
  }
}

/* XML - chevrons pulse */
.oa-mark__xml-a {
  transform-origin: 9px 16px;
  animation: oa-mark-xml-l 4.5s ease-in-out infinite;
}
.oa-mark__xml-b {
  transform-origin: 23px 16px;
  animation: oa-mark-xml-r 4.5s ease-in-out infinite;
}
.oa-mark__xml-slash {
  animation: oa-mark-fade-pulse 3.5s ease-in-out infinite;
}
@keyframes oa-mark-xml-l {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-1px);
  }
}
@keyframes oa-mark-xml-r {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(1px);
  }
}

/* Text - typing caret */
.oa-mark__tx-1,
.oa-mark__tx-2,
.oa-mark__tx-3,
.oa-mark__tx-4 {
  transform-origin: 5px center;
  animation: oa-mark-tx-line 5.5s ease-in-out infinite;
}
.oa-mark__tx-2 {
  animation-delay: 0.25s;
}
.oa-mark__tx-3 {
  animation-delay: 0.5s;
}
.oa-mark__tx-4 {
  animation-delay: 0.75s;
}
.oa-mark__tx-caret {
  animation: oa-mark-caret 1.1s steps(1, end) infinite;
}
@keyframes oa-mark-tx-line {
  0%,
  100% {
    transform: scaleX(0.9);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}
@keyframes oa-mark-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes oa-mark-fade-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* Service Request - check settles */
.oa-mark__sr-card {
  animation: oa-mark-fade-pulse 6.5s ease-in-out infinite;
}
.oa-mark__sr-line {
  transform-origin: 10px center;
  animation: oa-mark-md-grow 5.5s ease-in-out infinite;
}
.oa-mark__sr-check {
  transform-origin: 22px 20px;
  animation: oa-mark-sr-check 3.8s ease-in-out infinite;
}
@keyframes oa-mark-sr-check {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  45% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Flow - nodes pulse along the path */
.oa-mark__flow-a,
.oa-mark__flow-b,
.oa-mark__flow-c {
  transform-origin: center;
  animation: oa-mark-flow-node 4.2s ease-in-out infinite;
}
.oa-mark__flow-b {
  animation-delay: 0.35s;
}
.oa-mark__flow-c {
  animation-delay: 0.7s;
}
.oa-mark__flow-path {
  animation: oa-mark-fade-pulse 3.4s ease-in-out infinite;
}
.oa-mark__flow-hub {
  transform-origin: 16px 16.5px;
  animation: oa-mark-flow-hub 4.2s ease-in-out infinite;
}
@keyframes oa-mark-flow-node {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  40% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes oa-mark-flow-hub {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Draw - pen strokes the canvas */
.oa-mark__draw-page {
  animation: oa-mark-fade-pulse 7s ease-in-out infinite;
}
.oa-mark__draw-shape {
  transform-origin: 13px 15px;
  animation: oa-mark-draw-stroke 5.2s ease-in-out infinite;
}
.oa-mark__draw-pen {
  transform-origin: 20px 12px;
  animation: oa-mark-draw-pen 5.2s ease-in-out infinite;
}
.oa-mark__draw-tip {
  animation: oa-mark-fade-pulse 2.6s ease-in-out infinite;
}
@keyframes oa-mark-draw-pen {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-1px, 1.5px) rotate(-6deg);
  }
}
@keyframes oa-mark-draw-stroke {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(0.88);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Calculator - keys cascade, screen breathes */
.oa-mark__calc-screen {
  animation: oa-mark-fade-pulse 3s ease-in-out infinite;
}
.oa-mark__calc-k {
  opacity: 0.35;
  transform-origin: center;
  animation: oa-mark-calc-key 4.6s ease-in-out infinite;
}
.oa-mark__calc-k1 {
  animation-delay: 0s;
}
.oa-mark__calc-k2 {
  animation-delay: 0.12s;
}
.oa-mark__calc-k3 {
  animation-delay: 0.24s;
}
.oa-mark__calc-k4 {
  animation-delay: 0.36s;
}
.oa-mark__calc-k5 {
  animation-delay: 0.48s;
}
.oa-mark__calc-k6 {
  animation-delay: 0.6s;
}
@keyframes oa-mark-calc-key {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Calendar - rings settle, today blinks */
.oa-mark__cal-head {
  animation: oa-mark-fade-pulse 5s ease-in-out infinite;
}
.oa-mark__cal-ring-l,
.oa-mark__cal-ring-r {
  transform-origin: center top;
  animation: oa-mark-cal-ring 4.8s ease-in-out infinite;
}
.oa-mark__cal-ring-r {
  animation-delay: 0.2s;
}
.oa-mark__cal-d {
  opacity: 0.35;
  animation: oa-mark-cal-dot 5.4s ease-in-out infinite;
}
.oa-mark__cal-d1 {
  animation-delay: 0s;
}
.oa-mark__cal-d2 {
  animation-delay: 0.15s;
}
.oa-mark__cal-d3 {
  animation-delay: 0.3s;
}
.oa-mark__cal-d4 {
  animation-delay: 0.45s;
}
.oa-mark__cal-today {
  transform-origin: 16px 22px;
  animation: oa-mark-cal-today 2.8s ease-in-out infinite;
}
@keyframes oa-mark-cal-ring {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1px);
  }
}
@keyframes oa-mark-cal-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes oa-mark-cal-today {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

/* PDF - fold settles, lines type in */
.oa-mark__pdf-sheet {
  animation: oa-mark-fade-pulse 6.5s ease-in-out infinite;
}
.oa-mark__pdf-fold {
  transform-origin: 19px 9px;
  animation: oa-mark-pdf-fold 5s ease-in-out infinite;
}
.oa-mark__pdf-line {
  transform-origin: 10px center;
  animation: oa-mark-md-grow 5.2s ease-in-out infinite;
}
.oa-mark__pdf-l2 {
  animation-delay: 0.2s;
}
.oa-mark__pdf-l3 {
  animation-delay: 0.4s;
}
.oa-mark__pdf-badge {
  animation: oa-mark-fade-pulse 3.2s ease-in-out infinite;
}
@keyframes oa-mark-pdf-fold {
  0%,
  100% {
    transform: scale(1, 1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05, 0.95);
    opacity: 1;
  }
}

/* Secrets - shackle settles, keyhole pulse */
.oa-mark__sec-body {
  animation: oa-mark-fade-pulse 6s ease-in-out infinite;
}
.oa-mark__sec-shackle {
  transform-origin: 16px 13px;
  animation: oa-mark-sec-shackle 4.8s ease-in-out infinite;
}
.oa-mark__sec-keyhole {
  transform-origin: 16px 20px;
  animation: oa-mark-sec-key 2.8s ease-in-out infinite;
}
.oa-mark__sec-slot {
  animation: oa-mark-fade-pulse 2.8s ease-in-out infinite;
}
@keyframes oa-mark-sec-shackle {
  0%,
  100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-1.5px);
  }
}
@keyframes oa-mark-sec-key {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Timetable - blocks light up across the grid */
.oa-mark__tt-frame {
  animation: oa-mark-fade-pulse 6.5s ease-in-out infinite;
}
.oa-mark__tt-grid {
  animation: oa-mark-fade-pulse 5s ease-in-out infinite;
}
.oa-mark__tt-block {
  opacity: 0.35;
  transform-origin: center;
  animation: oa-mark-tt-block 4.4s ease-in-out infinite;
}
.oa-mark__tt-b1 {
  animation-delay: 0s;
}
.oa-mark__tt-b2 {
  animation-delay: 0.35s;
}
.oa-mark__tt-b3 {
  animation-delay: 0.7s;
}
@keyframes oa-mark-tt-block {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.88);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.oa-mark__pl-board {
  animation: oa-mark-fade-pulse 6.2s ease-in-out infinite;
}
.oa-mark__pl-clip {
  animation: oa-mark-fade-pulse 5.2s ease-in-out infinite;
}
.oa-mark__pl-line {
  opacity: 0.35;
  animation: oa-mark-pl-line 4.6s ease-in-out infinite;
}
.oa-mark__pl-l1 {
  animation-delay: 0s;
}
.oa-mark__pl-l2 {
  animation-delay: 0.25s;
}
.oa-mark__pl-l3 {
  animation-delay: 0.5s;
}
.oa-mark__pl-check {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation: oa-mark-pl-check 3.8s ease-in-out infinite;
}
.oa-mark__pl-pin {
  transform-origin: 23px 23px;
  animation: oa-mark-pl-pin 3.2s ease-in-out infinite;
}
@keyframes oa-mark-pl-line {
  0%,
  100% {
    opacity: 0.28;
  }
  45% {
    opacity: 1;
  }
}
@keyframes oa-mark-pl-check {
  0%,
  18% {
    stroke-dashoffset: 12;
    opacity: 0.2;
  }
  40%,
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.55;
  }
}
@keyframes oa-mark-pl-pin {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.oa-mark__mn-pad {
  animation: oa-mark-fade-pulse 6.2s ease-in-out infinite;
}
.oa-mark__mn-bind {
  opacity: 0.45;
  animation: oa-mark-fade-pulse 5s ease-in-out infinite;
}
.oa-mark__mn-line {
  opacity: 0.35;
  animation: oa-mark-pl-line 4.6s ease-in-out infinite;
}
.oa-mark__mn-l1 {
  animation-delay: 0s;
}
.oa-mark__mn-l2 {
  animation-delay: 0.25s;
}
.oa-mark__mn-l3 {
  animation-delay: 0.5s;
}
.oa-mark__mn-check {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation: oa-mark-pl-check 3.8s ease-in-out infinite;
}
.oa-mark__mn-dot {
  transform-origin: 23px 23px;
  animation: oa-mark-pl-pin 3.2s ease-in-out infinite;
}

.oa-mark__iv-sheet {
  animation: oa-mark-fade-pulse 6.2s ease-in-out infinite;
}
.oa-mark__iv-head {
  opacity: 0.55;
  animation: oa-mark-fade-pulse 5s ease-in-out infinite;
}
.oa-mark__iv-line {
  opacity: 0.35;
  animation: oa-mark-pl-line 4.6s ease-in-out infinite;
}
.oa-mark__iv-l1 {
  animation-delay: 0s;
}
.oa-mark__iv-l2 {
  animation-delay: 0.25s;
}
.oa-mark__iv-l3 {
  animation-delay: 0.5s;
}
.oa-mark__iv-coin {
  transform-origin: 22px 22px;
  animation: oa-mark-pl-pin 3.4s ease-in-out infinite;
}
.oa-mark__iv-dollar {
  animation: oa-mark-fade-pulse 3.4s ease-in-out infinite;
}

.oa-mark__ro-frame {
  animation: oa-mark-fade-pulse 6s ease-in-out infinite;
}
.oa-mark__ro-head {
  opacity: 0.55;
  animation: oa-mark-ro-head 3.6s ease-in-out infinite;
}
.oa-mark__ro-h1 {
  animation-delay: 0s;
}
.oa-mark__ro-h2 {
  animation-delay: 0.35s;
}
.oa-mark__ro-body {
  opacity: 0.45;
  animation: oa-mark-fade-pulse 4.4s ease-in-out infinite;
}
.oa-mark__ro-b1 {
  animation-delay: 0.1s;
}
.oa-mark__ro-b2 {
  animation-delay: 0.45s;
}
.oa-mark__ro-badge {
  transform-origin: 16px 22px;
  animation: oa-mark-ro-badge 2.8s ease-in-out infinite;
}
@keyframes oa-mark-ro-head {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.6px);
  }
}
@keyframes oa-mark-ro-badge {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.oa-mark__au-frame {
  animation: oa-mark-fade-pulse 6s ease-in-out infinite;
}
.oa-mark__au-bar {
  transform-origin: center bottom;
  animation: oa-mark-au-bar 1.8s ease-in-out infinite;
}
.oa-mark__au-b1 { animation-delay: 0s; }
.oa-mark__au-b2 { animation-delay: 0.12s; }
.oa-mark__au-b3 { animation-delay: 0.24s; }
.oa-mark__au-b4 { animation-delay: 0.36s; }
.oa-mark__au-b5 { animation-delay: 0.48s; }
@keyframes oa-mark-au-bar {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.oa-mark__ca-frame {
  animation: oa-mark-fade-pulse 6s ease-in-out infinite;
}
.oa-mark__ca-top {
  animation: oa-mark-fade-pulse 4.8s ease-in-out infinite;
}
.oa-mark__ca-ring {
  transform-origin: 16px 16px;
  animation: oa-mark-ca-ring 2.8s ease-in-out infinite;
}
.oa-mark__ca-dot {
  transform-origin: 16px 16px;
  animation: oa-mark-ca-dot 1.6s ease-in-out infinite;
}
@keyframes oa-mark-ca-ring {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
@keyframes oa-mark-ca-dot {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.7);
  }
  40% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.oa-mark__ck-face {
  animation: oa-mark-fade-pulse 6s ease-in-out infinite;
}
.oa-mark__ck-hour {
  transform-origin: 16px 16px;
  animation: oa-mark-ck-hour 8s linear infinite;
}
.oa-mark__ck-min {
  transform-origin: 16px 16px;
  animation: oa-mark-ck-min 3s linear infinite;
}
.oa-mark__ck-hub {
  animation: oa-mark-fade-pulse 2.4s ease-in-out infinite;
}
@keyframes oa-mark-ck-hour {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes oa-mark-ck-min {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Variables - breathing braces */
.oa-mark__vr-l {
  transform-origin: 10px 16px;
  animation: oa-mark-vr-l 3.6s ease-in-out infinite;
}
.oa-mark__vr-r {
  transform-origin: 22px 16px;
  animation: oa-mark-vr-r 3.6s ease-in-out infinite;
}
.oa-mark__vr-dot {
  transform-origin: 16px 16px;
  animation: oa-mark-fade-pulse 2.2s ease-in-out infinite;
}
@keyframes oa-mark-vr-l {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-1.2px); }
}
@keyframes oa-mark-vr-r {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1.2px); }
}

/* Query Report - scanning rows */
.oa-mark__qr-frame {
  animation: oa-mark-fade-pulse 6s ease-in-out infinite;
}
.oa-mark__qr-r1 { animation: oa-mark-qr-row 3.2s ease-in-out infinite; }
.oa-mark__qr-r2 { animation: oa-mark-qr-row 3.2s ease-in-out 0.35s infinite; }
.oa-mark__qr-r3 { animation: oa-mark-qr-row 3.2s ease-in-out 0.7s infinite; }
.oa-mark__qr-dot {
  transform-origin: 22px 20px;
  animation: oa-mark-fade-pulse 1.8s ease-in-out infinite;
}
@keyframes oa-mark-qr-row {
  0%, 100% { opacity: 0.45; transform: scaleX(0.92); transform-origin: 10px 50%; }
  50% { opacity: 1; transform: scaleX(1); transform-origin: 10px 50%; }
}

/* Keyboard - key taps */
.oa-mark__kb-k1 { animation: oa-mark-kb-tap 2.4s ease-in-out infinite; }
.oa-mark__kb-k2 { animation: oa-mark-kb-tap 2.4s ease-in-out 0.2s infinite; }
.oa-mark__kb-k3 { animation: oa-mark-kb-tap 2.4s ease-in-out 0.4s infinite; }
.oa-mark__kb-k4 { animation: oa-mark-kb-tap 2.4s ease-in-out 0.55s infinite; }
.oa-mark__kb-k5 { animation: oa-mark-kb-tap 2.4s ease-in-out 0.75s infinite; }
@keyframes oa-mark-kb-tap {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.55; }
  35% { transform: translateY(1.2px); opacity: 1; }
}

/* Compression - squeeze + zipper */
.oa-mark__cp-box {
  transform-origin: 16px 16px;
  animation: oa-mark-cp-squeeze 3.8s ease-in-out infinite;
}
.oa-mark__cp-t1 { animation: oa-mark-cp-tooth 2.4s ease-in-out infinite; }
.oa-mark__cp-t2 { animation: oa-mark-cp-tooth 2.4s ease-in-out 0.2s infinite; }
.oa-mark__cp-t3 { animation: oa-mark-cp-tooth 2.4s ease-in-out 0.4s infinite; }
.oa-mark__cp-press { animation: oa-mark-fade-pulse 3.8s ease-in-out infinite; }
@keyframes oa-mark-cp-squeeze {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.9); }
}
@keyframes oa-mark-cp-tooth {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Emailer - flap lift */
.oa-mark__em-body { animation: oa-mark-fade-pulse 5.5s ease-in-out infinite; }
.oa-mark__em-flap {
  transform-origin: 16px 12px;
  animation: oa-mark-em-flap 4.2s ease-in-out infinite;
}
.oa-mark__em-letter { animation: oa-mark-qr-row 3.4s ease-in-out infinite; }
@keyframes oa-mark-em-flap {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-1.5px); }
}

/* Scheduler - ticking hands */
.oa-mark__sc-face { animation: oa-mark-fade-pulse 6s ease-in-out infinite; }
.oa-mark__sc-hour {
  transform-origin: 16px 16px;
  animation: oa-mark-ck-hour 10s linear infinite;
}
.oa-mark__sc-min {
  transform-origin: 16px 16px;
  animation: oa-mark-ck-min 3.2s linear infinite;
}
.oa-mark__sc-hub { animation: oa-mark-fade-pulse 2.2s ease-in-out infinite; }
.oa-mark__sc-tick { animation: oa-mark-fade-pulse 4s ease-in-out infinite; }

/* Notifications - ring + ping */
.oa-mark__nt-bell {
  transform-origin: 16px 10px;
  animation: oa-mark-nt-ring 2.8s ease-in-out infinite;
}
.oa-mark__nt-base { animation: oa-mark-fade-pulse 2.8s ease-in-out infinite; }
.oa-mark__nt-clapper {
  transform-origin: 16px 20px;
  animation: oa-mark-nt-clap 2.8s ease-in-out infinite;
}
.oa-mark__nt-ping {
  transform-origin: 23px 9px;
  animation: oa-mark-nt-ping 2s ease-out infinite;
}
@keyframes oa-mark-nt-ring {
  0%, 70%, 100% { transform: rotate(0deg); }
  78% { transform: rotate(-10deg); }
  86% { transform: rotate(8deg); }
  93% { transform: rotate(-4deg); }
}
@keyframes oa-mark-nt-clap {
  0%, 70%, 100% { transform: translateX(0); }
  78% { transform: translateX(1px); }
  86% { transform: translateX(-1px); }
}
@keyframes oa-mark-nt-ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0.6); opacity: 0; }
}

/* Diary - page breathe */
.oa-mark__dy-left { animation: oa-mark-fade-pulse 5s ease-in-out infinite; }
.oa-mark__dy-right {
  transform-origin: 16px 16px;
  animation: oa-mark-dy-page 5s ease-in-out infinite;
}
.oa-mark__dy-l1 { animation: oa-mark-qr-row 3s ease-in-out infinite; }
.oa-mark__dy-l2 { animation: oa-mark-qr-row 3s ease-in-out 0.25s infinite; }
.oa-mark__dy-l3 { animation: oa-mark-qr-row 3s ease-in-out 0.5s infinite; }
@keyframes oa-mark-dy-page {
  0%, 100% { transform: skewY(0deg) translateX(0); }
  50% { transform: skewY(-1.5deg) translateX(0.6px); }
}

/* Rituals - flame flicker */
.oa-mark__rt-bowl { animation: oa-mark-fade-pulse 4.5s ease-in-out infinite; }
.oa-mark__rt-flame {
  transform-origin: 16px 17px;
  animation: oa-mark-rt-flame 1.8s ease-in-out infinite;
}
.oa-mark__rt-glow {
  transform-origin: 16px 12px;
  animation: oa-mark-rt-glow 1.8s ease-in-out infinite;
}
@keyframes oa-mark-rt-flame {
  0%, 100% { transform: scaleY(1) translateY(0); }
  40% { transform: scaleY(1.12) translateY(-1px); }
  70% { transform: scaleY(0.94) translateY(0.4px); }
}
@keyframes oa-mark-rt-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

/* Tree - branch sway + leaf */
.oa-mark__tr-trunk { animation: oa-mark-fade-pulse 6s ease-in-out infinite; }
.oa-mark__tr-b1 {
  transform-origin: 16px 18px;
  animation: oa-mark-tr-sway-l 3.6s ease-in-out infinite;
}
.oa-mark__tr-b2 {
  transform-origin: 16px 18px;
  animation: oa-mark-tr-sway-r 3.6s ease-in-out infinite;
}
.oa-mark__tr-b3 {
  transform-origin: 10px 13px;
  animation: oa-mark-tr-sway-l 3.6s ease-in-out 0.2s infinite;
}
.oa-mark__tr-b4 {
  transform-origin: 22px 13px;
  animation: oa-mark-tr-sway-r 3.6s ease-in-out 0.2s infinite;
}
.oa-mark__tr-leaf {
  transform-origin: 7px 9px;
  animation: oa-mark-nt-ping 2.6s ease-out infinite;
}
@keyframes oa-mark-tr-sway-l {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}
@keyframes oa-mark-tr-sway-r {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(4deg); }
}

/* Sales - briefcase lift */
.oa-mark__sl-case {
  transform-origin: 16px 24px;
  animation: oa-mark-sl-lift 3.4s ease-in-out infinite;
}
.oa-mark__sl-handle { animation: oa-mark-fade-pulse 3.4s ease-in-out infinite; }
.oa-mark__sl-latch { animation: oa-mark-fade-pulse 2.2s ease-in-out infinite; }
.oa-mark__sl-shine { animation: oa-mark-qr-row 2.8s ease-in-out infinite; }
@keyframes oa-mark-sl-lift {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-1.4px); }
}

/* Wages - stub bars */
.oa-mark__wg-card { animation: oa-mark-fade-pulse 5s ease-in-out infinite; }
.oa-mark__wg-bar1 { animation: oa-mark-qr-row 2.8s ease-in-out infinite; }
.oa-mark__wg-bar2 { animation: oa-mark-qr-row 2.8s ease-in-out 0.3s infinite; }
.oa-mark__wg-rupee {
  transform-origin: 14px 16px;
  animation: oa-mark-fade-pulse 2.4s ease-in-out infinite;
}

/* Warehouse - box slide on rack */
.oa-mark__wh-frame { animation: oa-mark-fade-pulse 6s ease-in-out infinite; }
.oa-mark__wh-shelf1,
.oa-mark__wh-shelf2 { animation: oa-mark-fade-pulse 4.5s ease-in-out infinite; }
.oa-mark__wh-box {
  animation: oa-mark-wh-box 3.2s ease-in-out infinite;
}
@keyframes oa-mark-wh-box {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(3px); opacity: 1; }
}

/* Ledger - balance pages */
.oa-mark__ld-left { animation: oa-mark-fade-pulse 5s ease-in-out infinite; }
.oa-mark__ld-right {
  transform-origin: 16px 16px;
  animation: oa-mark-dy-page 5s ease-in-out infinite;
}
.oa-mark__ld-l1 { animation: oa-mark-qr-row 3s ease-in-out infinite; }
.oa-mark__ld-l2 { animation: oa-mark-qr-row 3s ease-in-out 0.2s infinite; }
.oa-mark__ld-r1 { animation: oa-mark-qr-row 3s ease-in-out 0.35s infinite; }
.oa-mark__ld-r2 { animation: oa-mark-qr-row 3s ease-in-out 0.5s infinite; }
.oa-mark__ld-scale {
  transform-origin: 16px 11px;
  animation: oa-mark-fade-pulse 2s ease-in-out infinite;
}

.oa-mark__ts-card {
  animation: oa-mark-fade-pulse 2.6s ease-in-out infinite;
}
.oa-mark__ts-hour {
  transform-origin: 16px 19px;
  animation: oa-mark-ck-hour 12s linear infinite;
}
.oa-mark__ts-min {
  transform-origin: 16px 19px;
  animation: oa-mark-ck-min 4s linear infinite;
}
.oa-mark__ts-tick {
  animation: oa-mark-fade-pulse 1.6s ease-in-out infinite;
}
.oa-mark__ts-hub {
  animation: oa-mark-fade-pulse 2s ease-in-out infinite;
}

.oa-mark__rv-loop {
  animation: oa-mark-fade-pulse 2.2s ease-in-out infinite;
}
.oa-mark__rv-arrow {
  transform-origin: 20px 11px;
  animation: oa-mark-fade-pulse 1.6s ease-in-out infinite;
}
.oa-mark__rv-card {
  animation: oa-mark-fade-pulse 2.8s ease-in-out infinite;
}
.oa-mark__rv-line {
  animation: oa-mark-qr-row 2s ease-in-out infinite;
}
.oa-mark__rv-dot {
  animation: oa-mark-fade-pulse 1.4s ease-in-out infinite;
}

.oa-mark__dt-top {
  animation: oa-mark-fade-pulse 2.4s ease-in-out infinite;
}
.oa-mark__dt-side {
  animation: oa-mark-fade-pulse 2.8s ease-in-out infinite;
}
.oa-mark__dt-mid {
  animation: oa-mark-qr-row 2.2s ease-in-out infinite;
}
.oa-mark__dt-flow {
  animation: oa-mark-fade-pulse 1.5s ease-in-out infinite;
}
.oa-mark__dt-dot {
  animation: oa-mark-fade-pulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .oa-mark * {
    animation: none !important;
  }
}

.oa-launcher {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.oa-launcher.is-open {
  display: flex;
}

.oa-launcher__panel {
  width: min(450px, 100%);
  min-height: 11.5rem;
  display: flex;
  flex-direction: column;
  background: var(--oa-bg-card, #fff);
  border: 1px solid var(--oa-border, #c5c9d0);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

.oa-launcher__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 2.25rem;
  padding: 0 0 0 10px;
  background: #f3f4f6;
  border-bottom: 1px solid #d1d5db;
}

.oa-launcher__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: #0f172a;
}

.oa-launcher__title-logo {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.oa-launcher__title-actions {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  margin-left: auto;
}

.oa-launcher__auth {
  flex: 0 0 auto;
  height: 2.25rem;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #d1d5db;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.oa-launcher__auth:hover,
.oa-launcher__auth:focus-visible {
  background: #e5e7eb;
  outline: none;
}

.oa-launcher__close {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.oa-launcher__close:hover,
.oa-launcher__close:focus-visible {
  background: #e81123;
  color: #fff;
  outline: none;
}

.oa-launcher__body {
  flex: 1 1 auto;
  padding: 22px 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 8px 4px;
}

/* Windows Control Panel-style: glyph above, caption below */
.oa-launcher__item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 96px;
  min-height: 92px;
  margin: 0;
  padding: 12px 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #0f172a;
  text-decoration: none;
  text-align: center;
}

.oa-launcher__item:hover:not(.is-disabled),
.oa-launcher__item:focus-visible:not(.is-disabled) {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
  outline: none;
}

.oa-launcher__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.oa-launcher__icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.oa-launcher__caption {
  display: block;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #1e293b;
}

.oa-launcher__item.is-disabled,
.oa-launcher__item[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.oa-launcher__item.is-disabled .oa-launcher__caption,
.oa-launcher__item[aria-disabled="true"] .oa-launcher__caption {
  color: #64748b;
}

@media (max-width: 520px) {
  .oa-header__wordmark {
    font-size: 16px;
  }
}

/* -- Slate Save As (Windows-style location picker) -- */
.oa-saveas {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.oa-saveas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}
.oa-saveas__panel {
  position: relative;
  z-index: 1;
  width: min(28rem, 100%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  padding: 16px 16px 14px;
  color: #0f172a;
}
.oa-saveas__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}
.oa-saveas__hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #64748b;
}
.oa-saveas__path {
  margin: 0 0 8px;
  padding: 7px 10px;
  border: 1px solid #c5c9d0;
  border-radius: 6px;
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  word-break: break-all;
}
.oa-saveas__list {
  height: 12rem;
  overflow: auto;
  border: 1px solid #c5c9d0;
  border-radius: 6px;
  margin: 0 0 12px;
  background: #fff;
}
.oa-saveas__row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}
.oa-saveas__row.is-folder {
  padding-left: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ca8a04' d='M2 3.5h4.2l1.2 1.3H14V13H2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.45rem 50%;
  background-size: 14px 14px;
}
.oa-saveas__row.is-up {
  color: #1d4ed8;
  font-weight: 650;
}
.oa-saveas__row.is-selected,
.oa-saveas__row:hover {
  background: #eff6ff;
}
.oa-saveas__empty {
  padding: 14px 10px;
  font-size: 0.82rem;
  color: #64748b;
}
.oa-saveas__field {
  display: block;
  margin: 0 0 12px;
}
.oa-saveas__field span {
  display: block;
  margin: 0 0 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}
.oa-saveas__field input {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #c5c9d0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
}
.oa-saveas__field input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}
.oa-saveas__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.oa-saveas__btn {
  min-width: 4.5rem;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}
.oa-saveas__btn.is-primary {
  background: #2563eb;
  color: #fff;
}
.oa-saveas__btn.is-primary:hover {
  background: #1d4ed8;
}
.oa-saveas__btn.is-secondary {
  background: #dbeafe;
  color: #1e3a8a;
}
.oa-saveas__btn.is-secondary:hover {
  background: #bfdbfe;
}

/* ---- Auth (Login / Sign-up / re-auth) ---- */
/* Above session watermark and Accounts pickers/profile so Confirm-it-is-you
   is never trapped behind Add Users / List Users / Profile panels. */
.oa-auth {
  position: fixed;
  inset: 0;
  z-index: 2147483005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.oa-auth[hidden] {
  display: none !important;
}
.oa-auth__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(2px);
}
.oa-auth__panel {
  position: relative;
  width: min(400px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #1a1a1a;
  color: var(--oa-chrome-text, #f2f2f2);
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
  padding: 22px 22px 18px;
  z-index: 1;
}
.oa-auth__panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.oa-auth__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.oa-auth__head-text {
  min-width: 0;
  flex: 1 1 auto;
}
.oa-auth__title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.oa-auth__close {
  border: 0;
  background: #262626;
  color: #bdbdbd;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
.oa-auth__close:hover {
  background: #333;
  color: #fff;
}
.oa-auth__hint {
  margin: 0;
  font-size: 0.86rem;
  color: #c6c6c6;
  line-height: 1.4;
  font-weight: 500;
}
.oa-auth__hint:empty {
  display: none;
}
.oa-auth__note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #8f8f8f;
  line-height: 1.4;
  font-weight: 500;
}
.oa-auth__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.oa-auth__methods {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  padding: 8px 0 4px;
}
.oa-auth__methods[hidden] {
  display: none !important;
}
.oa-auth__method {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 120px;
  min-height: 118px;
  margin: 0;
  padding: 14px 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: center;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
/* Author display:flex beats UA [hidden]; Admin plane hides password tiles this way. */
.oa-auth__method[hidden] {
  display: none !important;
}
.oa-auth__method:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.oa-auth__method:focus-visible {
  outline: 2px solid #8a8a8a;
  outline-offset: 2px;
}
.oa-auth__method:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.oa-auth__method-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}
.oa-auth__method-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}
.oa-auth__method-title {
  display: block;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #e8e8e8;
}
.oa-auth__method-action {
  display: block;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.oa-auth__method-desc {
  display: none;
}
.oa-auth__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #a3a3a3;
}
.oa-auth__field[hidden] {
  display: none !important;
}
.oa-auth__field--method {
  margin-bottom: 4px;
}
.oa-auth__select {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: #121212;
  color: var(--oa-chrome-text, #f2f2f2);
  padding: 0 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}
.oa-auth__select:focus {
  outline: none;
  border-color: #6a6a6a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.oa-auth__field input {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: #121212;
  color: var(--oa-chrome-text, #f2f2f2);
  padding: 0 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}
.oa-auth__field input::placeholder {
  color: #666;
  font-weight: 500;
}
.oa-auth__field input:focus {
  outline: none;
  border-color: #6a6a6a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.oa-auth__username-card {
  display: none !important;
}
.oa-auth__username-card[hidden] {
  display: none !important;
}
.oa-auth__username-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #a3a3a3;
  margin-bottom: 6px;
}
.oa-auth__username-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.oa-auth__username-value {
  flex: 1 1 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  color: var(--oa-chrome-text, #f2f2f2);
}
.oa-auth__copy {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #2a2a2a;
  color: var(--oa-chrome-text, #f2f2f2);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.oa-auth__copy:hover {
  background: #3a3a3a;
}
.oa-auth__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(120, 40, 40, 0.28);
  border: 1px solid rgba(200, 100, 100, 0.35);
  font-size: 0.85rem;
  color: #f0b4b4;
  line-height: 1.35;
}
.oa-auth__error[hidden] {
  display: none !important;
}
.oa-auth__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.oa-auth__actions[hidden] {
  display: none !important;
}
.oa-auth__primary {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #ececec;
  color: #111;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}
.oa-auth__primary:hover {
  background: #fff;
}
.oa-auth__primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.oa-auth__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  padding-top: 8px;
  border-top: 1px solid #2a2a2a;
  margin-top: 4px;
}
.oa-auth__footer[hidden] {
  display: none !important;
}
.oa-auth__link {
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
}
.oa-auth__link:hover {
  color: #f0f0f0;
}
.oa-auth__link--accent {
  color: #d8d8d8;
}
.oa-auth__totp-box,
.oa-auth__backup-box {
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
  background: #141414;
}
.oa-auth__totp-box[hidden],
.oa-auth__backup-box[hidden] {
  display: none !important;
}
.oa-auth__totp-secret {
  display: block;
  flex: 1 1 auto;
  margin-top: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--oa-chrome-text, #f2f2f2);
}
.oa-auth__totp-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 12px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  width: 156px;
  height: 156px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  color: #333;
  font-size: 0.82rem;
  text-align: center;
  flex-shrink: 0;
}
.oa-auth__totp-qr-inner {
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  overflow: hidden !important;
  line-height: 0 !important;
  position: relative;
}
.oa-auth__totp-qr img,
.oa-auth__totp-qr canvas {
  display: block !important;
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}
.oa-auth__totp-qr table {
  display: table !important;
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  margin: 0 auto !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  line-height: 0 !important;
}
.oa-auth__totp-qr td {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  line-height: 0 !important;
  width: auto !important;
  height: auto !important;
}
.oa-auth__totp-box .oa-auth__username-label {
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* Member first-login handoff (ack authenticators + optional password reset) */
.oa-auth-handoff__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.oa-auth-handoff__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--oa-chrome-text, #f2f2f2);
  cursor: pointer;
}

.oa-auth-handoff__item input {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.oa-auth-handoff__pw {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.oa-auth-handoff__pw[hidden] {
  display: none !important;
}
.oa-auth__totp-box .oa-auth__username-row,
.oa-auth__totp-box .oa-auth__note {
  position: relative;
  z-index: 1;
}
