:root {
  font-family: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  color: #182338;
  background: #f4f6fa;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #244bb6; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
:focus-visible { outline: 3px solid #5e7bea; outline-offset: 3px; }
h1, h2, p { margin: 0; }

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top, #e8eeff, #f4f6fa 62%);
}
.login-card {
  width: min(100%, 420px);
  padding: clamp(24px, 6vw, 44px);
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 22px;
  box-shadow: 0 13px 36px #26385a16;
}
.login-card h1 { margin-top: 22px; font-size: 29px; }
.login-card > p:not(.feedback) { color: #50617a; margin: 10px 0 25px; }
.login-card .primary { width: 100%; }

.mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: #3456c1;
  font-weight: 800;
}
.dashboard { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.sidebar { padding: 23px 15px; color: #dce7ff; background: #172641; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 7px 24px; color: #fff; font-weight: 700; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button, .padlet-nav {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  padding: 11px 12px;
  color: inherit;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
}
.sidebar nav button:hover, .sidebar nav button[aria-current] { background: #2b416b; color: #fff; }
.padlet-nav { text-decoration: none; margin-top: 24px; border-top: 1px solid #3d5072; }
.padlet-nav:hover { color: #fff; }
.padlet-nav span { float: right; }

.main-panel { max-width: 1300px; width: 100%; margin: 0 auto; padding: clamp(16px, 4vw, 43px); }
.top-bar, .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-bar { margin-bottom: 26px; flex-wrap: wrap; }
.top-bar h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.04em; }
.top-bar p, .panel-header p { color: #54637b; margin-top: 6px; font-size: 14px; }
.account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.panel { background: #fff; border: 1px solid #e0e6f0; border-radius: 15px; margin-bottom: 23px; }
.panel-header { padding: 19px 22px; flex-wrap: wrap; }
.panel-header h2 { font-size: 19px; letter-spacing: -.025em; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-top: 1px solid #e5e9f1; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
th { color: #435471; background: #f6f8fc; font-size: 13px; }
td:first-child { font-weight: 650; white-space: nowrap; }
td a { overflow-wrap: anywhere; }
.status { display: inline-block; white-space: nowrap; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.status[data-state="live"] { background: #e4f5ea; color: #1c6135; }
.status[data-state="pending"] { background: #fff0d1; color: #76500a; }
.status[data-state="external"] { background: #e8eefb; color: #384f82; }
.status[data-state="staged"] { background: #edf0f5; color: #4d5b70; }

input { min-width: 0; border: 1px solid #ccd6e5; border-radius: 9px; background: #fff; color: #182338; padding: 10px 12px; }
.search input { width: min(100%, 250px); }
.primary, .secondary { border: 1px solid transparent; border-radius: 9px; padding: 10px 15px; font-weight: 650; }
.primary { background: #3456c1; color: #fff; }
.primary:not(:disabled):hover { background: #2545aa; }
.secondary { color: #344764; border-color: #ccd6e5; background: #fff; }
.secondary:hover { background: #f2f5fc; }
.managed-links { margin: 0; padding: 0 22px; list-style: none; }
.managed-links li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #e5e9f1; padding: 10px 0; font-size: 14px; overflow-wrap: anywhere; }
.padlet-form { padding: 18px 22px 21px; }
.padlet-form > label { display: block; margin-bottom: 8px; font-weight: 650; font-size: 14px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.feedback { margin-top: 10px; color: #4e5d75; font-size: 13px; line-height: 1.6; }
.feedback[data-error="true"] { color: #902a32; }
.panel-feedback:not(:empty) { padding: 0 22px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 740px) {
  .dashboard { display: block; }
  .sidebar { padding: 13px 15px 8px; }
  .brand { padding-bottom: 12px; }
  .sidebar nav { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0; }
  .sidebar nav button { width: auto; flex-shrink: 0; white-space: nowrap; }
  .padlet-nav { margin-top: 6px; }
  .search, .search input { width: 100%; }
}
