:root {
  --bg:#f5f6f2;
  --surface:#fff;
  --ink:#202d29;
  --muted:#748079;
  --green:#245643;
  --green-light:#edf5ed;
  --line:#e5e9e3;
  --red:#a53636;
  --radius:14px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
  line-height:1.5;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input,textarea {
  font:inherit;
}

button,a,input,textarea {
  touch-action:manipulation;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  opacity:.55;
  cursor:wait;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,dialog:focus-visible {
  outline:3px solid #81ab65;
  outline-offset:4px;
}

::selection {
  background:#cce5bd;
}

h1,h2,h3,p {
  margin-top:0;
}

h1,h2,h3 {
  line-height:1.2;
}

h1 {
  font-size:40px;
  letter-spacing:-1.7px;
  font-weight:650;
  margin-bottom:12px;
}

h2 {
  font-size:17px;
  letter-spacing:-.35px;
  margin-bottom:0;
}

p {
  color:var(--muted);
}

[hidden] {
  display:none!important;
}

.topbar {
  height:88px;
  border-bottom:1px solid var(--line);
  padding:0 5.5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--surface);
  gap:24px;
}

.brand {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.65px;
  white-space:nowrap;
}

.brand-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:9px;
  width:36px;
  height:36px;
  background:var(--green);
  border-radius:10px;
  color:white;
  font-size:30px;
  line-height:1;
  padding-bottom:5px;
  letter-spacing:-4px;
  padding-right:4px;
}

.brand-mark span {
  color:#bfdda1;
}

.brand-light {
  font-weight:400;
  color:#6d7772;
}

.account {
  display:flex;
  align-items:center;
  gap:27px;
}

.private-label {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.7px;
}

.account .private-label {
  font-size:12px;
  letter-spacing:0;
}

.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#63946c;
  border-radius:50%;
  flex:none;
}

.container {
  max-width:1390px;
  padding:48px 5.5% 28px;
  margin:0 auto;
  min-height:calc(100vh - 160px);
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:30px;
}

.page-heading p {
  font-size:14px;
  margin-bottom:0;
}

.eyebrow {
  display:block;
  color:var(--muted);
  font-size:10px;
  letter-spacing:1.9px;
  font-weight:650;
  margin-bottom:14px;
}

.heading-dot {
  color:var(--green);
}

.workspace-badge {
  display:flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:30px;
  padding:8px 13px;
  font-size:11px;
  color:var(--muted);
  background:#fafbf8;
}

.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fdfefa;
  margin-bottom:26px;
  padding:22px 0;
}

.stat {
  padding:0 28px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:6px;
}

.stat:last-child {
  border:0;
}

.stat>span {
  font-size:11px;
  color:var(--muted);
}

.stat strong {
  font-size:26px;
  line-height:1.2;
  font-weight:550;
  letter-spacing:-1px;
}

.stat-unit {
  font-size:11px;
  font-weight:400;
  letter-spacing:0;
  color:#8a948d;
  margin-left:9px;
}

.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.upload-panel {
  padding:23px 26px;
  margin-bottom:28px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  gap:15px;
}

.section-heading>div {
  display:flex;
  align-items:center;
  gap:11px;
}

.step-number {
  color:#98a39b;
  font:10px ui-monospace,SFMono-Regular,Consolas,monospace;
  border:1px solid var(--line);
  border-radius:5px;
  padding:3px 5px;
}

.small {
  font-size:11px;
}

.muted {
  color:var(--muted);
}

.dropzone {
  position:relative;
  min-height:172px;
  border:1px dashed #bccfbb;
  background:#fbfdf9;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:9px;
  cursor:pointer;
  border-radius:9px;
  padding:22px;
  text-align:center;
  transition:background .15s,border-color .15s;
}

.dropzone:hover,.dropzone.drag-over {
  background:#edf5e9;
  border-color:#64895a;
}

.dropzone:focus-within {
  outline:3px solid #81ab65;
  outline-offset:3px;
}

.dropzone input {
  position:absolute;
  width:100%;
  height:100%;
  left:0;
  top:0;
  opacity:0;
  cursor:pointer;
}

.upload-icon {
  width:39px;
  height:39px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:24px;
  color:var(--green);
  line-height:1;
  margin-bottom:3px;
}

.dropzone strong {
  font-size:13px;
  font-weight:500;
  overflow-wrap:anywhere;
  max-width:100%;
}

.dropzone strong span {
  color:var(--green);
  text-decoration:underline;
  text-underline-offset:3px;
}

.dropzone>span:last-child {
  font-size:10px;
  color:var(--muted);
}

.upload-options {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:19px;
}

.retention {
  display:flex;
  gap:10px;
  align-items:center;
  cursor:pointer;
}

.retention input {
  accent-color:var(--green);
  width:16px;
  height:16px;
  margin:0;
  cursor:pointer;
}

.retention>span {
  display:flex;
  flex-direction:column;
  gap:2px;
}

.retention strong {
  font-weight:500;
  font-size:11px;
}

.retention>span>span {
  font-size:10px;
  color:var(--muted);
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  white-space:nowrap;
  border:1px solid var(--line);
  border-radius:7px;
  padding:10px 17px;
  font-size:12px;
  line-height:1.5;
  background:white;
  color:var(--ink);
  font-weight:500;
  transition:background .15s;
}

.button:hover {
  background:#f3f6f1;
}

.button.primary {
  background:var(--green);
  border-color:var(--green);
  color:white;
}

.button.primary:hover {
  background:#193f31;
}

.button.subtle {
  border:0;
  background:none;
  color:#606f65;
  font-size:12px;
  padding:8px 0;
}

.button.subtle span {
  font-size:17px;
}

.upload-options .button {
  min-width:134px;
}

.library {
  overflow:hidden;
}

.library-heading {
  padding:24px 26px;
  margin-bottom:0;
}

.count {
  font-size:10px;
  color:#738375;
  background:#f0f4ed;
  padding:2px 7px;
  border-radius:5px;
}

.table-scroll {
  overflow-x:auto;
}

table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  table-layout:auto;
}

th {
  background:#fafbf8;
  padding:12px 16px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  font-size:12px;
  color:#7a847c;
  font-weight:500;
  white-space:nowrap;
}

th:first-child,td:first-child {
  padding-left:26px;
}

th:last-child,td:last-child {
  padding-right:26px;
}

td {
  padding:21px 16px;
  border-bottom:1px solid var(--line);
  font-size:12px;
  color:#7a847c;
  vertical-align:middle;
}

tbody tr:last-child td {
  border-bottom:0;
}

.filename-cell {
  width:31%;
  min-width:160px;
  max-width:360px;
}

.file-details {
  display:flex;
  align-items:center;
  gap:12px;
}

.file-details>div {
  min-width:0;
}

.filename {
  display:block;
  font-size:12px;
  font-weight:550;
  color:#36483b;
  overflow-wrap:anywhere;
  line-height:1.5;
}

.file-id {
  display:block;
  color:#9aa39b;
  font:9px ui-monospace,SFMono-Regular,Consolas,monospace;
  margin-top:3px;
}

.file-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:37px;
  border:1px solid #e0e6dc;
  border-radius:5px;
  color:#779468;
  background:#f6f9f2;
  font-size:18px;
  flex:none;
}

.size-cell {
  white-space:nowrap;
}

.file-actions {
  white-space:nowrap;
  text-align:right;
}

.file-actions>*+* {
  margin-left:5px;
}

.actions-heading {
  text-align:right;
}

.small-button {
  font-size:11px;
  padding:6px 9px;
  gap:6px;
}

.small-button span {
  color:#7b887d;
  font-size:12px;
}

.delete-link {
  font-size:10px;
  color:#a4675e;
  padding:7px 0 7px 9px;
  display:inline-block;
}

.delete-link:hover {
  text-decoration:underline;
}

.badge {
  display:inline-block;
  border-radius:5px;
  font-size:9px;
  padding:4px 7px;
  white-space:nowrap;
}

.kept {
  background:#f0f5ec;
  color:#6c825e;
}

.expired {
  background:#faeeee;
  color:#a34a4a;
}

.library-note {
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 26px;
  border-top:1px solid var(--line);
  background:#fcfdfb;
}

.note-icon {
  font:13px ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#7a8c6f;
  width:29px;
  flex:none;
}

.library-note p {
  font-size:10px;
  margin:0;
  line-height:1.7;
}

.library-note strong {
  font-weight:550;
  color:#607055;
  margin-right:5px;
}

.empty-state {
  text-align:center;
  padding:38px 25px 45px;
  border-top:1px solid var(--line);
}

.empty-icon {
  font-size:30px;
  color:#78986b;
}

.empty-state h3 {
  font-size:16px;
  font-weight:500;
  margin:13px 0 8px;
}

.empty-state p {
  font-size:12px;
  line-height:1.8;
  margin-bottom:0;
}

.footer {
  max-width:1390px;
  margin:auto;
  padding:24px 5.5%;
  display:flex;
  justify-content:space-between;
  color:#929c92;
  font-size:10px;
  gap:18px;
}

.footer>span:first-child {
  font-weight:600;
}

.upload-progress {
  margin-top:20px;
}

.upload-progress label {
  font-size:11px;
  color:var(--green);
}

progress {
  display:block;
  width:100%;
  height:7px;
  margin-top:9px;
  accent-color:var(--green);
  border:0;
  border-radius:9px;
  overflow:hidden;
}

progress::-webkit-progress-bar {
  background:var(--line);
}

progress::-webkit-progress-value {
  background:var(--green);
}

.upload-status {
  font-size:12px;
  margin:16px 0 0;
  color:var(--green);
}

.upload-status.error {
  color:var(--red);
}

.notice {
  padding:13px 17px;
  border-radius:8px;
  background:var(--green-light);
  color:var(--green);
  font-size:12px;
  margin-bottom:24px;
  border:1px solid #d7e7d7;
}

.notice.error {
  color:var(--red);
  background:#fdf2f1;
  border-color:#efdbd8;
}

.toast {
  position:fixed;
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  padding:13px 20px;
  color:white;
  background:var(--green);
  border-radius:9px;
  box-shadow:0 5px 20px #20302422;
  font-size:12px;
  max-width:90%;
  z-index:10;
}

.message-card {
  max-width:600px;
  margin:50px auto;
  padding:35px;
}

.message-card h1 {
  font-size:30px;
}

.message-card p {
  font-size:14px;
}

.button-row {
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:30px;
}

.danger {
  background:var(--red);
  color:white;
  border-color:var(--red);
}

.danger:hover {
  background:#862c2c;
}

.break-word {
  overflow-wrap:anywhere;
}

.login-container {
  max-width:1200px;
  min-height:calc(100vh - 160px);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  align-items:center;
  gap:100px;
  padding:64px 6%;
}

.login-intro h1 {
  font-size:47px;
  line-height:1.16;
  letter-spacing:-2px;
  margin:20px 0;
}

.login-intro h1>span {
  color:#7d9870;
}

.login-intro>p {
  font-size:13px;
  max-width:350px;
  line-height:1.9;
}

.login-card {
  padding:34px;
}

.login-card>h2 {
  font-size:25px;
  margin-bottom:10px;
  letter-spacing:-1px;
}

.login-card>p {
  font-size:12px;
}

.mini-icon {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:37px;
  height:37px;
  border-radius:10px;
  color:var(--green);
  background:var(--green-light);
  font-size:23px;
  margin-bottom:25px;
}

.login-form {
  display:flex;
  flex-direction:column;
  margin-top:28px;
}

.login-form label {
  font-size:11px;
  font-weight:500;
  margin-bottom:7px;
}

.login-form input {
  padding:11px 12px;
  border:1px solid #dbe1d7;
  border-radius:6px;
  background:#fcfdfa;
  font-size:13px;
  color:var(--ink);
  min-width:0;
  margin-bottom:19px;
  width:100%;
}

.login-form .button {
  margin-top:5px;
  justify-content:space-between;
}

.login-card .login-note {
  font-size:10px;
  text-align:center;
  line-height:1.9;
  margin:24px 0 0;
  color:#939c92;
}

.terminal-decoration {
  max-width:355px;
  margin-top:35px;
  border-radius:10px;
  overflow:hidden;
  background:#23372e;
  box-shadow:0 8px 25px #24382a0c;
  transform:rotate(-1deg);
}

.terminal-top {
  display:flex;
  gap:5px;
  padding:12px 15px;
  background:#1d3027;
  align-items:center;
}

.terminal-top i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#698170;
}

.terminal-top i:first-child {
  background:#ac8472;
}

.terminal-top i:nth-child(2) {
  background:#aca171;
}

.terminal-top span {
  font:9px monospace;
  color:#8ba394;
  margin:auto;
}

.terminal-body {
  padding:22px 20px 26px;
  font:10px/2 ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#dce8d5;
}

.terminal-green {
  color:#b8d798;
}

.terminal-muted {
  color:#7b9583;
}

.cursor {
  margin-left:5px;
  color:#bdde9d;
}

dialog {
  border:1px solid var(--line);
  border-radius:14px;
  max-width:560px;
  width:calc(100% - 40px);
  padding:28px;
  box-shadow:0 15px 70px #182d2733;
}

dialog::backdrop {
  background:#182d2755;
}

dialog p {
  font-size:13px;
}

dialog h2 {
  margin-bottom:15px;
}

dialog textarea {
  width:100%;
  padding:10px;
  border:1px solid var(--line);
  border-radius:6px;
  font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;
  margin-bottom:15px;
  resize:vertical;
}

@media(min-width:1500px) {
  .container {
    padding-left:50px;
    padding-right:50px;
  }
  .topbar {
    padding-left:max(5.5%,calc((100% - 1290px)/2));
    padding-right:max(5.5%,calc((100% - 1290px)/2));
  }
}

@media(max-width:1100px) {
  .container {
    padding:35px 4% 20px;
  }
  .file-actions .button {
    display:flex;
    width:100%;
    margin-bottom:5px;
    max-width:145px;
    margin-left:auto;
  }
  .file-actions {
    min-width:165px;
  }
  .file-actions>*+* {
    margin-left:0;
  }
  .file-actions .delete-link {
    padding-bottom:0;
  }
  .filename-cell {
    max-width:220px;
  }
  .login-container {
    gap:55px;
    padding-left:5%;
    padding-right:5%;
  }
  .login-intro h1 {
    font-size:40px;
  }
}

@media(max-width:700px) {
  .topbar {
    height:72px;
    padding:0 5%;
  }
  .brand {
    font-size:18px;
  }
  .account {
    gap:0;
  }
  .private-label {
    display:none;
  }
  .account .private-label {
    display:none;
  }
  .container {
    padding:30px 5% 16px;
    min-height:calc(100vh - 145px);
  }
  .page-heading {
    margin-bottom:24px;
  }
  .page-heading h1 {
    font-size:34px;
  }
  .page-heading p {
    font-size:12px;
  }
  .workspace-badge {
    display:none;
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:1.5px;
    margin-bottom:12px;
  }
  .stats {
    margin-bottom:20px;
    padding:17px 0;
  }
  .stat {
    padding:0 13px;
    gap:8px;
  }
  .stat>span {
    font-size:9px;
    line-height:1.5;
    min-height:27px;
  }
  .stat strong {
    font-size:20px;
    letter-spacing:-.7px;
  }
  .stat-unit {
    font-size:9px;
    margin-left:4px;
  }
  .upload-panel {
    padding:20px 17px;
    margin-bottom:22px;
  }
  .section-heading {
    align-items:flex-start;
  }
  .section-heading>div {
    gap:8px;
  }
  .section-heading h2 {
    font-size:15px;
  }
  .section-heading>.small {
    font-size:9px;
    text-align:right;
    max-width:110px;
  }
  .dropzone {
    padding:23px 14px;
    min-height:172px;
  }
  .dropzone strong {
    font-size:12px;
  }
  .dropzone>span:last-child {
    font-size:9px;
    max-width:220px;
  }
  .upload-options {
    gap:12px;
    align-items:flex-end;
  }
  .upload-options .button {
    min-width:0;
    padding:10px 13px;
    font-size:11px;
  }
  .retention {
    gap:8px;
  }
  .retention strong {
    font-size:10px;
  }
  .retention>span>span {
    font-size:9px;
    max-width:140px;
  }
  .library-heading {
    padding:20px 17px;
  }
  .table-scroll {
    overflow:visible;
  }
  table,tbody {
    display:block;
  }
  thead {
    display:none;
  }
  tr {
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:18px 17px;
    gap:9px 15px;
    border-top:1px solid var(--line);
  }
  td,th:first-child,td:first-child,th:last-child,td:last-child {
    padding:0;
    border:0;
    font-size:12px;
  }
  td[data-label]::before {
    content:attr(data-label);
    display:block;
    color:#9ba39b;
    font-size:9px;
    margin-bottom:2px;
  }
  .filename-cell {
    grid-column:1/-1;
    width:auto;
    min-width:0;
    max-width:none;
    margin-bottom:6px;
  }
  .filename {
    font-size:12px;
  }
  .file-id {
    font-size:9px;
  }
  .file-icon {
    height:34px;
  }
  .size-cell {
    grid-column:1/-1;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .size-cell[data-label]::before {
    margin:0;
  }
  .file-actions {
    grid-column:1/-1;
    text-align:left;
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    margin-top:9px;
  }
  .file-actions .button {
    width:auto;
    display:inline-flex;
    max-width:none;
    margin:0;
    font-size:11px;
    padding:7px 11px;
  }
  .file-actions .delete-link {
    margin-left:auto;
    padding:7px 0;
  }
  .library-note {
    padding:16px 17px;
    align-items:flex-start;
  }
  .library-note p {
    font-size:9px;
  }
  .library-note strong {
    display:block;
  }
  .footer {
    padding:22px 5%;
    font-size:9px;
  }
  .message-card {
    margin:20px auto;
    padding:25px;
  }
  .message-card h1 {
    font-size:27px;
  }
  .login-container {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:35px 6%;
    gap:25px;
    min-height:calc(100vh - 145px);
  }
  .login-intro h1 {
    font-size:34px;
    line-height:1.12;
    margin:13px 0;
  }
  .login-intro>p {
    font-size:12px;
    max-width:100%;
    margin-bottom:0;
  }
  .terminal-decoration {
    display:none;
  }
  .login-card {
    padding:25px;
  }
  .mini-icon {
    display:none;
  }
  .login-card>h2 {
    font-size:23px;
  }
  .login-form {
    margin-top:23px;
  }
  .login-note {
    margin-top:18px!important;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
