@font-face {
  font-family: Hanken;
  src: url("/static/fonts/hanken-bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url("/static/fonts/hanken.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Gloock;
  src: url("/static/fonts/gloock.ttf") format("truetype");
  font-display: swap;
}
:root {
  --bg: #0c0b0a;
  --surface: #141210;
  --card: #1b1815;
  --ink: #f3ede1;
  --muted: #a9a093;
  --gold: #ffc704;
  --pink: #f6339a;
  --line: #332d27;
  --green: #a2cfad;
  --red: #ff9393;
  font-family: Hanken, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Gloock, Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -1.8px;
  line-height: 1.1;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 18px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1px;
}
.brand img {
  object-fit: contain;
}
.brand-dot {
  color: var(--gold);
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #4a4137;
}
.btn.quiet {
  background: transparent;
  color: var(--muted);
}
.btn.danger {
  background: #422122;
  color: var(--red);
}
.btn.small {
  padding: 8px 11px;
  min-height: 36px;
  font-size: 12px;
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  left: 20px;
  top: -70px;
  background: var(--gold);
  color: #000;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 15px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.login {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: var(--gold);
  color: #15110a;
  padding: 48px 10%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 650px;
}
.login-story .brand img {
  filter: brightness(0);
}
.login-story .brand-dot {
  color: #15110a;
}
.login-story h1 {
  font-size: clamp(48px, 5vw, 76px);
  max-width: 530px;
  letter-spacing: -3px;
  margin: 50px 0 24px;
}
.login-story p {
  font-size: 18px;
  max-width: 390px;
  line-height: 1.65;
}
.login-story .giant-glasses {
  width: 260px;
  height: 120px;
  filter: brightness(0);
  opacity: 0.13;
  margin-bottom: 30px;
}
.login-story footer {
  font-size: 12px;
  opacity: 0.7;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
}
.login-form {
  width: 100%;
  max-width: 370px;
}
.login-form h2 {
  font-size: 30px;
  margin: 20px 0 12px;
}
.login-form > p {
  line-height: 1.6;
  margin-bottom: 32px;
}
.login-form .btn {
  width: 100%;
  margin-top: 10px;
}
.login-note {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 35px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
label.field {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #4a4137;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 13px;
  margin-top: 8px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 84px;
}
input::placeholder,
textarea::placeholder {
  color: #81786d;
}
input[type="checkbox"] {
  display: inline;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0 9px 0 0;
  accent-color: var(--gold);
}
.field small,
.helper {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
.error {
  background: #361d1d;
  color: #ffbaba;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.error:empty {
  display: none;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100svh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 22px 20px;
  background: #100e0c;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100svh;
}
.sidebar .brand {
  font-size: 20px;
  gap: 8px;
}
.sidebar .brand img {
  width: 37px;
}
.workspace-name {
  margin: 12px 0 48px 46px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-label {
  color: #897f71;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin: 0 12px 14px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 6px;
  padding: 14px 12px;
  margin-bottom: 5px;
  text-align: left;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.nav-button:hover {
  background: var(--card);
}
.nav-button.active {
  background: #302711;
  color: var(--gold);
}
.side-bottom {
  margin-top: auto;
}
.side-tip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 8px;
  margin-bottom: 22px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.side-tip .icon {
  color: var(--gold);
  margin-bottom: 8px;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #382b19;
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.user-profile strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.user-profile small {
  font-size: 11px;
  color: var(--muted);
}
.user-settings {
  margin-left: auto;
  background: none;
  color: var(--muted);
  padding: 5px;
}
.topbar {
  height: 76px;
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.topbar strong {
  color: var(--ink);
  font-weight: 500;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  display: inline-block;
  border-radius: 50%;
  margin-right: 8px;
}
.main-content {
  max-width: 1500px;
  margin: auto;
  padding: 42px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading h1 {
  margin: 12px 0 13px;
}
.page-heading p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.summary {
  display: flex;
  gap: 28px;
  margin: 26px 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.summary-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.summary-item strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
}
.summary-item:not(:first-child) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap .icon {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--muted);
}
.search-wrap input {
  margin: 0;
  padding-left: 42px;
  background: var(--surface);
}
.toolbar select {
  margin: 0;
  width: 185px;
  font-size: 13px;
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.deck-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.deck-card:hover {
  transform: translateY(-3px);
  border-color: #685430;
}
.deck-art {
  height: 146px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: #242017;
}
.deck-art:after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -38px;
  width: 150px;
  height: 150px;
  border: 25px solid #ffc7040c;
  border-radius: 50%;
  pointer-events: none;
}
.deck-art[data-tone="1"] {
  background: #262027;
}
.deck-art[data-tone="2"] {
  background: #1c2625;
}
.deck-art[data-tone="3"] {
  background: #282119;
}
.deck-art-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.deck-art img {
  width: 34px;
  opacity: 0.85;
}
.format {
  font-size: 10px;
  letter-spacing: 1.2px;
  background: #0003;
  padding: 5px 7px;
  border: 1px solid #ffffff16;
  border-radius: 4px;
  color: #e2dacb;
}
.client-display {
  font-family: Gloock, Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.6px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  z-index: 1;
}
.deck-body {
  padding: 20px;
}
.deck-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 12px;
}
.badge {
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  padding: 5px 7px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: #332b17;
  color: #e9c760;
}
.badge.public {
  background: #203027;
  color: #a2cfad;
}
.badge.restricted {
  background: #312438;
  color: #d8b2e1;
}
.badge .icon {
  width: 11px;
  height: 11px;
}
.category {
  font-size: 10px;
  color: var(--muted);
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deck-body h2 {
  font-size: 16px;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.deck-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  height: 37px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.deck-footnote {
  display: flex;
  justify-content: space-between;
  color: #93887a;
  font-size: 10px;
  padding: 14px 0 17px;
}
.deck-actions {
  display: flex;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.deck-actions .btn {
  flex: 1;
}
.deck-actions .icon-only {
  flex: 0;
  width: 34px;
  padding: 7px;
}
.empty {
  border: 1px dashed #524533;
  border-radius: 10px;
  text-align: center;
  padding: 68px 25px;
  background: var(--surface);
}
.empty > img {
  width: 65px;
  margin-bottom: 25px;
}
.empty h2 {
  font-family: Gloock, Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}
.empty p {
  color: var(--muted);
  max-width: 390px;
  line-height: 1.7;
  margin: 0 auto 24px;
}
.upload-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  border: 1px dashed #4a3b22;
  border-radius: 8px;
  padding: 23px;
  background: #17130c;
}
.upload-strip > .icon {
  width: 27px;
  height: 27px;
  color: var(--gold);
}
.upload-strip strong {
  font-size: 13px;
}
.upload-strip p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.upload-strip .btn {
  margin-left: auto;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 10px;
  color: #8f8374;
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #4b4134;
  border-radius: 12px;
  padding: 0;
  width: min(620px, calc(100% - 28px));
  max-height: 90svh;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(4px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 26px 28px 19px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  margin-bottom: 7px;
}
.modal-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.close {
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  padding: 0 6px;
}
.modal-content {
  padding: 25px 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dropzone {
  border: 1px dashed #746138;
  border-radius: 7px;
  background: #1d180f;
  padding: 23px;
  text-align: center;
  cursor: pointer;
  display: block;
  margin-bottom: 22px;
}
.dropzone.dragover {
  border-color: var(--gold);
  background: #352b10;
}
.dropzone .icon {
  color: var(--gold);
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
}
.dropzone strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.dropzone small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.dropzone input {
  font-size: 11px;
  background: transparent;
  border: 0;
  max-width: 300px;
  margin: 10px auto 0;
  padding: 4px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 23px;
}
.check-line {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin: 12px 0;
}
.recipient-list {
  border: 1px solid var(--line);
  padding: 12px;
  max-height: 180px;
  overflow: auto;
  border-radius: 6px;
}
.recipient-list label {
  display: flex;
  align-items: center;
  font-size: 12px;
  padding: 8px 0;
}
.secret-panel {
  border: 1px solid #766028;
  background: #241e10;
  padding: 18px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.secret-panel code {
  display: block;
  background: #14110a;
  padding: 13px;
  margin: 10px 0;
  font-size: 17px;
  overflow-wrap: anywhere;
  user-select: all;
}
.share-url {
  font-size: 12px;
  overflow-wrap: anywhere;
  background: var(--bg);
  padding: 13px;
  border-radius: 5px;
  line-height: 1.6;
  user-select: all;
}
.copy-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.settings-group {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.settings-group p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  padding: 15px 18px;
  background: #1a1612;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
td {
  padding: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.role-tag {
  font-size: 11px;
  color: var(--gold);
}
.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 30px;
  border-bottom: 1px solid var(--line);
  min-height: 76px;
}
.share-header .brand {
  font-size: 20px;
}
.share-header #share-title {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-main {
  height: calc(100svh - 80px);
  display: grid;
  place-items: center;
}
.gate {
  width: min(400px, calc(100% - 40px));
  text-align: center;
}
.gate > img {
  width: 70px;
  margin-bottom: 28px;
}
.gate h1 {
  font-size: 36px;
}
.gate p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.gate form {
  text-align: left;
  margin-top: 26px;
}
.gate .btn {
  width: 100%;
}
.presentation-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.viewer-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.viewer-note {
  padding: 8px 18px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
#toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  max-width: calc(100% - 48px);
}
.toast {
  background: var(--gold);
  color: #16110a;
  padding: 14px 20px;
  border-radius: 7px;
  font-size: 13px;
  box-shadow: 0 8px 30px #0005;
  margin-top: 8px;
}
.toast.fail {
  background: #683332;
  color: white;
}
.hidden {
  display: none !important;
}
@media (min-width: 1600px) {
  .deck-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .deck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-content {
    padding: 32px;
  }
  .shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 15px;
  }
  .topbar {
    padding: 0 32px;
  }
}
@media (max-width: 760px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 30px;
  }
  .login-story h1 {
    font-size: 46px;
    margin: 35px 0 18px;
  }
  .login-story p {
    font-size: 15px;
    margin-bottom: 0;
  }
  .login-story .giant-glasses,
  .login-story footer {
    display: none;
  }
  .login-form-wrap {
    padding: 35px 25px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 22px;
  }
  .workspace-name {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin-top: 20px;
    gap: 6px;
  }
  .nav-label,
  .side-tip,
  .user-profile {
    display: none;
  }
  .nav-button {
    padding: 10px 9px;
    font-size: 12px;
    width: auto;
    margin: 0;
  }
  .nav-button .icon {
    width: 15px;
  }
  .side-bottom {
    position: absolute;
    right: 15px;
    top: 20px;
  }
  .side-bottom > .nav-button {
    font-size: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 22px;
  }
  .main-content {
    padding: 28px 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 22px;
  }
  .page-heading h1 {
    font-size: 39px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading > .btn {
    width: 100%;
  }
  .summary {
    gap: 14px;
    margin-top: 18px;
  }
  .summary-item {
    font-size: 10px;
    gap: 6px;
  }
  .summary-item:not(:first-child) {
    padding-left: 14px;
  }
  .summary-item strong {
    font-size: 21px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    width: 45%;
  }
  .deck-grid {
    gap: 14px;
  }
  .deck-art {
    height: 120px;
    padding: 15px;
  }
  .client-display {
    font-size: 23px;
  }
  .deck-body {
    padding: 15px;
  }
  .deck-actions {
    flex-wrap: wrap;
  }
  .deck-actions .btn {
    font-size: 11px;
  }
  .upload-strip {
    padding: 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .upload-strip .btn {
    margin: 0;
    width: 100%;
  }
  .page-footer span:last-child {
    display: none;
  }
  .modal-content {
    padding: 22px;
  }
  .modal-header {
    padding: 22px;
  }
  .share-header {
    padding: 17px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .share-header #share-title {
    display: none;
  }
  .share-header .brand {
    font-size: 18px;
  }
  .share-header .brand img {
    width: 34px;
  }
}
@media (max-width: 440px) {
  .deck-grid {
    grid-template-columns: 1fr;
  }
  .deck-art {
    height: 146px;
  }
  .deck-actions {
    flex-wrap: nowrap;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .summary-item {
    display: block;
  }
  .summary-item strong {
    display: block;
  }
  .summary {
    justify-content: space-between;
  }
  .client-display {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.mobile-account {
  display: none;
}
@media (max-width: 760px) {
  .mobile-account {
    display: flex;
  }
  .sidebar nav {
    flex-wrap: wrap;
  }
}
