@font-face {
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('/fonts/Raleway-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('/fonts/Raleway-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
}

:root {
  --st-blue: #222a3a;
  --st-blue-strong: #171d29;
  --st-blue-soft: #e9edf3;
  --st-red: #ed1b36;
  --st-red-dark: #cc1029;
  --st-orange: #f49027;
  --st-purple: #c795e2;
  --st-stone: #c9beb0;
  --st-ivory: #e8e0d3;
  --ui-bg: #f5f4f1;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8f7f4;
  --ui-surface-quiet: #f1f0ec;
  --ui-text: #222a3a;
  --ui-text-soft: #5f6773;
  --ui-muted: #8a9199;
  --ui-line: #e2e1dc;
  --ui-line-strong: #cfcdc6;
  --ui-success: #34765f;
  --ui-success-soft: #edf7f2;
  --ui-warning: #a56312;
  --ui-danger: #c81e36;
  --ui-danger-soft: #fff1f3;
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 17px;
  --shadow-soft: 0 8px 28px rgba(34, 42, 58, 0.055);
  --shadow-lifted: 0 14px 38px rgba(34, 42, 58, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ui-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a,
input,
[role='button'] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[role='button']:focus-visible {
  outline: 3px solid rgba(34, 42, 58, 0.2);
  outline-offset: 2px;
}

.app-root,
.workspace-shell {
  min-height: 100vh;
}

.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon--spin {
  animation: ui-spin 0.9s linear infinite;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes ui-spin {
  to { transform: rotate(360deg); }
}

.app-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--ui-bg);
}

.app-loading__icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.app-loading strong,
.app-loading span {
  display: block;
}

.app-loading strong {
  margin-bottom: 3px;
  color: var(--ui-text);
  font-size: 14px;
}

.app-loading span {
  color: var(--ui-text-soft);
  font-size: 12px;
}

.btn-ui {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn-ui:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-ui:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-ui--primary {
  border-color: var(--st-blue);
  background: var(--st-blue);
  color: #ffffff;
}

.btn-ui--primary:hover:not(:disabled) {
  border-color: var(--st-blue-strong);
  background: var(--st-blue-strong);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(34, 42, 58, 0.16);
}

.btn-ui--secondary {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface);
  color: var(--st-blue);
}

.btn-ui--secondary:hover:not(:disabled) {
  border-color: #aeb2b7;
  background: var(--ui-surface-soft);
  color: var(--st-blue);
}

.btn-ui--tertiary,
.text-button {
  border-color: transparent;
  background: transparent;
  color: var(--st-blue);
  box-shadow: none;
}

.btn-ui--tertiary:hover:not(:disabled),
.text-button:hover:not(:disabled) {
  background: var(--ui-surface-quiet);
}

.btn-ui--danger-quiet {
  border-color: #f1bac2;
  background: var(--ui-danger-soft);
  color: var(--ui-danger);
}

.btn-ui--danger-quiet:hover:not(:disabled) {
  border-color: #e9919e;
  background: #ffe5e9;
}

.btn-ui--login {
  min-height: 46px;
  border-color: var(--st-red);
  background: var(--st-red);
  color: #ffffff;
}

.btn-ui--login:hover:not(:disabled) {
  border-color: var(--st-red-dark);
  background: var(--st-red-dark);
  box-shadow: 0 9px 20px rgba(237, 27, 54, 0.2);
}

.btn-ui--compact {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 11px;
}

.btn-ui--block {
  width: 100%;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-control-ui {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: #ffffff;
  color: var(--ui-text);
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-control-ui:focus {
  border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(34, 42, 58, 0.09);
}

.form-control-ui:disabled {
  background: var(--ui-surface-quiet);
  color: var(--ui-muted);
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--ui-text);
  font-size: 12px;
  font-weight: 700;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--ui-text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.notice .ui-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice--error {
  border-color: #f1bac2;
  background: var(--ui-danger-soft);
  color: #a2172e;
}

.notice--success {
  border-color: #bfdccf;
  background: var(--ui-success-soft);
  color: #285f4c;
}

/* Login */
.login-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 40px clamp(28px, 7vw, 104px);
  background: #e9e8e4;
}

.login-preview {
  position: absolute;
  inset: 30px 30px 30px 30%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: var(--ui-bg);
  box-shadow: var(--shadow-lifted);
  filter: blur(1.5px);
  opacity: 0.72;
  transform: scale(1.025);
  pointer-events: none;
}

.login-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 244, 241, 0.22);
}

.login-preview__bar {
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 44px;
  border-bottom: 1px solid var(--ui-line);
  background: #ffffff;
}

.login-preview__brand,
.login-preview__account,
.login-preview__tabs span,
.login-preview__title,
.login-preview__subtitle,
.login-preview__side > span,
.login-preview__side button {
  display: block;
  border-radius: 999px;
  background: #d9d9d5;
}

.login-preview__brand {
  width: 150px;
  height: 20px;
}

.login-preview__account {
  width: 130px;
  height: 32px;
  justify-self: end;
}

.login-preview__tabs {
  display: flex;
  gap: 8px;
}

.login-preview__tabs span {
  width: 92px;
  height: 34px;
}

.login-preview__tabs span:first-child {
  background: var(--st-blue);
}

.login-preview__body {
  padding: 60px;
}

.login-preview__title {
  width: 310px;
  height: 34px;
  background: var(--st-blue);
}

.login-preview__subtitle {
  width: 440px;
  max-width: 80%;
  height: 14px;
  margin-top: 16px;
}

.login-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  margin-top: 40px;
}

.login-preview__drop,
.login-preview__side {
  min-height: 430px;
  padding: 30px;
  border: 1px solid var(--ui-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.login-preview__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.login-preview__drop div {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--st-blue-soft);
}

.login-preview__drop span,
.login-preview__drop small {
  display: block;
  border-radius: 99px;
  background: #d5d6d3;
}

.login-preview__drop span {
  width: 210px;
  height: 18px;
  margin-top: 22px;
}

.login-preview__drop small {
  width: 150px;
  height: 10px;
  margin-top: 12px;
}

.login-preview__side > span {
  height: 14px;
  margin-bottom: 24px;
}

.login-preview__side > span:nth-child(1) { width: 68%; }
.login-preview__side > span:nth-child(2) { width: 100%; }
.login-preview__side > span:nth-child(3) { width: 86%; }

.login-preview__side button {
  width: 100%;
  height: 42px;
  margin-top: 48px;
  border: 0;
  background: var(--st-blue);
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(470px, 100%);
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(34, 42, 58, 0.17);
}

.login-card__brand {
  position: absolute;
  top: 38px;
  left: clamp(32px, 5vw, 54px);
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-card__logo {
  width: 150px;
  height: auto;
  display: block;
}

.login-card__brand > span {
  width: 1px;
  height: 22px;
  background: var(--ui-line-strong);
}

.login-card__brand strong {
  color: var(--st-blue);
  font-size: 15px;
  font-weight: 700;
}

.login-card__content {
  padding: 70px 0 42px;
}

.login-card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--st-blue-soft);
  color: var(--st-blue);
}

.login-card__icon .ui-icon {
  width: 22px;
  height: 22px;
}

.login-card h1 {
  margin: 0;
  color: var(--st-blue);
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.login-card__intro {
  margin: 17px 0 28px;
  color: var(--ui-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.login-card form .btn-ui {
  margin-top: 24px;
}

.login-card__back {
  margin: -8px 0 24px -9px;
}

.login-card__resend {
  display: flex;
  margin: 15px auto 0;
}

.login-card__notice {
  margin-top: -28px;
  margin-bottom: 28px;
}

.login-card__footer {
  position: absolute;
  right: clamp(32px, 5vw, 54px);
  bottom: 32px;
  left: clamp(32px, 5vw, 54px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ui-muted);
  font-size: 10px;
}

.login-card__footer a {
  color: inherit;
  text-decoration: none;
}

.login-card__footer a:hover {
  color: var(--st-blue);
  text-decoration: underline;
}

.otp-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.otp-fieldset legend {
  margin-bottom: 9px;
  color: var(--ui-text);
  font-size: 12px;
  font-weight: 700;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.otp-input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: #ffffff;
  color: var(--st-blue);
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.otp-input:focus {
  border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(34, 42, 58, 0.09);
}

/* Shared application shell */
.app-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px clamp(22px, 4vw, 60px);
  border-bottom: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 18px rgba(34, 42, 58, 0.035);
}

.brand-lockup {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--st-blue);
  text-decoration: none;
}

.brand-lockup__wordmark {
  width: 136px;
  height: auto;
  display: block;
}

.brand-lockup__divider {
  width: 1px;
  height: 24px;
  background: var(--ui-line-strong);
}

.brand-lockup__product {
  font-size: 15px;
  font-weight: 700;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-soft);
}

.app-nav__link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ui-text-soft);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.app-nav__link .ui-icon {
  width: 17px;
  height: 17px;
}

.app-nav__link:hover {
  color: var(--st-blue);
}

.app-nav__link--active {
  border-color: var(--ui-line);
  background: #ffffff;
  color: var(--st-blue);
  box-shadow: 0 4px 12px rgba(34, 42, 58, 0.06);
}

.account-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.account-menu__copy {
  min-width: 0;
  text-align: right;
}

.account-menu__copy span,
.account-menu__copy strong {
  display: block;
}

.account-menu__copy span {
  margin-bottom: 2px;
  color: var(--ui-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-menu__copy strong {
  overflow: hidden;
  max-width: 230px;
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu .ui-icon {
  width: 17px;
  height: 17px;
}

.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-heading h1 {
  margin: 0;
  color: var(--st-blue);
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.page-heading p {
  margin: 8px 0 0;
  color: var(--ui-text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.secure-session {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #cbded5;
  border-radius: 999px;
  background: var(--ui-success-soft);
  color: var(--ui-success);
  font-size: 10px;
  font-weight: 700;
}

.secure-session .ui-icon {
  width: 16px;
  height: 16px;
}

.surface-card {
  border: 1px solid var(--ui-line);
  border-radius: var(--radius-md);
  background: var(--ui-surface);
  box-shadow: var(--shadow-soft);
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.step-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.step-title__number {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--st-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.step-title h2,
.help-card h2,
.activity-card__header h2,
.detail-panel__header h3 {
  margin: 0;
  color: var(--ui-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-title h2,
.help-card h2,
.activity-card__header h2 {
  font-size: 17px;
}

.step-title p,
.activity-card__header p,
.detail-panel__header p {
  margin: 5px 0 0;
  color: var(--ui-text-soft);
  font-size: 11px;
  line-height: 1.5;
}

/* Upload */
.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
  gap: 20px;
  align-items: start;
}

.upload-card {
  padding: 24px;
}

.dropzone {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 32px;
  border: 1.5px dashed #aeb4bd;
  border-radius: 12px;
  background: var(--ui-surface-soft);
  color: var(--ui-text);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.dropzone:hover,
.dropzone--active {
  border-color: var(--st-blue);
  background: #f2f5f8;
  box-shadow: inset 0 0 0 1px rgba(34, 42, 58, 0.04);
}

.dropzone--disabled {
  cursor: wait;
  opacity: 0.66;
}

.dropzone__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--st-blue-soft);
  color: var(--st-blue);
}

.dropzone__icon .ui-icon {
  width: 25px;
  height: 25px;
}

.dropzone > strong {
  font-size: 15px;
  font-weight: 700;
}

.dropzone > span:last-child {
  margin-top: 8px;
  color: var(--ui-text-soft);
  font-size: 11px;
}

.file-selection {
  margin-top: 20px;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: #ffffff;
}

.file-selection__heading {
  padding: 15px 17px;
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-surface-soft);
  border-radius: 11px 11px 0 0;
}

.file-selection__heading h3 {
  margin: 0;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 700;
}

.file-selection__heading p {
  margin: 4px 0 0;
  color: var(--ui-text-soft);
  font-size: 10px;
}

.selected-file-list {
  max-height: 270px;
  overflow-y: auto;
  padding: 0 16px;
}

.selected-file {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edede9;
}

.selected-file:last-child {
  border-bottom: 0;
}

.selected-file__icon,
.detail-file__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--st-blue-soft);
  color: var(--st-blue);
}

.selected-file__icon .ui-icon,
.detail-file__icon .ui-icon {
  width: 18px;
  height: 18px;
}

.selected-file__copy {
  min-width: 0;
  flex: 1;
}

.selected-file__copy strong,
.selected-file__copy span {
  display: block;
}

.selected-file__copy strong {
  overflow: hidden;
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file__copy span {
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 9px;
}

.icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-text-soft);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.icon-button:hover:not(:disabled) {
  background: var(--ui-danger-soft);
  color: var(--ui-danger);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon-button .ui-icon {
  width: 17px;
  height: 17px;
}

.upload-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-summary,
.help-card {
  padding: 22px;
}

.summary-list {
  margin: 22px 0 20px;
}

.summary-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-line);
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.summary-list dt {
  color: var(--ui-text-soft);
  font-size: 11px;
  font-weight: 500;
}

.summary-list dd {
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 700;
}

.upload-progress {
  margin: 0 0 18px;
}

.upload-progress__copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ui-text-soft);
  font-size: 10px;
}

.upload-progress__copy strong {
  color: var(--st-blue);
}

.upload-progress__track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ui-surface-quiet);
}

.upload-progress__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--st-blue);
  transition: width 180ms ease;
}

.upload-summary__note {
  margin: 12px 0 0;
  color: var(--ui-muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.help-card h2 {
  font-size: 15px;
}

.how-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.how-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 0;
}

.how-list li > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui-line-strong);
  border-radius: 50%;
  color: var(--ui-text-soft);
  font-size: 9px;
  font-weight: 700;
}

.how-list p {
  margin: 2px 0 0;
  color: var(--ui-text-soft);
  font-size: 10px;
  line-height: 1.55;
}

.page-notice {
  margin-top: 20px;
}

.share-result {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #bfdccf;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.share-result__heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.share-result__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ui-success-soft);
  color: var(--ui-success);
}

.share-result__icon .ui-icon {
  width: 18px;
  height: 18px;
}

.share-result__heading h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 17px;
  font-weight: 700;
}

.share-result__heading p {
  margin: 5px 0 0;
  color: var(--ui-text-soft);
  font-size: 11px;
}

.share-link-field {
  margin-top: 20px;
}

.share-link-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 700;
}

.share-link-field__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.share-link-field input {
  min-width: 0;
  height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--ui-surface-soft);
  color: var(--ui-text);
  font-size: 11px;
}

.share-link-field input:focus {
  border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(34, 42, 58, 0.09);
}

.share-result__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ui-line);
}

.share-result__actions > span {
  color: var(--ui-muted);
  font-size: 9px;
  word-break: break-all;
}

.share-result__actions > div {
  display: flex;
  gap: 8px;
}

/* Activity */
.page-heading--activity {
  align-items: center;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.metric-strip article {
  min-height: 126px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 22px;
  border-right: 1px solid var(--ui-line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--st-blue);
}

.metric-strip__dot--purple { background: #9b67bb; }
.metric-strip__dot--green { background: var(--ui-success); }

.metric-strip article > div > span,
.metric-strip article strong,
.metric-strip article small {
  display: block;
}

.metric-strip article > div > span {
  color: var(--ui-text-soft);
  font-size: 10px;
  font-weight: 600;
}

.metric-strip article strong {
  margin: 7px 0 4px;
  color: var(--ui-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-strip article small {
  color: var(--ui-muted);
  font-size: 9px;
}

.activity-card {
  overflow: hidden;
}

.activity-card__header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--ui-line);
}

.activity-card__header > span {
  color: var(--ui-muted);
  font-size: 9px;
}

.empty-state {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px;
  text-align: center;
}

.empty-state__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--st-blue-soft);
  color: var(--st-blue);
}

.empty-state__icon .ui-icon {
  width: 22px;
  height: 22px;
}

.empty-state h3 {
  margin: 0;
  color: var(--ui-text);
  font-size: 17px;
  font-weight: 700;
}

.empty-state p {
  max-width: 430px;
  margin: 8px 0 18px;
  color: var(--ui-text-soft);
  font-size: 11px;
  line-height: 1.6;
}

.share-list {
  padding: 0 16px;
}

.share-row {
  border-bottom: 1px solid var(--ui-line);
}

.share-row:last-child {
  border-bottom: 0;
}

.share-row--open {
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--ui-line-strong);
  border-radius: 11px;
  background: var(--ui-surface-soft);
}

.share-row__summary {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 40px minmax(250px, 1.5fr) 80px 100px minmax(150px, 0.8fr) 32px;
  align-items: center;
  gap: 15px;
  padding: 15px 8px;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  text-align: left;
  cursor: pointer;
}

.share-row--open .share-row__summary {
  padding-right: 16px;
  padding-left: 16px;
  border-bottom: 1px solid var(--ui-line);
  background: #ffffff;
}

.share-row__summary:hover {
  background: #fbfbf9;
}

.share-row__file-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--st-blue-soft);
  color: var(--st-blue);
}

.share-row__file-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.share-row__name {
  min-width: 0;
}

.share-row__name strong,
.share-row__name small,
.share-row__metric small,
.share-row__metric strong,
.share-row__last small,
.share-row__last strong {
  display: block;
}

.share-row__name strong {
  overflow: hidden;
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-row__name small,
.share-row__metric small,
.share-row__last small {
  color: var(--ui-muted);
  font-size: 8px;
  font-weight: 600;
}

.share-row__name small {
  margin-top: 5px;
  font-weight: 500;
}

.share-row__metric strong {
  margin-top: 4px;
  color: var(--ui-text);
  font-size: 16px;
  font-weight: 700;
}

.share-row__last strong {
  margin-top: 4px;
  color: var(--ui-text-soft);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
}

.share-row__expand {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ui-text-soft);
}

.share-row__expand .ui-icon {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.share-row--open .share-row__expand .ui-icon {
  transform: rotate(180deg);
}

.share-details {
  padding: 16px;
}

.share-details__link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  background: #ffffff;
}

.share-details__link-copy {
  min-width: 0;
}

.share-details__link-copy span,
.share-details__link-copy strong {
  display: block;
}

.share-details__link-copy span {
  margin-bottom: 5px;
  color: var(--ui-muted);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.share-details__link-copy strong {
  overflow: hidden;
  color: var(--ui-text-soft);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-details__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 7px;
}

.share-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 12px;
  margin-top: 12px;
}

.detail-panel {
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  background: #ffffff;
}

.detail-panel__header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--ui-line);
}

.detail-panel__header h3 {
  font-size: 12px;
}

.detail-panel__header > span {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--st-blue-soft);
  color: var(--st-blue);
  font-size: 9px;
  font-weight: 700;
}

.detail-file-list,
.event-list {
  max-height: 320px;
  overflow-y: auto;
}

.detail-file {
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 76px minmax(100px, 0.7fr);
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-bottom: 1px solid #edede9;
}

.detail-file:last-child {
  border-bottom: 0;
}

.detail-file__name {
  min-width: 0;
}

.detail-file__name strong,
.detail-file__name span,
.detail-file__downloads strong,
.detail-file__downloads span {
  display: block;
}

.detail-file__name strong {
  overflow: hidden;
  color: var(--ui-text);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-file__name span,
.detail-file__downloads span,
.detail-file__last {
  margin-top: 3px;
  color: var(--ui-muted);
  font-size: 8px;
}

.detail-file__downloads strong {
  color: var(--st-blue);
  font-size: 14px;
  font-weight: 700;
}

.detail-file__last {
  display: block;
  margin: 0;
  line-height: 1.4;
  text-align: right;
}

.detail-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  color: var(--ui-muted);
  text-align: center;
}

.detail-empty .ui-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  color: var(--st-blue);
}

.detail-empty strong {
  color: var(--ui-text);
  font-size: 11px;
}

.detail-empty span {
  max-width: 230px;
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.5;
}

.event-row {
  min-height: 66px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-bottom: 1px solid #edede9;
}

.event-row:last-child {
  border-bottom: 0;
}

.event-row__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--ui-success);
  box-shadow: 0 0 0 4px rgba(52, 118, 95, 0.09);
}

.event-row strong,
.event-row span,
.event-row small {
  display: block;
}

.event-row strong {
  color: var(--ui-text);
  font-size: 10px;
  font-weight: 600;
}

.event-row span {
  margin-top: 4px;
  color: var(--ui-text-soft);
  font-size: 9px;
}

.event-row small {
  margin-top: 3px;
  color: var(--ui-muted);
  font-size: 8px;
}

@media (max-width: 1040px) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  .app-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .upload-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .share-row__summary {
    grid-template-columns: 40px minmax(210px, 1fr) 70px 90px 32px;
  }

  .share-row__last {
    display: none;
  }

  .share-details__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .login-shell {
    align-items: center;
    justify-content: center;
    padding: 28px;
  }

  .login-preview {
    inset: 24px;
    opacity: 0.4;
  }

  .login-card {
    min-height: 620px;
  }

  .app-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .brand-lockup {
    flex: 1;
  }

  .account-menu__copy {
    display: none;
  }

  .app-nav {
    width: 100%;
    order: 3;
  }

  .app-nav__link {
    flex: 1;
  }

  .page-shell {
    width: min(100% - 32px, 1280px);
    padding-top: 34px;
  }

  .upload-layout {
    grid-template-columns: 1fr;
  }

  .upload-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ui-line);
  }

  .metric-strip article:last-child {
    border-bottom: 0;
  }

  .share-row__summary {
    grid-template-columns: 40px minmax(0, 1fr) 70px 32px;
  }

  .share-row__metric:nth-of-type(2) {
    display: none;
  }

  .share-details__link-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-details__link-copy {
    width: 100%;
  }

  .share-details__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 580px) {
  .login-shell {
    padding: 0;
    background: #ffffff;
  }

  .login-preview {
    display: none;
  }

  .login-card {
    width: 100%;
    min-height: 100vh;
    padding: 30px 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-card__brand {
    top: 28px;
    left: 22px;
  }

  .login-card__content {
    padding-top: 78px;
  }

  .login-card__notice {
    margin-top: -24px;
  }

  .login-card__footer {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .otp-inputs {
    gap: 6px;
  }

  .otp-input {
    height: 50px;
    font-size: 19px;
  }

  .app-header {
    padding: 13px 16px;
  }

  .brand-lockup__wordmark {
    width: 118px;
  }

  .account-menu .btn-ui span {
    display: none;
  }

  .account-menu .btn-ui {
    width: 38px;
    padding: 0;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading--activity .btn-ui {
    width: 100%;
  }

  .secure-session {
    align-self: flex-start;
  }

  .upload-card,
  .upload-summary,
  .help-card,
  .share-result {
    padding: 18px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dropzone {
    min-height: 240px;
    padding: 24px 16px;
  }

  .upload-sidebar {
    display: flex;
  }

  .share-link-field__control {
    grid-template-columns: 1fr;
  }

  .share-result__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-result__actions > div,
  .share-result__actions .btn-ui {
    width: 100%;
  }

  .activity-card__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-list {
    padding: 0 9px;
  }

  .share-row__summary {
    grid-template-columns: 36px minmax(0, 1fr) 30px;
    gap: 11px;
  }

  .share-row__metric {
    display: none;
  }

  .share-details {
    padding: 10px;
  }

  .share-details__actions {
    flex-direction: column;
  }

  .share-details__actions .btn-ui {
    width: 100%;
  }

  .detail-file {
    grid-template-columns: 34px minmax(0, 1fr) 65px;
  }

  .detail-file__last {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
