:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #18263b;
  background: #f3f6fa;
  font-size: 16px;
  font-synthesis: none;
  --nav: #0c1729;
  --accent: #087c91;
  --muted: #617087;
  --line: #dce4ee;
  --shadow: 0 8px 28px #10294408;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
.button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 11px 17px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 42px;
}
button:hover,
.button:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
.secondary {
  background: #eaf0f6;
  color: #263a53;
}
.danger {
  background: #fff0ee;
  color: #ac3525;
}
.text-button {
  background: none;
  color: var(--accent);
  padding: 6px 0;
  min-height: 32px;
  text-align: left;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #1babd0;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
h2 {
  font-size: 1.23rem;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  line-height: 1.6;
}
small,
.small {
  font-size: 0.875rem;
}
label {
  font-size: 0.875rem;
  font-weight: 600;
  display: grid;
  gap: 8px;
}
input,
select {
  background: white;
  border: 1px solid #bfcddd;
  color: #18263b;
  border-radius: 7px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.field {
  margin-bottom: 18px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--accent);
  margin-bottom: 12px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.brand span {
  background: #18aec2;
  color: #062736;
  border-radius: 9px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--nav);
  color: #eff7ff;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 45px;
}
.sidebar nav button {
  background: none;
  color: #9bafc9;
  justify-content: flex-start;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 7px;
}
.sidebar nav button.active {
  background: #163249;
  color: #77e6f2;
  box-shadow: inset 3px 0 #32c5d6;
}
.sidebar nav button:hover {
  background: #14243a;
  color: white;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #233248;
  padding: 22px 10px 0;
}
.sidebar-bottom p {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: #9bafc9;
  overflow-wrap: anywhere;
}
.sidebar-bottom button {
  padding: 8px 0;
  background: transparent;
  color: #d2ddec;
  font-size: 0.875rem;
}
.workspace {
  min-width: 0;
}
.topbar {
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 38px;
}
.topbar small {
  color: var(--muted);
}
.topbar-right {
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2f3f5;
  color: #086478;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.content {
  padding: 34px 38px 64px;
  max-width: 1600px;
  margin: auto;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-title p {
  color: var(--muted);
  margin-bottom: 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card h2:last-child {
  margin-bottom: 0;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stats {
  margin-bottom: 24px;
}
.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 15px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 7px;
}
.stat-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.storage-card {
  background: #10243a;
  color: white;
  border: none;
}
.storage-card .stat-label,
.storage-card .stat-note {
  color: #b9cadd;
}
progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 8px;
  appearance: none;
  background: #e4edf5;
  margin: 16px 0 11px;
}
progress::-webkit-progress-bar {
  background: #e4edf5;
  border-radius: 8px;
}
progress::-webkit-progress-value {
  background: #1db2c4;
  border-radius: 8px;
}
progress::-moz-progress-bar {
  background: #1db2c4;
  border-radius: 8px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
}
.stack {
  display: grid;
  gap: 20px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  background: #edf2f8;
  color: #50617a;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}
.badge.good {
  background: #e6f6ed;
  color: #256943;
}
.badge.warn {
  background: #fff2d8;
  color: #8d5e0c;
}
.badge.bad {
  background: #ffebe8;
  color: #a63225;
}
.banner {
  padding: 17px 20px;
  border: 1px solid #bddde5;
  background: #edf9fb;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.banner.warning {
  background: #fff8e8;
  border-color: #eedca9;
}
.banner p {
  margin: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
th {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f7f9fc;
  font-weight: 650;
  white-space: nowrap;
}
td,
th {
  padding: 14px 13px;
  border-bottom: 1px solid #e6ecf3;
}
td {
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  padding-left: 0;
}
th:first-child {
  padding-left: 13px;
}
td strong {
  font-weight: 650;
  display: block;
  margin-bottom: 4px;
}
td .muted {
  font-size: 0.8rem;
}
td .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
td button {
  font-size: 0.8rem;
  min-height: 32px;
  padding: 6px 9px;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty h3 {
  font-size: 1.05rem;
  color: #263a53;
  margin-bottom: 9px;
}
.empty p {
  max-width: 440px;
  margin: 0 auto 18px;
}
.row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.spread {
  justify-content: space-between;
}
.events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.events li {
  padding: 15px 0;
  border-bottom: 1px solid #e6edf5;
}
.events li:last-child {
  border: 0;
}
.events p {
  margin: 4px 0;
  font-size: 0.875rem;
}
.events time {
  font-size: 0.75rem;
  color: var(--muted);
}
.search {
  max-width: 310px;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42% 58%;
}
.auth-side {
  background: #0c1729;
  color: white;
  padding: 50px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side h1 {
  font-size: 3rem;
  line-height: 1.1;
  max-width: 440px;
}
.auth-side .muted {
  color: #a9bed6;
}
.auth-proof {
  border-top: 1px solid #283b54;
  padding-top: 22px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.auth-main {
  padding: 50px 9%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form {
  width: 100%;
  max-width: 480px;
}
.auth-form h1 {
  font-size: 1.9rem;
}
.auth-form form {
  margin-top: 28px;
}
.full {
  width: 100%;
}
.form-error {
  color: #a62e20;
  background: #fff0ed;
  padding: 13px;
  border-radius: 7px;
  font-size: 0.875rem;
  margin-bottom: 15px;
}
.form-error:empty {
  display: none;
}
.auth-links {
  margin: 20px 0;
  font-size: 0.875rem;
}
.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.price {
  font-size: 2.6rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  margin: 20px 0 4px;
}
.price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.price-list {
  padding-left: 20px;
  line-height: 2;
  font-size: 0.875rem;
  margin: 22px 0 28px;
}
.price-card {
  position: relative;
}
.price-card.featured {
  border: 2px solid #0795aa;
}
.price-card .eyebrow {
  margin-top: 2px;
}
.pricing-header {
  max-width: 740px;
  text-align: center;
  margin: 48px auto 36px;
}
.pricing-header h1 {
  font-size: 2.6rem;
}
.public-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px;
}
.public-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.billing-price {
  font-size: 2.3rem;
  font-weight: 700;
  margin: 20px 0 8px;
}
.settings-form {
  max-width: 560px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.code {
  display: block;
  background: #edf3f8;
  padding: 15px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border-radius: 7px;
  font-size: 0.875rem;
  user-select: all;
  margin: 15px 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  width: min(580px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 24px 100px #07142c40;
  color: #18263b;
}
dialog::backdrop {
  background: #08152b85;
  backdrop-filter: blur(2px);
}
.close {
  position: absolute;
  right: 15px;
  top: 12px;
  background: none;
  color: var(--muted);
  padding: 5px;
  font-size: 1.5rem;
  min-height: 32px;
}
dialog h2 {
  padding-right: 20px;
}
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(460px, calc(100vw - 48px));
  background: #12283f;
  color: white;
  border-radius: 9px;
  padding: 17px 22px;
  box-shadow: 0 10px 35px #07142c25;
  z-index: 30;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.mobile-name {
  display: none;
}
.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: monospace;
}
.strong {
  font-weight: 700;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 18px 25px;
  }
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .stats .storage-card {
    grid-column: 1/-1;
  }
  .auth-side {
    padding: 40px 10%;
  }
  .auth-side h1 {
    font-size: 2.4rem;
  }
  .price-grid {
    gap: 14px;
  }
  .card {
    padding: 21px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 18px;
  }
  .sidebar > .brand {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin: 0;
    gap: 6px;
  }
  .sidebar nav button {
    white-space: nowrap;
    min-height: 38px;
    padding: 9px 12px;
    font-size: 0.875rem;
  }
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    padding: 15px 19px;
  }
  .mobile-name {
    display: block;
    font-weight: 750;
  }
  .content {
    padding: 23px 18px 45px;
  }
  .page-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 1.65rem;
  }
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }
  .stats .storage-card {
    grid-column: auto;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-layout {
    display: block;
  }
  .auth-side {
    padding: 23px;
  }
  .auth-side > .auth-copy,
  .auth-proof {
    display: none;
  }
  .auth-main {
    padding: 35px 23px;
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
  .pricing-header {
    margin-top: 32px;
  }
  .pricing-header h1 {
    font-size: 2rem;
  }
  .inline-fields {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .topbar-right .muted {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.content > .card,
.content > .grid {
  margin-bottom: 24px;
}
