.sdux-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
}
.sdux-brand img { display: block; width: auto; height: 32px; filter: brightness(0); }
.sdux-brand:focus-visible, .sdux-tile:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}
.sdux-shell {
  color-scheme: dark;
  --bg: #000;
  --ink: #fff;
  --card: #121212;
  --soft: #222;
  --line: #555;
  --muted: #b7b7b7;
  --purple: #b7b7b7;
  --green: #fff;
  --orange: #b7b7b7;
  --ok: #dedede;
  --bad: #ffb6b6;
}
.sdux-shell :is(.sdux-section, .card, .file, .fcard:not(.fnew), .empty, dialog:not(.pdfv), .menu) {
  color-scheme: light;
  --bg: #fff;
  --card: #fff;
  --ink: #141414;
  --muted: #575757;
  --line: #d3d3d3;
  --soft: #efefef;
  --purple: #585858;
  --green: #242424;
  --orange: #646464;
  --ok: #424242;
  --bad: #a32424;
  color: var(--ink);
  background: var(--card);
}
.sdux-shell:not(.sdux-hub) :is(.top, .wrap) {
  max-width: 820px;
  padding-inline: clamp(16px, 5vw, 36px);
}
.sdux-hub {
  --line: #373737;
  --hub-width: 640px;
  --hub-inset: clamp(18px, 5.3vw, 42px);
}
.sdux-hub .top, .sdux-home {
  max-width: var(--hub-width);
  padding-inline: var(--hub-inset);
}
.sdux-shell .chip.admin { color: var(--muted); border-color: var(--line); }
.sdux-hub .top { position: relative; height: env(safe-area-inset-top); padding-block: 0; }
.sdux-hub .top .sdux-home-menu {
  position: absolute;
  z-index: 1;
  top: env(safe-area-inset-top);
  right: max(8px, calc(var(--hub-inset) - 12px));
  display: grid;
  place-items: start center;
  width: 44px;
  padding: 0;
  border: 0;
  isolation: isolate;
  color: #141414;
  font-size: 24px;
  line-height: .8;
}
.sdux-home-menu::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 29px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.sdux-home { padding-bottom: clamp(28px, 9vw, 64px); }
.sdux-heading {
  display: grid;
  place-items: center;
  margin: clamp(12px, 3vw, 26px) 0 clamp(16px, 4vw, 30px);
}
.sdux-wordmark {
  display: block;
  max-width: 100%;
  width: clamp(148px, 44vw, 260px);
  height: auto;
}
.sdux-heading .sdux-wordmark { width: clamp(174px, 54vw, 300px); }
.sdux-shell .login .hero {
  background: var(--bg);
  padding: clamp(10px, 4vw, 22px) 0;
}
.sdux-shell .login h1 { max-width: none; }
.sdux-shell .login .sdux-wordmark { margin-inline: auto; }
.sdux-signin .sdux-heading { margin-block: 4px clamp(16px, 4vw, 25px); }
.sdux-signin .err:empty { display: none; }
.sdux-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 5vw, 34px);
}
.sdux-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: clamp(138px, 39vw, 222px);
  padding: clamp(11px, 3.4vw, 23px);
  background: #fff;
  color: #141414;
  border-radius: clamp(20px, 5vw, 35px);
  text-decoration: none;
  transition: box-shadow .18s ease;
}
.sdux-tile:is(.sdux-disk, .sdux-tasks) { grid-column: 1 / -1; }
.sdux-art {
  position: absolute;
  object-fit: contain;
  object-position: right top;
  pointer-events: none;
}
.sdux-tile .sdux-art {
  z-index: -1;
  top: -4%;
  right: -9%;
  width: 66%;
  height: 65%;
}
.sdux-tile:is(.sdux-disk, .sdux-tasks) .sdux-art {
  width: 42%;
  height: 107%;
  top: -9%;
  right: 3%;
}
.sdux-tile:focus-visible { outline-color: #fff; }
@media (hover: hover) {
  .sdux-tile:hover { box-shadow: inset 0 0 0 2px #b7b7b7; }
}
.sdux-tile-copy { min-width: 0; max-width: 100%; }
.sdux-tile:is(.sdux-disk, .sdux-tasks) .sdux-tile-copy { max-width: 58%; }
.sdux-tile b {
  display: block;
  font: 480 clamp(11px, 4.1vw, 23px)/1.12 var(--head);
  letter-spacing: -.055em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.sdux-tile small { display: block; margin-top: 6px; font-size: clamp(12px, 3vw, 15px); line-height: 1.25; }
.sdux-profile {
  margin-top: clamp(16px, 5vw, 30px);
  padding: clamp(14px, 4vw, 22px);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 5vw, 32px);
  overflow-wrap: anywhere;
}
.sdux-profile p { margin: 0; }
.sdux-profile p + p { margin-top: 4px; }
@media (min-width: 700px) {
  .sdux-heading { margin-block: 12px 22px; }
  .sdux-heading .sdux-wordmark { width: 240px; }
  .sdux-grid { gap: 22px 30px; }
  .sdux-tile { min-height: clamp(138px, 18svh, 200px); }
}
.sdux-service { padding-bottom: 56px; }
#app[data-service] { position: relative; isolation: isolate; }
#app[data-service]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: min(45vw, 450px);
  height: clamp(148px, 24vw, 250px);
  background: var(--sdux-service-mark) no-repeat right -10px top -14px / auto 100%;
  pointer-events: none;
}
#app[data-service=disk] { --sdux-service-mark: url('/icons/studisk.svg'); }
#app[data-service=topics] { --sdux-service-mark: url('/icons/topics.svg'); }
#app[data-service=queue] { --sdux-service-mark: url('/icons/queue.svg'); }
#app[data-service=tasks] { --sdux-service-mark: url('/icons/tasks.svg'); }
#app[data-service=disk]::before {
  height: clamp(174px, 36vw, 414px);
  background-position: right -12px top -30px;
  background-size: auto 110%;
}
#app[data-service] .sdux-brand { background: var(--card); border: 1px solid var(--line); border-radius: 50%; }
#app[data-service] .sdux-brand img { height: 28px; filter: none; }
.sdux-service-banner {
  min-height: clamp(114px, 18.6vw, 208px);
  max-width: 77%;
  padding-block: clamp(15px, 2.45vw, 25px) 18px;
}
.sdux-service-banner h1 {
  font: 260 clamp(30px, 8.35vw, 84px)/1.04 var(--head);
  letter-spacing: -.075em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: .038em;
  text-underline-offset: .045em;
  text-decoration-skip-ink: none;
  overflow-wrap: anywhere;
}
.sdux-service-banner p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
@media (min-width: 900px) {
  #app[data-service=disk]::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: clamp(188px, 20vw, 225px) clamp(285px, 34vw, 530px) auto auto;
    width: clamp(170px, 20vw, 225px);
    aspect-ratio: 1.43;
    background: #e9e9e9;
    transform: rotate(-11deg);
    pointer-events: none;
  }
}
@media (max-width: 699px) {
  #app[data-service]::before { background-position: right -30px top -8px; }
  #app[data-service=disk]::before { background-position: right -26px top -25px; }
  .sdux-service-banner { max-width: 78%; }
}
.sdux-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  min-height: clamp(116px, 31vw, 170px);
  padding: clamp(16px, 4.5vw, 28px);
  margin: 4px 0 14px;
  border-radius: clamp(20px, 5vw, 35px);
}
.sdux-section .sdux-art {
  z-index: -1;
  top: -11%;
  right: 3%;
  width: min(33%, 174px);
  height: 116%;
}
.sdux-section-copy { max-width: 65%; }
.sdux-section h1 {
  font: 520 clamp(19px, 5.1vw, 36px)/1.08 var(--head);
  letter-spacing: -.055em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.sdux-section p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.sdux-disk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sdux-disk-actions button {
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  font-size: 14px;
  white-space: normal;
}
.sdux-quota { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.sdux-quota p { margin: 0 0 4px; }
.sdux-quota .meter { height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.sdux-quota .meter i { display: block; height: 100%; background: var(--ink); }
.sdux-shell .scard {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.sdux-shell .scard[aria-pressed=true] {
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
  transform: none;
}
.sdux-shell .scard.scard-subject {
  background: var(--subject-color);
  color: #fff;
  border-color: var(--subject-color);
}
.sdux-shell .scard.scard-subject[aria-pressed=true] {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.sdux-shell .fopen { color: inherit; }
.sdux-shell .fico { color: var(--ink); }
.sdux-shell .folder-tag.seminar { background: var(--ink); color: var(--bg); }
.sdux-shell .ext { background: #e8e8e8; color: #141414; }
.sdux-shell .acts .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sdux-shell .note a { color: inherit; font-weight: 750; }
.sdux-shell .selbar { border: 1px solid var(--line); }
.sdux-shell .announce { background: var(--soft); border: 1px solid var(--line); }
.sdux-shell .dropveil { background: #000d; }
.sdux-shell .toast.bad { background: #a32424; color: #fff; }
.sdux-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; margin-bottom: 16px; }
.sdux-toolbar label { min-width: 0; margin: 0; flex: 1 1 190px; }
.sdux-toolbar select, .sdux-field > :is(input, select, textarea) { display: block; margin-top: 5px; }
.sdux-toolbar > button { min-height: 52px; }
.sdux-records { display: grid; gap: 12px; }
.sdux-record { display: grid; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.sdux-record h2 { font-size: clamp(16px, 4.5vw, 20px); }
.sdux-detail, .sdux-detail p { margin: 0; }
.sdux-detail .note { white-space: pre-wrap; }
.sdux-detail p + p { margin-top: 7px; }
.sdux-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.sdux-record-actions :is(button, .btn) { min-height: 44px; padding-inline: 14px; white-space: normal; }
.sdux-service-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.sdux-service-tools:empty { display: none; }
.sdux-service-tools button { white-space: normal; }
ol.sdux-queue { margin: 2px 0 0; padding-left: 25px; }
ol.sdux-queue li { margin-block: 4px; padding-inline-start: 4px; }
ol.sdux-queue .mine { font-weight: 800; }
.sdux-called { background: var(--soft); border-radius: 12px; padding: 8px 12px; font-weight: 800; }
.sdux-complete { display: flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding-right: 10px; cursor: pointer; }
.sdux-date {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 10px 14px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 18px;
}
.sdux-date::-webkit-date-and-time-value { text-align: left; }
.sdux-field input[type=number] {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 18px;
}
.sdux-back { margin-bottom: 10px; }
.sdux-records .sdux-section { margin-bottom: 0; }
.sdux-homework-text { margin: 0; white-space: pre-wrap; }
.sdux-statement-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 6px; }
.sdux-statement-form label { flex: 1 1 200px; min-width: 0; margin: 0; }
.sdux-statement-form input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.sdux-team-mode { margin-block: 8px; }
.sdux-team-fields { width: 100%; min-width: 0; margin: 0 0 6px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 16px; }
.sdux-team-fields legend { padding-inline: 5px; font-weight: 800; }
.sdux-team-fields p { margin: 6px 0 0; }
.sdux-team-fields p:empty, .sdux-team-members:empty { display: none; }
.sdux-team-members { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; list-style: none; }
.sdux-team-members li { display: flex; align-items: center; gap: 4px; max-width: 100%; padding-inline-start: 10px; background: var(--soft); border-radius: 16px; }
.sdux-team-members button { flex: none; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: transparent; }
.sdux-team-credit { display: block; margin-top: 3px; }
.sdux-disk-picker .sdux-toolbar { margin-top: 12px; }
.sdux-disk-picker .foot { flex-wrap: wrap; }
.sdux-disk-picker :is(.err:empty, [role=status]:empty, [hidden]) { display: none; }
.sdux-disk-options { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.sdux-disk-options button { display: grid; gap: 4px; justify-content: stretch; width: 100%; padding: 10px 14px; border-radius: 14px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.sdux-file-list, .sdux-result-list { list-style: none; margin: 0; padding: 0; }
.sdux-result-list > li { padding: 10px 0; border-top: 1px solid var(--line); }
.sdux-result-list > li > span { display: block; }
.sdux-file-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 4px 0; }
.sdux-file-list a { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.sdux-file-list button { min-height: 44px; padding-inline: 12px; }
.sdux-records > .empty > button { display: flex; margin: 10px auto 0; }
.sdux-mobile-bar { display: none; }
@media (max-width: 699px), (pointer: coarse) and (hover: none) {
  .sdux-mobile-bar {
    position: fixed;
    z-index: 15;
    inset: auto 0 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .sdux-mobile-bar button {
    flex: 1 1 0;
    max-width: 210px;
    min-width: 0;
    min-height: 48px;
    padding: 5px 8px;
    font-size: 14px;
    white-space: normal;
  }
  .sdux-add-mark { line-height: .8; font-size: 24px; font-weight: 500; }
  .sdux-scan-mark {
    flex: none;
    width: 18px;
    height: 18px;
    background:
      linear-gradient(currentColor 0 0) left top / 6px 2px,
      linear-gradient(currentColor 0 0) left top / 2px 6px,
      linear-gradient(currentColor 0 0) right top / 6px 2px,
      linear-gradient(currentColor 0 0) right top / 2px 6px,
      linear-gradient(currentColor 0 0) left bottom / 6px 2px,
      linear-gradient(currentColor 0 0) left bottom / 2px 6px,
      linear-gradient(currentColor 0 0) right bottom / 6px 2px,
      linear-gradient(currentColor 0 0) right bottom / 2px 6px,
      linear-gradient(currentColor 0 0) center / 10px 2px;
    background-repeat: no-repeat;
  }
  .sdux-shell .fab { display: none; }
  #body:has(+ .sdux-mobile-bar) { padding-bottom: calc(60px + max(8px, env(safe-area-inset-bottom))); }
  body:has(.sdux-mobile-bar) :is(.selbar, .toast:not(.up)) { bottom: calc(76px + max(8px, env(safe-area-inset-bottom))); }
}
.sdux-scanner-video {
  display: block;
  width: 100%;
  max-height: 48dvh;
  background: #000;
  border-radius: 18px;
  object-fit: contain;
}
.sdux-scanner-video[hidden] { display: none; }
.sdux-scanner .foot { flex-wrap: wrap; }
@media (max-width: 430px) {
  .top:has(#adminBtn) .who .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sdux-tile { transition: none; }
}
