:root { color-scheme: dark; font: 100%/1.5 system-ui, sans-serif; background: #101522; color: #f1f1f6; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 54rem); margin: clamp(2rem, 10vh, 7rem) auto; }
h1 { font-family: Georgia, serif; font-size: clamp(2.25rem, 7vw, 4.25rem); line-height: 1; letter-spacing: -.045em; margin: .4rem 0 .75rem; }
h2 { font-size: 1.125rem; }
p { color: #bec7da; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 1rem; }
header p { margin: 0 0 1.5rem; }
header:has(> .account-links) { align-items: center; margin-block-end: 1.5rem; }
header:has(> .account-links) p { margin-bottom: 0; }
header > .account-links form { margin: 0; }
@media (max-width: 35rem) {
  header > .account-links { flex-basis: 100%; justify-content: space-between; }
}
a { color: #c8c9ff; }
.login { max-width: 28rem; margin-inline: auto; padding: clamp(1.25rem, 5vw, 2.5rem); border: 1px solid #37425b; border-radius: 1rem; background: #192135; }
.login form { display: grid; gap: .65rem; margin-top: 1.8rem; }
.app-login-heading { font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.15; overflow-wrap: anywhere; }
input, button { font: inherit; border-radius: .5rem; padding: .65rem .8rem; }
input { width: 100%; border: 1px solid #616b83; background: #101522; color: inherit; margin-bottom: .4rem; }
button { border: 1px solid transparent; background: #d9c9ff; color: #201637; font-weight: 700; cursor: pointer; }
button.secondary { background: #192135; color: inherit; border-color: #616b83; }
:focus-visible { outline: 2px solid #e4ce91; outline-offset: 3px; }
.error { color: #ffbdbd; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .85rem; }
.tile { display: flex; align-items: center; min-height: 5.5rem; gap: .8rem; padding: 1rem; background: #192135; border: 1px solid #37425b; border-radius: .75rem; text-decoration: none; color: inherit; }
.tile:hover { border-color: #c8c9ff; }
.tile small { display: block; color: #bec7da; font-size: .875rem; }
.tile img, .mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; color: #e4ce91; flex: none; }
li span { color: #bec7da; margin-inline-start: .5rem; }
.cloud-bar, .cloud-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; }
.cloud-bar { justify-content:space-between; margin:1.4rem 0 .7rem; }
.cloud-path { display:flex; align-items:stretch; flex:1 1 14rem; min-width:0; gap:.5rem; }
.cloud-back, .cloud-crumbs { min-height:2.8rem; background:#0b101d; border:1px solid #37425b; border-radius:.6rem; box-shadow:inset 0 3px 9px #0005; }
.cloud-back { display:grid; place-items:center; flex:none; width:2.8rem; font-size:1.25rem; line-height:1; text-decoration:none; }
a.cloud-back:hover { background:#293250; }
span.cloud-back { color:#8992a7; }
.cloud-crumbs {
  flex:1; display:flex; align-items:center; flex-wrap:wrap; column-gap:.55rem; row-gap:.2rem;
  min-width:0; padding:.35rem .75rem; color:#bec7da; overflow-wrap:anywhere;
  font:400 .875rem/1.35 "Aptos", "Segoe UI", system-ui, sans-serif; letter-spacing:.012em;
}
.cloud-crumbs a, .cloud-crumbs [aria-current] { min-width:0; }
.cloud-crumb-divider { color:#8391ac; }
.cloud-create { position:relative; }
.cloud-create summary { padding:.65rem .8rem; border:1px solid #616b83; background:#192135; border-radius:.5rem; cursor:pointer; }
.cloud-create form { position:absolute; right:0; top:calc(100% + .4rem); z-index:1; width:min(16rem, 75vw); padding:.9rem; background:#192135; border:1px solid #616b83; border-radius:.6rem; }
.cloud-create label { display:block; margin-bottom:.35rem; }
.cloud-tray { width:100%; min-height:0; overflow:auto; scrollbar-gutter:stable; padding:clamp(.65rem, 3vw, 1.25rem); background:#0b101d; border:1px solid #37425b; border-radius:.8rem; box-shadow:inset 0 3px 9px #0005; }
.cloud-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 6rem), 6rem)); gap:.55rem; list-style:none; padding:0; margin:0; }
.cloud-tile { position:relative; width:100%; aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.2rem; padding:.35rem; background:#192135; border:1px solid #37425b; border-radius:.6rem; text-decoration:none; text-align:center; color:#f1f1f6; touch-action:manipulation; }
.cloud-tile:hover, .cloud-tile[data-drop-active] { border-color:#d9c9ff; background:#293250; }
.cloud-tile[data-file] { cursor:grab; }
.cloud-name { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.8125rem; }
.cloud-tile small { color:#bec7da; font-size:.75rem; }
.cloud-icon { position:relative; display:grid; place-items:center; flex:none; width:3.55rem; height:3rem; color:#c6b6ef; }
.cloud-icon svg { width:2rem; height:2rem; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.cloud-kind-folder { color:#d8bc7a; }
.cloud-kind-folder svg { width:2.75rem; height:2.75rem; fill:#352e31; }
.cloud-kind-pdf { color:#f1aab4; }
.cloud-kind-document { color:#a9caff; }
.cloud-kind-image { color:#9edcc8; }
.cloud-kind-archive { color:#e4ce91; }
.cloud-kind-media { color:#dfaff5; }
.cloud-kind-code { color:#9bd7e9; }
.cloud-thumbnail { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; border-radius:.35rem; }
.cloud-thumbnail[data-ready] { opacity:1; background:#151b2e; }

main:has(> .cloud-view) {
  height:100vh;
  height:100dvh;
  display:grid;
  grid-template-rows:auto auto auto minmax(0,1fr) auto;
  gap:.6rem;
  margin:0 auto;
  padding-block:clamp(.75rem, 4vh, 2.5rem) .75rem;
}
main:has(> .cloud-view) > h1 { margin:0; }
main:has(> .cloud-view) .cloud-bar { margin:0; }
#cloud-status { min-height:1.5em; margin:0; overflow-wrap:anywhere; }

/* Cloud */
.cloud-path { flex-basis:16rem; }
.cloud-crumbs [aria-current] { color:#efe7ff; font-weight:550; }
.cloud-crumbs a { color:#bec7da; text-decoration:none; text-underline-offset:.2em; }
.cloud-crumbs a:hover { color:#f1f1f6; text-decoration:underline; }
.cloud-actions { gap:.5rem; }
.cloud-create summary { list-style:none; font-weight:600; }
.cloud-create summary::-webkit-details-marker { display:none; }
.cloud-create[open] summary { border-color:#d9c9ff; }
.cloud-create form { box-shadow:0 .45rem 1.5rem #0007; }
.cloud-grid li { min-width:0; }
.cloud-tile span { margin-inline-start:0; }
.cloud-tile[data-selected] { background:#252e48; border-color:#d9c9ff; }
.cloud-tile[data-drop-active] { background:#393353; border-color:#e4ce91; }
.cloud-empty { display:grid; align-content:center; justify-items:center; min-height:100%; text-align:center; padding:1rem; }
.cloud-empty p { margin:.25rem 0 0; font-size:.9rem; }
.cloud-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.25rem .75rem; min-height:2.25rem; font-size:.875rem; }
.cloud-selection { display:flex; align-items:center; gap:.65rem; max-width:100%; min-width:0; }
.cloud-selection[hidden] { display:none; }
.cloud-selection span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cloud-open { flex:none; padding:.25rem .65rem; border:1px solid #616b83; border-radius:.4rem; text-decoration:none; background:#192135; }
#cloud-status:empty { display:none; }
@media (max-width:35rem) {
  .cloud-path { flex-basis:100%; }
  .cloud-actions { margin-left:auto; }
  .cloud-bar > .cloud-actions { width:100%; margin-left:0; justify-content:space-between; }
  .cloud-grid { grid-template-columns:repeat(auto-fill, minmax(min(100%, 5.1rem), 1fr)); }
  .cloud-tile { max-width:6rem; justify-self:center; }
}

.cloud-grid li { position:relative; }
.cloud-tile[data-folder][data-selected] .cloud-icon { opacity:.38; }
.cloud-selection a[hidden] { display:none; }
.cloud-open-overlay {
  position:absolute;
  z-index:1;
  inset:50% auto auto 50%;
  display:grid;
  place-items:center;
  width:2.65rem;
  height:2.65rem;
  border:1px solid #d9c9ff80;
  border-radius:.7rem;
  background:#202942de;
  color:#e9dfff;
  pointer-events:none;
  transform:translate(-50%,-50%);
  transition:transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.cloud-open-overlay svg { width:1.3rem; height:1.3rem; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.cloud-tile[data-folder][data-selected]:hover > .cloud-open-overlay,
.cloud-tile[data-folder][data-selected]:focus-visible > .cloud-open-overlay {
  transform:translate(-50%,-50%) scale(1.12);
  background:#3c345b;
  box-shadow:0 0 .75rem #d9c9ff50;
}
@media (prefers-reduced-motion:reduce) {
  .cloud-open-overlay { transition:none; }
}
.cloud-back[data-drop-ready] {
  border-color:#e4ce91;
  animation:cloud-parent-pulse 1.8s ease-in-out infinite;
}
.cloud-back[data-drop-active] {
  animation:none;
  transform:scale(1.10);
  background:#393353;
  border-color:#e4ce91;
}
@keyframes cloud-parent-pulse {
  0%, 100% { transform:scale(1); }
  50% { transform:scale(1.10); }
}
@media (prefers-reduced-motion:reduce) {
  .cloud-back[data-drop-ready], .cloud-back[data-drop-active] {
    animation:none;
    transform:none;
  }
}
.cloud-move-up { flex:none; padding:.25rem .65rem; font-weight:500; }

.cloud-select-mode { display:none; }
.cloud-select-mode[aria-pressed="true"] { color:#201637; background:#d9c9ff; border-color:#d9c9ff; }
.cloud-touch-move { display:flex; flex:1 1 auto; flex-wrap:wrap; gap:.35rem; min-width:0; }
.cloud-touch-move[hidden], .cloud-selection[data-touch-selection] .cloud-move-up { display:none; }
.cloud-touch-move select { flex:1 1 8rem; min-width:0; max-width:100%; font:inherit; color:inherit; background:#192135; border:1px solid #616b83; border-radius:.45rem; padding:.45rem; }
@media (pointer:coarse), (any-pointer:coarse) {
  .cloud-select-mode { display:inline-block; }
  .cloud-selection[data-touch-selection] { flex-wrap:wrap; width:100%; }
  .cloud-selection[data-touch-selection] > span { flex:1 1 8rem; }
  .cloud-touch-move { flex-basis:100%; }
  .cloud-touch-move select, .cloud-touch-move button { min-height:44px; font-size:1rem; }
  .cloud-selection[data-touch-selection] .cloud-open { padding:.55rem .65rem; min-height:44px; }
}

.master-home { display:inline-grid; place-items:center; width:5.25rem; min-height:2.75rem; text-decoration:none; }
.master-home svg { display:block; width:100%; height:auto; aspect-ratio:3 / 1; stroke-linejoin:round; transition:transform .16s ease, filter .16s ease; }
.master-home:hover svg { transform:translateX(-.2rem); filter:drop-shadow(0 0 .35rem #b8a9ed70); }
.master-blade { fill:#dbe7f8; stroke:#a3bae6; stroke-width:1; }
.master-ridge { fill:none; stroke:#7791bf; stroke-width:.8; }
.master-grip { fill:#483767; stroke:#b8a9ed; stroke-width:1; }
.master-hilt { fill:#6f61aa; stroke:#b8a9ed; stroke-width:1; }
.master-gem { fill:#e4ce91; }
@media (prefers-reduced-motion:reduce) {
  .master-home svg { transition:none; }
  .master-home:hover svg { transform:none; }
}
.cloud-tray[data-upload-ready] { outline:2px dashed #e4ce91; outline-offset:-5px; background:#161a2c; }
.cloud-footer { justify-content:flex-start; }
#cloud-count { margin:0 0 0 auto; white-space:nowrap; }
.cloud-selection { flex-wrap:wrap; }
.cloud-selection button { padding:.25rem .6rem; font-weight:500; }
.cloud-selection [hidden], .cloud-dialog [hidden] { display:none; }
.cloud-dialog { width:min(27rem, calc(100% - 2rem)); color:#f1f1f6; background:#192135; padding:1.3rem; border:1px solid #616b83; border-radius:.85rem; }
.cloud-dialog::backdrop { background:#080b14b8; }
.cloud-dialog h2 { margin:0; font-size:1.25rem; }
.cloud-dialog p { margin:.55rem 0 1rem; overflow-wrap:anywhere; }
.cloud-dialog label { display:block; margin-bottom:.3rem; }
.cloud-dialog .cloud-actions { justify-content:flex-end; margin-top:.75rem; }
@media (pointer:coarse) {
  .cloud-selection button { min-height:44px; }
  .cloud-dialog input { font-size:1rem; }
}

.cloud-controls { display:grid; gap:.5rem; min-width:0; padding-top:.3rem; }
.cloud-view { min-height:0; position:relative; display:grid; grid-template-rows:minmax(0,1fr); }
.cloud-viewbar { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.cloud-viewbar[hidden], .cloud-grid li[hidden] { display:none; }
.cloud-viewbar input, .cloud-viewbar select {
  width:auto; min-width:0; margin:0; padding:.42rem .65rem; border:1px solid #465571;
  border-radius:.5rem; background:#192135; color:inherit; font:inherit;
}
.cloud-viewbar input { flex:1 1 9rem; }
.cloud-viewbar select { flex:0 1 auto; }
.cloud-trash-link { padding:.65rem .75rem; color:#bec7da; text-underline-offset:.2em; }
.cloud-trash-link:hover { color:#f1f1f6; }
.cloud-no-matches { margin:.75rem .4rem; }
.cloud-trash-list { padding:0; list-style:none; }
.cloud-trash-list li { display:flex; align-items:start; justify-content:space-between; flex-wrap:wrap; gap:.6rem; padding:1rem 0; border-bottom:1px solid #37425b; overflow-wrap:anywhere; }
.cloud-trash-list small { color:#bec7da; display:block; }
.cloud-trash-list summary { padding:.65rem .4rem; cursor:pointer; }
.cloud-trash-list details form { margin-top:.5rem; }
@media (pointer:coarse) {
  .cloud-viewbar input, .cloud-viewbar select { min-height:44px; font-size:1rem; }
}


.cloud-actions .cloud-tool, .cloud-selection .cloud-tool {
  position:relative;
  width:2.65rem;
  min-height:2.65rem;
  display:inline-grid;
  place-items:center;
  flex:none;
  padding:0;
  border:1px solid #37425b;
  border-radius:.55rem;
  text-decoration:none;
  background:#192135;
  color:#e5ddfa;
  line-height:1;
}
.cloud-tool svg { width:1.15rem; height:1.15rem; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.cloud-sort-tool:focus-within, .cloud-tool[aria-pressed="true"], .cloud-tool[aria-expanded="true"] { border-color:#d9c9ff; background:#2b3152; }
@media (hover:hover) {
  .cloud-tool:hover { border-color:#d9c9ff; background:#2b3152; }
}
.cloud-actions .cloud-upload-tool { background:#d9c9ff; border-color:#d9c9ff; color:#201637; }
.cloud-actions .cloud-upload-tool:hover { background:#e8deff; }
.cloud-actions .cloud-select-mode { display:none; }
.cloud-sort-tool select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.cloud-selection[hidden], .cloud-selection .cloud-tool[hidden] { display:none; }
.cloud-view .cloud-selection {
  position:absolute;
  z-index:2;
  left:50%;
  bottom:.65rem;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 1.3rem);
  gap:.35rem;
  padding:.36rem;
  border:1px solid #465571;
  border-radius:.8rem;
  background:#161e33f5;
  box-shadow:0 .35rem 1.4rem #04071295;
}
.cloud-selected-name { max-width:14rem; padding-inline:.4rem; }
.cloud-view:has(.cloud-selection:not([hidden])) .cloud-tray { scroll-padding-bottom:7rem; }
.cloud-view:has(.cloud-selection:not([hidden])) .cloud-grid::after { content:""; display:block; grid-column:1/-1; height:3rem; }
.cloud-grid .cloud-tile { background:#1921358c; border-color:#37425b6b; }
.cloud-grid .cloud-tile:hover, .cloud-grid .cloud-tile[data-selected] { background:#252e48; border-color:#d9c9ff; }
@media (prefers-reduced-motion:no-preference) {
  .cloud-view .cloud-selection:not([hidden]) { animation:cloud-dock-in .28s ease-out both; }
}
@keyframes cloud-dock-in {
  from { opacity:0; transform:translate(-50%,.45rem); }
  to { opacity:1; transform:translate(-50%,0); }
}
@media (pointer:coarse), (any-pointer:coarse) {
  .cloud-actions .cloud-select-mode { display:inline-grid; }
  .cloud-actions .cloud-tool, .cloud-selection .cloud-tool { width:44px; min-height:44px; }
  .cloud-view .cloud-selection[data-touch-selection] { width:calc(100% - 1.3rem); }
  .cloud-view:has(.cloud-selection[data-touch-selection]:not([hidden])) .cloud-grid::after { height:6rem; }
}

.cloud-info-tool span { display:grid; place-items:center; }
.cloud-info-tool span[hidden], .cloud-details[hidden] { display:none; }
.cloud-details {
  position:absolute;
  inset:.6rem .6rem .6rem auto;
  z-index:3;
  width:min(21rem, calc(100% - 1.2rem));
  overflow:auto;
  padding:1rem;
  border:1px solid #465571;
  border-radius:.8rem;
  background:#161e33;
  box-shadow:0 .35rem 1.4rem #04071295;
}
.cloud-details-head { display:flex; justify-content:space-between; align-items:center; gap:.6rem; margin-bottom:.8rem; }
.cloud-details-head h2 { margin:0; }
.cloud-details-head button { min-width:2.75rem; min-height:2.75rem; padding:0; font-size:1.25rem; }
.cloud-details dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.65rem .75rem; margin:0; }
.cloud-details dt { color:#bec7da; }
.cloud-details dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.cloud-details progress { width:100%; margin-bottom:.85rem; accent-color:#d9c9ff; }
@media (prefers-reduced-motion:no-preference) {
  .cloud-info-tool span:not([hidden]) { animation:cloud-info-switch .2s ease-out both; }
  .cloud-details:not([hidden]) { animation:cloud-details-in .22s ease-out both; }
}
@keyframes cloud-info-switch { from { opacity:.2; transform:scale(.76); } to { opacity:1; transform:scale(1); } }
@keyframes cloud-details-in { from { opacity:0; transform:translateX(.6rem); } to { opacity:1; transform:translateX(0); } }
@media (max-width:40rem), (pointer:coarse) {
  .cloud-details { inset:auto .55rem .55rem; width:auto; max-height:calc(100% - 1.1rem); }
  @keyframes cloud-details-in { from { opacity:0; transform:translateY(.6rem); } to { opacity:1; transform:translateY(0); } }
}
.cloud-admin-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.8rem; }
.cloud-admin-cards article { border:1px solid #37425b; border-radius:.8rem; background:#192135; padding:1rem; }
.cloud-admin-cards h2, .cloud-admin-cards p { margin:0 0 .5rem; }
.cloud-admin-table { overflow:auto; }
.cloud-admin-table table { width:100%; border-collapse:collapse; }
.cloud-admin-table th, .cloud-admin-table td { padding:.55rem; border-bottom:1px solid #37425b; text-align:left; }
.cloud-admin-table small { display:block; color:#bec7da; }
.cloud-admin-table form { display:flex; align-items:center; gap:.45rem; }
.cloud-admin-table input[type=number] { width:6.5rem; margin:0; }
@media (prefers-reduced-motion:no-preference) {
  .cloud-open-overlay { animation:cloud-open-in .18s ease-out; }
}
@keyframes cloud-open-in { from { opacity:0; } to { opacity:1; } }

.master-word { display:inline-block; white-space:nowrap; }
.master-letter { position:relative; display:inline-block; isolation:isolate; }
.master-letter-face { position:relative; z-index:1; }
.master-wordmark-sword {
  position:absolute;
  left:47%;
  top:54%;
  width:1.43em;
  transform:translate(-50%,-50%) rotate(-123deg);
  pointer-events:none;
}
.master-wordmark-sword svg { display:block; width:100%; height:auto; stroke-linejoin:round; }

.user-admin-back { display:inline-block; margin:0 0 1rem .75rem; text-underline-offset:.2em; }
.user-create, .user-account { border:1px solid #37425b; border-radius:.8rem; padding:1rem; background:#192135; }
.user-create summary, .user-account summary { cursor:pointer; }
.user-create-form, .user-account-controls { display:flex; align-items:end; flex-wrap:wrap; gap:.85rem; margin-top:1rem; }
.user-create-form label { flex:1 1 12rem; }
.user-create-form label, .user-account-controls label { display:grid; gap:.35rem; }
.user-create-form input, .user-account-controls input { margin:0; }
.user-create-form select, .user-account-controls select { font:inherit; padding:.65rem; color:inherit; background:#101522; border:1px solid #616b83; border-radius:.5rem; }
.user-accounts { display:grid; gap:.75rem; }
.user-account-heading { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:baseline; gap:.5rem; margin-bottom:.6rem; }
.user-account-heading h2 { margin:0; overflow-wrap:anywhere; }
.user-account-heading small, .user-account-heading > span, .user-help { color:#bec7da; font-size:.875rem; font-weight:400; }
.user-account-controls form { display:grid; gap:.55rem; min-width:0; flex:1 1 12rem; }
.user-disable { flex:1 1 12rem; }
.user-disable form { padding-top:.5rem; }
.app-back { display:inline-grid; vertical-align:middle; }

/* Central administration */
.admin-page{--admin-line:#303b53;--admin-tray:#0b101d;--admin-muted:#aab6cd;--admin-violet:#cbb9f3;--admin-gold:#dcc38c}
.admin-topline{display:flex;align-items:center;gap:.65rem;margin-bottom:2.2rem;min-width:0}.admin-topline .master-home{margin:0;flex:none}.admin-breadcrumb{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:var(--admin-tray);border:1px solid var(--admin-line);border-radius:.65rem;padding:.65rem .8rem;color:#b8c3da;font-size:.82rem;box-shadow:inset 0 2px 7px #0004}
.admin-icon-button{display:inline-grid;place-items:center;flex:none;width:2.75rem;height:2.75rem;padding:.65rem;border:1px solid #48536e;border-radius:.65rem;background:#192135;color:#dbd2ee;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}.admin-icon-button:hover{background:#2b3250;border-color:var(--admin-violet);transform:translateY(-1px)}.admin-icon-button:disabled{opacity:.35;cursor:not-allowed;transform:none}.admin-icon-button.is-danger{color:#efb3bb;border-color:#744352;background:#301e2a}.admin-icon-button.is-danger:hover{background:#462635;border-color:#c87a8e}
.admin-icon-button svg,.admin-app-icon svg,.admin-identity>svg,.admin-card-arrow svg,.user-chevron svg,.user-create summary>svg,.user-danger summary>svg,.user-search svg{display:block;width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}
.admin-session-pill{display:flex;gap:.4rem;align-items:center;flex:none;font-size:.75rem;color:#a7cfc2;white-space:nowrap}.admin-session-pill i{width:.4rem;height:.4rem;border-radius:50%;background:#8fc7b6;box-shadow:0 0 .7rem #8fc7b62a}.admin-heading{align-items:end;margin-bottom:1.6rem;gap:1rem}.admin-heading h1{font-size:clamp(1.8rem,5vw,3rem);line-height:1.12;margin:0}.admin-heading .admin-eyebrow{font:600 .65rem/1.4 system-ui,sans-serif;letter-spacing:.16em;color:#b7aacd;margin:0 0 .65rem}.admin-identity{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;font-size:.85rem;color:#d3cee1}.admin-identity>svg{color:var(--admin-gold);width:1rem}.admin-identity small{font-size:.65rem;color:var(--admin-gold);padding:.2rem .45rem;border:1px solid #6b5b3f;border-radius:.35rem;background:#242129}
.admin-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-bottom:1.8rem}.admin-metrics>div{display:grid;gap:.25rem;align-content:start;border:1px solid var(--admin-line);border-radius:.85rem;background:linear-gradient(145deg,#1b2338,#151d2e);padding:1.1rem}.admin-metrics span{font-size:.75rem;color:var(--admin-muted)}.admin-metrics strong{font-size:1.8rem;letter-spacing:-.04em;font-weight:550}.admin-metrics em{font-size:.8rem;color:var(--admin-muted);font-style:normal;font-weight:400;letter-spacing:normal}.admin-metrics small{font-size:.7rem;color:var(--admin-muted)}
.admin-section-title{display:flex;justify-content:space-between;align-items:center;gap:.8rem;margin:1.6rem 0 .65rem}.admin-section-title h2{font-size:.9rem;font-weight:550;margin:0}.admin-section-title>span{color:var(--admin-muted);font-size:.72rem}.admin-tray{padding:.7rem;background:var(--admin-tray);border:1px solid var(--admin-line);border-radius:1rem;box-shadow:inset 0 3px 12px #0004}.admin-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.admin-destination{position:relative;display:flex;align-items:center;gap:.85rem;min-width:0;padding:1.15rem 1rem;min-height:6.5rem;border:1px solid #34405a;border-radius:.75rem;text-decoration:none;color:inherit;background:#182034;transition:background .16s,border-color .16s,transform .16s}.admin-destination:hover{border-color:#8c83ac;background:#202940;transform:translateY(-1px)}.admin-destination>span:nth-child(2){min-width:0;flex:1}.admin-destination strong{font-weight:550;font-size:1rem;display:block;overflow-wrap:anywhere}.admin-destination small{display:block;color:var(--admin-muted);font-size:.75rem;margin-top:.35rem;line-height:1.5}.admin-app-icon{display:grid;place-items:center;width:2.7rem;height:2.7rem;flex:none;border:1px solid #514563;border-radius:.7rem;color:var(--admin-violet);background:#29243e}.admin-app-icon svg{width:1.35rem;height:1.35rem}.accent-gold .admin-app-icon{color:var(--admin-gold);background:#2a2732;border-color:#5c513d}.accent-teal .admin-app-icon{color:#9bd4c9;background:#1e3037;border-color:#385b5e}.admin-card-arrow{flex:none;color:#a8a1bf}.admin-card-arrow svg{width:1rem}.admin-destination.is-disabled{opacity:.5;transform:none}.admin-footnote{font-size:.75rem;color:#9aa6c0;margin:1rem .25rem 0;line-height:1.65}
.admin-notice{padding:.8rem 1rem;border:1px solid #41685e;border-radius:.65rem;background:#172c2d;color:#b2dacf;font-size:.85rem}.admin-notice.is-error{background:#2d1d29;border-color:#754452;color:#f0b6c0}
.admin-page .user-create{padding:0;background:#192135;border:1px solid var(--admin-line);border-radius:.8rem;margin-bottom:1rem}.user-create>summary{display:flex;align-items:center;gap:.6rem;padding:1rem;list-style:none;font-size:.85rem;font-weight:550;cursor:pointer}.user-create>summary>svg:first-child{color:var(--admin-violet)}.user-create>summary>svg:last-child{margin-left:auto;width:1rem}.user-create>summary::-webkit-details-marker,.user-account>summary::-webkit-details-marker,.user-danger>summary::-webkit-details-marker{display:none}.admin-page .user-create-form{display:grid;grid-template-columns:1.2fr .7fr 1.2fr auto;align-items:end;gap:.8rem;padding:0 1rem 1rem;margin:0}.user-create-form label,.user-control label{font-size:.75rem;color:#c3cce0;display:grid;gap:.4rem;min-width:0}.user-create-form input,.user-control input,.user-control select,.user-create-form select{font-size:.85rem;min-width:0;width:100%;margin:0;padding:.65rem;background:#0e1524;border:1px solid #46516c;color:inherit;border-radius:.5rem}.admin-page .user-create-form p{grid-column:1/-1;margin:0;font-size:.72rem}
.user-search{display:flex;align-items:center;gap:.65rem;min-width:0;padding:.65rem .85rem;margin-bottom:.85rem;border:1px solid var(--admin-line);border-radius:.65rem;background:#11192a}.user-search>span:first-child{color:#a6a1bb;flex:none}.user-search input{flex:1;min-width:0;margin:0;background:none;border:0;padding:.3rem 0;font-size:.85rem;outline-offset:4px}.user-search>[data-user-count]{flex:none;font-size:.7rem;color:var(--admin-muted)}.admin-page [hidden]{display:none!important}.admin-page .user-accounts{gap:.5rem}.admin-page .user-account{padding:0;background:#172034;border:1px solid #303c55;border-radius:.7rem;overflow:hidden}.admin-page .user-account-heading{display:grid;grid-template-columns:2.6rem minmax(0,1fr) auto auto 1rem;gap:.75rem;align-items:center;padding:.9rem;margin:0;list-style:none;cursor:pointer}.user-avatar{display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:.7rem;background:#2a2843;border:1px solid #4a4263;color:#d8c7ef;font:1.2rem Georgia,serif}.user-name{min-width:0}.user-name strong{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;font-size:.9rem;font-weight:550;overflow-wrap:anywhere}.user-name strong>small{font-size:.6rem;color:#b7afd1;padding:.1rem .35rem;background:#302c48;border-radius:.3rem}.user-name>span{display:block;font-size:.7rem;color:#9daac3;overflow-wrap:anywhere;margin-top:.15rem}.user-role{font-size:.7rem;color:var(--admin-gold)}.user-state{font-size:.65rem;white-space:nowrap;padding:.2rem .45rem;border:1px solid #355b56;border-radius:1rem;color:#a7d4c5;background:#193032}.user-state.is-disabled{color:#b9a9b3;background:#2a2532;border-color:#554452}.user-chevron{color:#a9a1bb}.user-chevron svg{width:.95rem;transition:transform .2s}.user-account[open]>.user-account-heading{border-bottom:1px solid var(--admin-line);background:#1c263c}.user-account[open] .user-chevron svg,.user-create[open]>summary>svg:last-child{transform:rotate(180deg)}.user-editor{padding:1rem}.user-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.user-control{display:grid;align-content:start;gap:.65rem;min-width:0;border:1px solid var(--admin-line);border-radius:.65rem;background:#101829;padding:.9rem;margin:0}.user-control strong{font-size:.8rem;font-weight:550}.user-control small,.user-delete p{font-size:.7rem;color:var(--admin-muted);line-height:1.6;margin:0}.user-control .admin-icon-button{justify-self:end}.user-danger{grid-column:1/-1;border:1px solid #594052;background:#211b2b;border-radius:.65rem;overflow:hidden}.user-danger>summary{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.85rem;list-style:none;color:#d9afbd;font-size:.8rem;cursor:pointer}.user-danger .user-control-grid{padding:0 .8rem .8rem}.user-danger .user-control{border-color:#574050;background:#1b1725}.user-search-empty{text-align:center;color:var(--admin-muted);padding:1.4rem}
@media(max-width:40rem){.admin-destinations{grid-template-columns:1fr}.admin-page .user-create-form{grid-template-columns:1fr 1fr}.user-create-form>label:first-child,.user-create-form>label:nth-child(4){grid-column:1/-1}.admin-section-title>span{font-size:.65rem}.admin-destination{min-height:5.8rem}.admin-topline .master-home{width:4.2rem}.admin-session-pill{font-size:.65rem}}
@media(max-width:30rem){.admin-metrics{gap:.4rem}.admin-metrics>div{padding:.75rem .65rem}.admin-metrics span{font-size:.65rem}.admin-metrics strong{font-size:1.5rem}.admin-metrics small{font-size:.6rem}.admin-section-title>span{max-width:9rem;text-align:right}.admin-page .user-account-heading{grid-template-columns:2.3rem minmax(0,1fr) auto .8rem;gap:.45rem;padding:.75rem}.user-avatar{grid-row:1/3;width:2.3rem;height:2.3rem}.user-name{grid-column:2;grid-row:1/3}.user-role{grid-column:3;grid-row:1;text-align:right}.user-state{grid-column:3;grid-row:2;font-size:.6rem}.user-chevron{grid-column:4;grid-row:1/3}.user-control-grid{grid-template-columns:1fr}.user-editor{padding:.7rem}.admin-identity{font-size:.75rem}.admin-page .user-create-form{grid-template-columns:1fr}.user-create-form>label{grid-column:1}.admin-topline{gap:.4rem}.admin-breadcrumb{padding-inline:.55rem;font-size:.7rem}}
@media(prefers-reduced-motion:reduce){.admin-icon-button,.admin-destination,.user-chevron svg{transition:none}.admin-icon-button:hover,.admin-destination:hover{transform:none}}
.admin-page{overflow-wrap:anywhere}.admin-identity{max-width:100%}
.user-system-name{display:block;min-width:0;padding:.65rem .8rem;border:1px solid #303a50;border-radius:.5rem;background:#0b111e;color:#8390a9;font:.8rem/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;pointer-events:none;user-select:none}
