@font-face {
  font-family: Plex;
  src: url("/static/branding/IBMPlexSans-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
:root {
  --main: #00affb;
  --action: #006b9b;
  --ink: #16232b;
  --muted: #57666f;
  --line: #dce3e7;
  --surface: #fff;
  --background: #f4f6f7;
  --danger: #a32833;
  --soft: #e6f7ff;
  color-scheme: light;
  font-family: Plex, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button,
a,
select,
input,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--main);
}
button {
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 40px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: inherit;
}
button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.primary {
  background: var(--action);
  color: white;
  border-color: var(--action);
}
.primary:hover {
  background: #005b85;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
}
.secondary:hover,
.icon-button:hover {
  background: var(--soft);
}
.danger {
  color: var(--danger);
}
.icon-button {
  width: 40px;
  height: 40px;
  padding: 8px;
  flex-shrink: 0;
}
.text-button {
  color: var(--action);
  text-decoration: underline;
}
input,
select,
textarea {
  border: 1px solid #b9c6cd;
  background: white;
  border-radius: 5px;
  color: var(--ink);
  padding: 9px 10px;
  min-height: 40px;
  min-width: 0;
  width: 100%;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 25px 0 16px;
}
small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.topbar {
  height: 84px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--muted);
}
.brand-icon {
  height: 68px;
  width: 62px;
  object-fit: contain;
}
.wordmark {
  width: 112px;
  height: 34px;
  object-fit: contain;
}
.brand span {
  font-size: 11px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-actions select {
  width: 65px;
}
.top-actions #environment {
  font-size: 11px;
  background: #fff4d9;
  color: #765016;
  padding: 6px;
  border-radius: 4px;
}
.workspace {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: calc(100vh - 123px);
}
.sidebar {
  background: #fafcfd;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  gap: 15px;
}
.sidebar label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.sidebar > select {
  margin-top: -8px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
}
.nav-button {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  font-size: 14px;
}
.nav-button.active {
  background: var(--soft);
  color: #005d87;
  font-weight: 600;
}
.quota {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 7px;
  border: 0;
  appearance: none;
  border-radius: 5px;
  overflow: hidden;
  background: var(--line);
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--main);
}
progress::-moz-progress-bar {
  background: var(--main);
}
.content {
  padding: 32px 38px;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.filters {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.filters select {
  width: 190px;
}
.search {
  position: relative;
  flex: 1;
  max-width: 480px;
}
.search > svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search input {
  padding-left: 39px;
  font-weight: 400;
}
.table-scroll {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
thead {
  background: #edf1f3;
  color: var(--muted);
  font-size: 12px;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td {
  background: white;
}
td:first-child {
  min-width: 180px;
  max-width: 460px;
  overflow-wrap: anywhere;
}
td:last-child {
  white-space: nowrap;
}
th {
  font-weight: 500;
  white-space: nowrap;
}
td button {
  padding: 4px 8px;
  min-height: 34px;
}
td .name-button {
  justify-content: flex-start;
  text-align: left;
  color: var(--ink);
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}
.status {
  font-size: 11px;
  padding: 4px 7px;
  background: #e8edf0;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}
.status.ready {
  background: #e4f4eb;
  color: #236844;
}
.status.revoked,
.status.expired {
  background: #f9e8e9;
  color: #923b46;
}
.status.uploading,
.status.checking {
  background: #e1f3fc;
  color: #086083;
}
.empty {
  padding: 80px 10px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}
.properties {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(0, 1fr);
  max-width: 780px;
  background: white;
  margin: 0;
}
.properties dt,
.properties dd {
  padding: 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.properties dt {
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 70px #172c4233;
  padding: 26px;
  width: min(720px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
  background: white;
}
dialog::backdrop {
  background: #14252b66;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
.dialog-heading .icon-button {
  margin-left: auto;
}
form > label {
  margin-bottom: 16px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 15px;
  margin: 20px 0;
}
.inline-form label {
  flex: 1;
  min-width: 150px;
}
.inline-form strong {
  padding: 10px 0;
  color: var(--muted);
}
#drop-zone {
  border: 1px dashed #7aadc3;
  background: #f1fbff;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
}
#drop-zone > svg {
  width: 30px;
  height: 30px;
  color: var(--action);
}
#drop-zone.drag {
  background: #d7f3ff;
  border-color: var(--main);
}
#drop-zone .button-row {
  margin-top: 4px;
}
.file-picker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 5px;
  cursor: pointer;
}
.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  min-height: 0;
  padding: 0;
}
.file-picker:focus-within {
  outline: 2px solid var(--main);
}
.selection {
  max-height: 180px;
  overflow: auto;
  margin-top: 12px;
}
.selected-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.selected-row span {
  flex: 1;
  overflow-wrap: anywhere;
}
.selected-row small {
  white-space: nowrap;
}
.selected-row svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
#upload-state {
  margin: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
#published {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
#published .secondary {
  margin-top: 10px;
}
.metadata {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 20px;
}
.file-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}
.file-tree .file-tree {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  margin-left: 9px;
}
.tree-folder summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.tree-folder svg {
  width: 18px;
  height: 18px;
  color: #b17b17;
  flex-shrink: 0;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 14px;
}
.file-row > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--action);
}
.file-row .filename {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.file-row .filesize {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.public-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 50px 30px;
  min-height: calc(100vh - 123px);
  background: white;
}
.public-content .page-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.public-content h1 {
  font-size: 30px;
}
.public-content #public-message {
  margin-top: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.auth-layout {
  max-width: 960px;
  margin: 70px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;
  padding: 0 30px;
  min-height: 55vh;
}
.auth-identity {
  text-align: center;
}
.auth-identity img {
  width: 180px;
  height: 200px;
  object-fit: contain;
}
.auth-identity h1 {
  font-size: 24px;
  margin-top: 18px;
}
.auth-form h2 {
  margin-top: 0;
}
.auth-form button {
  width: 100%;
  margin: 6px 0;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(650px, calc(100vw - 32px));
  padding: 14px 20px;
  border-radius: 6px;
  background: #173e4a;
  color: white;
  z-index: 100;
  font-size: 14px;
  overflow-wrap: anywhere;
}
#notice.error {
  background: #8c2934;
}
#preview-dialog {
  width: min(1050px, calc(100vw - 24px));
}
#preview-content img,
#preview-content video {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  margin: auto;
}
#preview-content iframe {
  width: 100%;
  height: 65vh;
  border: 0;
}
#preview-content pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 65vh;
  overflow: auto;
  background: #f5f7f8;
  padding: 16px;
}
#preview-content audio {
  width: 100%;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 30px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  background: white;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
#admin-view h2 {
  padding-top: 15px;
}
#admin-view table {
  margin-bottom: 16px;
}
#load-more {
  margin-top: 18px;
}
#selected-total {
  font-size: 13px;
}
@media (max-width: 900px) {
  .content {
    padding: 25px 20px;
  }
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .auth-layout {
    gap: 35px;
  }
  .brand span {
    display: none;
  }
}
@media (max-width: 640px) {
  .topbar {
    height: 72px;
    padding: 0 14px;
  }
  .brand-icon {
    width: 42px;
    height: 52px;
  }
  .wordmark {
    width: 88px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions #environment {
    font-size: 9px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .sidebar > label {
    display: none;
  }
  .sidebar > select {
    margin: 0;
  }
  .sidebar nav {
    grid-column: 1/-1;
    flex-direction: row;
    margin: 0;
    overflow: auto;
  }
  .nav-button {
    width: auto;
    font-size: 12px;
    white-space: nowrap;
    padding: 8px;
  }
  .quota {
    grid-column: 1/-1;
    padding: 0;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .quota > span,
  .quota > small {
    display: none;
  }
  .quota progress {
    align-self: center;
  }
  .quota strong {
    text-align: right;
    font-size: 11px;
  }
  .content {
    padding: 24px 16px;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .filters {
    gap: 8px;
  }
  .filters select {
    width: 135px;
    font-size: 12px;
  }
  .auth-layout {
    display: block;
    margin: 28px auto;
    padding: 0 24px;
    max-width: 430px;
  }
  .auth-identity img {
    width: 105px;
    height: 120px;
  }
  .auth-identity h1 {
    font-size: 22px;
    margin: 8px 0 28px;
  }
  .auth-form h2 {
    font-size: 19px;
  }
  .public-content {
    padding: 30px 18px;
  }
  .public-content .page-heading {
    display: block;
  }
  .public-content .primary {
    margin-top: 10px;
  }
  .public-content h1 {
    font-size: 25px;
  }
  .file-tree .file-tree {
    padding-left: 12px;
  }
  .filesize {
    display: none;
  }
  .file-row {
    gap: 6px;
  }
  .file-row .icon-button {
    width: 34px;
    height: 34px;
    padding: 7px;
  }
  dialog {
    padding: 19px;
  }
  .properties {
    grid-template-columns: 1fr 1fr;
  }
  .properties dt,
  .properties dd {
    padding: 13px 8px;
    font-size: 13px;
  }
  .inline-form {
    gap: 10px;
  }
  footer {
    padding: 12px 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  dialog[open] {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
