/* SPDX-License-Identifier: AGPL-3.0-or-later */
@import url('../design/spatial/theme.css');
@import url('../design/spatial/spatial-tokens.css');
@import url('../design/spatial/AppFrame.module.css');
@import url('../design/spatial/Primitives.module.css');
@import url('../design/spatial/Aumlok.module.css');
@import url('../design/spatial/primitives.css');

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #aukora-shell, .shell { width: 100%; height: 100%; margin: 0; }
body { color: var(--aukora-text); background: var(--dsw-specific-spatial-canvas); font: 14px var(--dsw-font-family); }
#aukora-shell { transition: opacity 1s cubic-bezier(.16, 1, .3, 1); }
body[data-claiming] #aukora-shell { opacity: 0; }
button, select { font: inherit; }
button:disabled { cursor: default; }
.face-slot { position: absolute; inset: 0; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.face-slot[data-active='false'] { visibility: hidden; pointer-events: none; }
.face-frame { display: block; flex: 1; width: 100%; min-height: 0; border: 0; background: transparent; }
.surface-status { margin: 0; padding: 24px; color: var(--dsw-alias-label-tertiary); }
.surface-status[hidden] { display: none; }
.threadLayer > [data-slot], .threadConversationBody > [data-slot] { position: relative; }
.menuEntries { width: 100%; }
.approvals-entry[data-pending='true'] { color: var(--dsw-static-spatial-mint); }
/* Sign in / Sign out sits under the scrolling panel, pinned across the base of the menu lane in every tab. */
.rightLayer { display: flex; flex-direction: column; }
.rightLayer > .menuPanel { flex: 1 1 auto; height: auto; }
.rightLayer > .menuFoot { flex: none; overflow: visible; padding-top: 0; }
.menuFootNote { margin: 0 10px; color: var(--dsw-alias-label-tertiary); font-size: var(--dsh-spatial-menu-description-size); line-height: var(--dsh-spatial-menu-description-line-height); text-align: right; }

.laneShell, .laneCenter .laneShell { background: var(--spatial-lane-surface); }
.cornerControl[data-corner='left'], .cornerControl[data-corner='conversation-close'] { --spatial-accent: var(--spatial-mint); }
.cornerControl[data-corner^='center-'] { --spatial-accent: var(--spatial-blue); }
.menuTab[data-menu-tab='apps'] { --spatial-accent: var(--spatial-violet); }
.menuTab[data-menu-tab='system'] { --spatial-accent: var(--spatial-blue); }
.menuTab[data-menu-tab='yours'] { --spatial-accent: var(--spatial-mint); }
:root body #aukora-shell .menuPanel button:hover { transform: none; }

.owner-dialog { width: min(720px, 94vw); height: min(820px, 92dvh); padding: 0; border: 1px solid var(--spatial-border); border-radius: 22px; background: linear-gradient(var(--spatial-lane-surface), var(--spatial-lane-surface)), var(--dsw-specific-spatial-canvas); color: var(--spatial-text); }
.owner-dialog::backdrop { background: var(--aukora-backdrop); }
.owner-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.owner-toolbar button { --spatial-accent: var(--spatial-mint); border: 1px solid var(--spatial-control-border); border-radius: var(--spatial-radius); padding: 8px 12px; color: inherit; background: var(--spatial-surface); cursor: pointer; }
.owner-frame { display: block; width: 100%; height: calc(100% - 65px); border: 0; background: var(--spatial-surface); }
.shell-connection { position: fixed; z-index: 20; right: 16px; bottom: 16px; max-width: calc(100% - 32px); margin: 0; border: 1px solid var(--spatial-control-border); border-radius: var(--spatial-radius); padding: 10px 14px; color: var(--spatial-text); background: var(--spatial-surface); font-size: 12px; }
.startup-refusal { margin: 24px; color: var(--aukora-text); }

/* The phone changes the shown lane, retaining the desktop weights and each mounted frame. */
.frame[data-phone='true'] { padding: 0; gap: 0; }
.frame[data-phone='true'] .laneShell { width: 100%; }
.frame[data-phone='true'] .laneCenter { width: 100%; transform: none; }
.frame[data-phone='true'] .threadStack,
.frame[data-phone='true'] .surfaceStack,
.frame[data-phone='true'] .rightStack { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Peter, 2026-10-16: hot corners are invisible zones (a soft glow on hover, never a border), and the menu tab icons
   carry no outline; only the selected tab shows its highlight, as in his Spatial app. */
:root body #aukora-shell .cornerControl { border: 0 !important; box-shadow: none !important; background: transparent !important; outline: none; }
:root body #aukora-shell .cornerControl:hover, :root body #aukora-shell .cornerControl:focus-visible {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--spatial-accent) 22%, transparent), transparent) !important; }
:root body #aukora-shell .menuTab { border: 0 !important; box-shadow: none !important; background: transparent !important; }
:root body #aukora-shell .menuTab[aria-selected='true'] { background: color-mix(in srgb, var(--spatial-accent) 16%, transparent) !important; }
