:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #0b143b;
  background: #fff;
  font-synthesis: none;
  --blue: #074bff;
  --line: #d5dae5;
  --muted: #61708a;
  --sidebar: #e7effa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 44px;
  border: 1px solid #b9c2d3;
  border-radius: 8px;
  background: #fff;
  color: #101a40;
  text-decoration: none;
  cursor: pointer;
  font-weight: 550;
  line-height: 1.3;
}
button:hover,
.button:hover {
  background: #f2f6fe;
  border-color: #8d9db9;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.primary:hover {
  background: #003de0;
  border-color: #003de0;
}
.danger {
  color: #c91e28;
  border-color: #f2a4a7;
}
.danger:hover {
  background: #fff2f3;
}
.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 14px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.dropzone:focus-visible {
  outline: 3px solid #7da9ff;
  outline-offset: 3px;
}
.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}
.sidebar {
  background: linear-gradient(140deg, #edf3fc, #dfeaf8);
  padding: 35px 19px 24px;
  display: flex;
  flex-direction: column;
  gap: 27px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.8px;
  color: #09123d;
  text-decoration: none;
  white-space: nowrap;
}
.brand .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.6;
}
.sidebar h2 {
  font-size: 19px;
  margin: 28px 5px 0;
}
.new-project {
  color: var(--blue);
  border-color: var(--blue);
  background: #f6f9ff;
  justify-content: flex-start;
}
.project-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-nav button {
  justify-content: flex-start;
  text-align: left;
  border-color: transparent;
  background: transparent;
  padding: 11px 14px;
  font-size: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.project-nav button.active {
  background: #c5daff;
  color: #081746;
  font-weight: 650;
}
.project-nav button.active .icon {
  color: var(--blue);
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.sidebar-footer p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 7px;
}
.main {
  min-width: 0;
  padding: 45px 32px 36px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 44px;
}
.page-header h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.subtitle {
  color: #566680;
  font-size: 18px;
  margin: 0;
}
.header-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dropzone {
  width: 100%;
  min-height: 157px;
  background: linear-gradient(110deg, #eef5ff, #e3eeff);
  border: 1.5px dashed #3973ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
  cursor: pointer;
  transition: background 0.15s;
}
.dropzone .icon {
  width: 43px;
  height: 43px;
  color: var(--blue);
  stroke-width: 2;
}
.dropzone strong {
  font-size: 21px;
}
.dropzone small {
  color: #61708a;
  font-size: 13px;
}
.dropzone.dragging {
  background: #cbdfff;
  outline: 3px solid #7da9ff;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 15px;
}
th {
  background: #f4f6fa;
  color: #3f4c64;
  font-size: 14px;
  letter-spacing: 0.2px;
  font-weight: 650;
  padding: 15px 18px;
}
td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: #1c2539;
}
td.filename {
  min-width: 230px;
}
td.date {
  white-space: nowrap;
  color: #45536b;
}
.file-title {
  display: flex;
  align-items: center;
  gap: 17px;
}
.file-title span:last-child {
  overflow-wrap: anywhere;
}
.file-badge {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 29px;
  height: 35px;
  background: #63728d;
  color: white;
  border-radius: 4px;
  flex: none;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: -0.3px;
}
.file-badge.pdf {
  background: #e83843;
}
.file-badge.sheet {
  background: #26a34f;
}
.file-badge.doc {
  background: #2c68f6;
}
.file-badge.image {
  background: #9756c6;
}
.row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  white-space: nowrap;
}
.icon-button {
  padding: 9px;
  min-width: 39px;
  min-height: 39px;
}
.icon-button .icon {
  width: 19px;
  height: 19px;
}
.links-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-top: 32px;
}
.links-panel h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 0 0 13px;
}
.help {
  color: #5e6c82;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 16px;
}
.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #e4e8f0;
}
.share-target {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.share-target .icon {
  color: #596b87;
}
.share-target strong {
  font-weight: 550;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.share-target small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.share-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex: none;
}
.share-actions button {
  font-size: 13px;
  padding: 8px 11px;
  min-height: 38px;
}
.empty {
  padding: 47px 24px;
  text-align: center;
  color: #63708a;
  font-size: 14px;
  line-height: 1.7;
}
.empty strong {
  display: block;
  color: #283650;
  font-size: 18px;
  margin-bottom: 5px;
}
.empty-project {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 18px;
}
.empty-project > .icon {
  width: 60px;
  height: 60px;
  color: #7c9bc9;
}
.empty-project h1 {
  font-size: 32px;
  margin: 0;
  letter-spacing: -1px;
}
.empty-project p {
  max-width: 350px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.project-danger {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.project-danger button {
  font-size: 12px;
}
.uploads {
  margin: -14px 0 26px;
  background: #f5f8ff;
  border: 1px solid #dce6ff;
  border-radius: 8px;
  padding: 12px 16px;
}
.upload-status {
  font-size: 13px;
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  overflow-wrap: anywhere;
}
.upload-status .failed {
  color: #c91e28;
}
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #e6effc, #fff 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.login-box {
  width: min(100%, 400px);
  margin-top: 37px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 12px 45px #183d6b08;
}
.login-box h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 0 0 10px;
}
.login-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 8px;
}
input,
select {
  width: 100%;
  border: 1px solid #b9c3d5;
  border-radius: 7px;
  padding: 12px;
  min-height: 46px;
  color: #182440;
  background: white;
}
input[readonly] {
  background: #f2f6fc;
}
.field {
  margin: 20px 0;
}
.login-box .primary {
  width: 100%;
}
.form-error {
  color: #bb1b29 !important;
  font-size: 13px;
  margin-top: 14px !important;
}
.notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: calc(100% - 32px);
  background: #142542;
  color: white;
  padding: 14px 20px;
  border-radius: 9px;
  box-shadow: 0 4px 20px #06173126;
  font-size: 14px;
}
.notice.error {
  background: #aa202b;
}
dialog {
  width: min(480px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 27px;
  box-shadow: 0 25px 90px #14234035;
  color: #0b143b;
}
dialog::backdrop {
  background: #07163366;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dialog-heading h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.dialog-copy {
  font-size: 14px;
  line-height: 1.6;
  color: #5c6b83;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row input {
  font-size: 13px;
  min-width: 0;
}
.copy-row button {
  flex: none;
}
.public-shell {
  max-width: 1150px;
  margin: auto;
  padding: 35px 32px;
}
.public-shell > .brand {
  margin-bottom: 55px;
}
.public-shell .page-header {
  margin-bottom: 28px;
}
.public-info {
  padding: 16px 20px;
  background: #edf4ff;
  border-radius: 8px;
  margin-bottom: 30px;
  color: #425976;
  font-size: 14px;
  line-height: 1.6;
}
.initial-loading {
  margin: 50px;
  color: #61708a;
}
.mobile-caption {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .main {
    padding: 50px 40px;
  }
  .shell {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .sidebar {
    padding: 40px 22px;
  }
  .brand {
    font-size: 28px;
  }
  .page-header h1 {
    font-size: 46px;
  }
  .dropzone {
    min-height: 177px;
  }
  td {
    padding-top: 19px;
    padding-bottom: 19px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    padding: 26px 14px;
  }
  .brand {
    font-size: 21px;
    gap: 10px;
  }
  .brand .icon {
    width: 33px;
    height: 33px;
  }
  .main {
    padding: 30px 24px;
  }
  .page-header {
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }
  .page-header h1 {
    font-size: 34px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions button {
    font-size: 13px;
    padding: 10px 12px;
  }
  .date-column,
  .date {
    display: none;
  }
  .share-row {
    align-items: flex-start;
  }
  .share-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }
  .links-panel {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 19px 18px;
    gap: 15px;
  }
  .brand {
    font-size: 23px;
  }
  .sidebar h2 {
    display: none;
  }
  .new-project {
    font-size: 14px;
    padding: 8px 12px;
    min-height: 39px;
    position: absolute;
    top: 19px;
    right: 18px;
  }
  .new-project .icon {
    width: 18px;
  }
  .project-nav {
    flex-direction: row;
    overflow: auto;
    padding: 1px 0;
  }
  .project-nav button {
    font-size: 14px;
    white-space: nowrap;
    max-width: 240px;
    min-height: 39px;
    padding: 8px 12px;
  }
  .project-nav button .icon {
    width: 18px;
    height: 18px;
  }
  .sidebar-footer {
    padding: 0;
    position: absolute;
    right: 16px;
    top: 69px;
  }
  .sidebar-footer p {
    display: none;
  }
  .sidebar-footer button {
    font-size: 12px;
    min-height: 36px;
    padding: 6px;
  }
  .project-nav {
    padding-right: 44px;
  }
  .main {
    padding: 28px 18px;
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 19px;
    margin-bottom: 23px;
  }
  .page-header h1 {
    font-size: 34px;
  }
  .subtitle {
    font-size: 15px;
  }
  .header-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  .header-actions button {
    flex: 1;
    font-size: 13px;
    padding: 11px 8px;
    gap: 7px;
  }
  .header-actions .icon {
    width: 18px;
  }
  .dropzone {
    min-height: 145px;
    margin-bottom: 23px;
    padding: 20px 10px;
  }
  .dropzone strong {
    font-size: 18px;
  }
  .dropzone small {
    font-size: 11px;
  }
  .dropzone .icon {
    width: 35px;
    height: 35px;
  }
  table {
    font-size: 13px;
  }
  th,
  td {
    padding: 13px 11px;
  }
  .file-title {
    gap: 9px;
  }
  .file-badge {
    width: 24px;
    height: 29px;
    font-size: 8px;
  }
  td.filename {
    min-width: 160px;
  }
  .size-column,
  td.size {
    display: none;
  }
  .row-actions {
    gap: 4px;
  }
  .icon-button {
    padding: 7px;
    min-width: 33px;
    min-height: 35px;
  }
  .icon-button .icon {
    width: 17px;
    height: 17px;
  }
  .links-panel {
    padding: 17px 14px;
    margin-top: 24px;
  }
  .links-panel h2 {
    font-size: 21px;
  }
  .share-row {
    gap: 9px;
  }
  .share-target {
    gap: 8px;
  }
  .share-target > .icon {
    width: 18px;
  }
  .share-target strong {
    font-size: 13px;
  }
  .share-actions {
    font-size: 11px;
  }
  .help {
    font-size: 12px;
  }
  .public-shell {
    padding: 24px 18px;
  }
  .public-shell > .brand {
    margin-bottom: 36px;
  }
  .public-shell .header-actions {
    flex-wrap: wrap;
  }
  .login-box {
    padding: 25px;
  }
  .empty-project {
    min-height: 50vh;
  }
  .dialog-actions button {
    font-size: 14px;
  }
  .copy-row {
    flex-wrap: wrap;
  }
  .copy-row input {
    flex-basis: 100%;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
details {
  margin-top: 20px;
  font-size: 12px;
  color: #61708a;
}
summary {
  cursor: pointer;
}
details .help {
  margin-top: 10px;
  overflow-wrap: anywhere;
}
