:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --text: #191d1b;
  --text-muted: #68716c;
  --line: #e2e7e4;
  --brand: #2fbd7a;
  --brand-dark: #188c58;
  --brand-soft: #eaf9f1;
  --shadow-sm: 0 8px 22px rgba(21, 42, 31, 0.05);
  --shadow-md: 0 18px 42px rgba(21, 42, 31, 0.09);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --page-width: 1240px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(47, 189, 122, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 231, 228, 0.9);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--page-width));
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.08em;
}

.brand__name {
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.brand__dev {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-account {
  display: flex;
  min-width: 0;
  padding: 5px 6px 5px 7px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.user-account__avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.user-account__copy {
  display: flex;
  min-width: 0;
  max-width: 180px;
  flex-direction: column;
  line-height: 1.25;
}

.user-account__copy strong,
.user-account__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-account__copy strong {
  font-size: 0.72rem;
  font-weight: 700;
}

.user-account__copy small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.61rem;
}

.logout-button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #69726d;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
}

.logout-button:hover {
  background: #eef2f0;
  color: var(--text);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.header-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 189, 122, 0.12);
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: #46504b;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: #a9d9c1;
  color: var(--brand-dark);
  transform: translateY(-1px);
}

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

.login-body {
  background:
    radial-gradient(circle at 80% 10%, rgba(47, 189, 122, 0.11), transparent 28rem),
    #f4f6f5;
}

.login-page {
  display: grid;
  min-height: 100vh;
  padding: 28px;
  place-items: center;
}

.login-card {
  width: min(100%, 430px);
  padding: 34px 34px 30px;
  border: 1px solid #dde4e0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(24, 47, 35, 0.11);
}

.login-brand {
  display: inline-flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.1em;
}

.login-brand__name {
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.login-brand__dev {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 0.61rem;
  font-weight: 800;
}

.login-alert {
  margin: 24px 0 0;
  padding: 12px 14px;
  border: 1px solid #f0d5d5;
  border-radius: 10px;
  background: #fff7f7;
  color: #a14343;
  font-size: 0.75rem;
  line-height: 1.55;
}

.local-login-form {
  display: flex;
  margin-top: 26px;
  flex-direction: column;
  gap: 14px;
}

.login-alert + .local-login-form {
  margin-top: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-field label {
  color: #46504b;
  font-size: 0.76rem;
  font-weight: 600;
}

.login-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d7ddd9;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.login-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 189, 122, 0.12);
}

.login-field input:focus-visible {
  outline: 3px solid rgba(47, 189, 122, 0.3);
  outline-offset: 1px;
}

.local-login-button {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.local-login-button:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 20px rgba(24, 140, 88, 0.14);
  transform: translateY(-1px);
}

.login-divider {
  display: flex;
  margin: 22px 0;
  align-items: center;
  gap: 12px;
  color: #98a09c;
  font-size: 0.65rem;
  font-weight: 600;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.google-login-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #d8dedb;
  border-radius: 11px;
  background: #fff;
  color: #252a27;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 28px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.login-alert + .google-login-button {
  margin-top: 14px;
}

.login-divider + .google-login-button {
  margin-top: 0;
}

.google-login-button:hover:not(:disabled) {
  border-color: #9fcfb7;
  box-shadow: 0 8px 20px rgba(24, 140, 88, 0.08);
  transform: translateY(-1px);
}

.google-login-button:disabled {
  color: #949b97;
  cursor: not-allowed;
}

.local-login-button:focus-visible,
.google-login-button:focus-visible {
  outline: 3px solid rgba(47, 189, 122, 0.32);
  outline-offset: 3px;
}

.google-login-button__mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75%);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.login-note {
  margin: 18px 0 0;
  color: #8a938e;
  font-size: 0.68rem;
  line-height: 1.6;
  text-align: center;
}

.page-loader[hidden],
.page-loader__spinner[hidden],
.page-loader__retry[hidden] {
  display: none;
}

.page-loader {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(244, 246, 245, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.page-loader__panel {
  display: flex;
  width: min(100%, 360px);
  min-height: 84px;
  padding: 18px 20px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(214, 223, 218, 0.9);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 38px rgba(27, 47, 37, 0.09);
}

.page-loader__spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid #dce9e2;
  border-top-color: var(--brand-dark);
  border-radius: 50%;
  animation: page-loader-spin 720ms linear infinite;
}

.page-loader__copy {
  min-width: 0;
}

.page-loader__copy strong {
  display: block;
  color: #28302b;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.45;
}

.page-loader__copy p {
  margin: 4px 0 0;
  color: #7b8580;
  font-size: 0.67rem;
  line-height: 1.5;
}

.page-loader__retry {
  min-height: 32px;
  margin-left: auto;
  padding: 0 11px;
  flex: 0 0 auto;
  border: 1px solid #d2dad6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #4e5852;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.page-loader.is-error .page-loader__panel {
  border-color: rgba(218, 184, 184, 0.9);
}

.page-loader.is-error .page-loader__copy strong {
  color: #9c3e3e;
}

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

.home-page {
  padding: 48px 0 80px;
}

.section-heading__eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.dashboard-section {
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
}

.dashboard-section--first {
  padding-top: 0;
  border-top: 0;
}

.dashboard-section--utilities {
  margin-top: 58px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.section-heading__eyebrow {
  margin-bottom: 7px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.section-heading--personal {
  align-items: center;
}

.section-heading > p {
  margin: 0 0 2px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.primary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 276px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tool-card::after {
  position: absolute;
  right: -56px;
  bottom: -72px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: var(--card-soft);
  content: "";
  opacity: 0.78;
  transition: transform 220ms ease;
}

.tool-card:hover {
  border-color: var(--card-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tool-card:hover::after {
  transform: scale(1.12);
}

.tool-card--disabled {
  --card-soft: #eef1ef;
  --card-line: var(--line);
  color: #767e79;
  cursor: not-allowed;
  box-shadow: none;
}

.tool-card--disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.tool-card--disabled:hover::after {
  transform: none;
}

.tool-card:focus-visible,
.personal-tool-card__link:focus-visible,
.add-tool-button:focus-visible,
.icon-button:focus-visible,
.dialog-close:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(47, 189, 122, 0.32);
  outline-offset: 3px;
}

.tool-card--green {
  --card-main: #1b9d62;
  --card-soft: #e5f8ee;
  --card-line: #a8dec2;
}

.tool-card--blue {
  --card-main: #3c6fd8;
  --card-soft: #eaf0fd;
  --card-line: #bdcdf1;
}

.tool-card--violet {
  --card-main: #7758ca;
  --card-soft: #f0ecfc;
  --card-line: #d2c7ef;
}

.tool-card--amber {
  --card-main: #b47722;
  --card-soft: #fbf1df;
  --card-line: #ead0a7;
}

.tool-card--cyan {
  --card-main: #168b91;
  --card-soft: #e2f6f6;
  --card-line: #a9d9dc;
}

.tool-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tool-card__top--arrow-only {
  justify-content: flex-end;
}

.tool-card__arrow {
  color: #8a938f;
  font-size: 1.1rem;
  transition: color 160ms ease, transform 160ms ease;
}

.tool-card__status {
  display: inline-flex;
  min-height: 25px;
  padding: 3px 9px;
  align-items: center;
  border: 1px solid #d9dfdc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #7a837e;
  font-size: 0.66rem;
  font-weight: 700;
}

.tool-card:hover .tool-card__arrow {
  color: var(--card-main);
  transform: translate(2px, -2px);
}

.tool-card__body {
  position: relative;
  z-index: 1;
}

.tool-card h2 {
  margin: 0 0 9px;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.tool-card p {
  max-width: 230px;
  min-height: 4.1rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.default-tool-card {
  display: flex;
  min-width: 0;
  min-height: 126px;
  padding: 16px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(21, 42, 31, 0.03);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.default-tool-card:hover {
  border-color: #acd9c3;
  background: var(--surface);
  transform: translateY(-2px);
}

.default-tool-card__label {
  width: fit-content;
  margin-bottom: 2px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.6rem;
  font-weight: 700;
}

.personal-tool-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 16px rgba(21, 42, 31, 0.03);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.personal-tool-card:hover {
  border-color: #acd9c3;
  background: var(--surface);
  transform: translateY(-2px);
}

.personal-tool-card__link {
  display: flex;
  min-width: 0;
  min-height: 86px;
  padding: 16px;
  align-items: center;
  gap: 13px;
  text-align: left;
}

.personal-tool-card__actions {
  display: flex;
  padding: 0 14px 12px;
  justify-content: flex-end;
  gap: 6px;
}

.personal-tool-card__actions button {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
}

.personal-tool-card__actions button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.personal-tool-card__actions .personal-tool-card__delete:hover {
  background: #fff0f0;
  color: #be3b3b;
}

.utility-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.2rem;
}

.utility-card__icon.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-size: 1.28rem;
  font-style: normal;
  font-weight: 500;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.utility-card__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.utility-card__copy strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-card__copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.utility-card__arrow {
  flex: 0 0 auto;
  color: #98a09c;
}

.personal-tools-hint {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: right;
}

.personal-tools-hint button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
}

.personal-tools-hint button:hover {
  text-decoration: underline;
}

.add-tool-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(47, 189, 122, 0.18);
  transition: background 150ms ease, transform 150ms ease;
}

.add-tool-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.add-tool-button span {
  font-size: 1.12rem;
  font-weight: 500;
}

.empty-tools {
  display: flex;
  min-height: 132px;
  padding: 24px;
  align-items: center;
  gap: 16px;
  border: 1px dashed #cdd8d2;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.empty-tools__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.empty-tools div {
  flex: 1;
}

.empty-tools strong {
  font-size: 0.92rem;
}

.empty-tools p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.empty-tools button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.tool-dialog {
  width: min(calc(100% - 32px), 560px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(18, 36, 27, 0.2);
}

.tool-dialog::backdrop {
  background: rgba(20, 27, 23, 0.42);
  backdrop-filter: blur(3px);
}

.tool-dialog__header {
  display: flex;
  padding: 26px 28px 22px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.tool-dialog__eyebrow {
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tool-dialog__header h2 {
  margin: 7px 0 5px;
  font-size: 1.35rem;
}

.tool-dialog__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
}

.dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: #66706b;
  font-size: 1.3rem;
  cursor: pointer;
}

.tool-form__body {
  display: flex;
  padding: 24px 28px;
  flex-direction: column;
  gap: 9px;
}

.tool-form__body label {
  margin-top: 8px;
  color: #46504b;
  font-size: 0.78rem;
  font-weight: 600;
}

.tool-form__body label:first-of-type {
  margin-top: 0;
}

.tool-form__body label span {
  margin-left: 3px;
  color: #9ba39f;
  font-size: 0.68rem;
  font-weight: 500;
}

.tool-form__body input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d7ddd9;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tool-form__body input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 189, 122, 0.12);
}

.tool-form__body input::placeholder {
  color: #a6ada9;
}

.tool-form__error {
  margin: 7px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff0f0;
  color: #a93636;
  font-size: 0.76rem;
}

.tool-form__footer {
  display: flex;
  padding: 18px 28px 24px;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.sheet-list {
  display: flex;
  padding: 16px;
  flex-direction: column;
  gap: 6px;
}

.sheet-list a {
  display: flex;
  padding: 13px;
  align-items: center;
  gap: 13px;
  border-radius: 13px;
  transition: background 150ms ease;
}

.sheet-list a:hover {
  background: var(--surface-soft);
}

.sheet-list a > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.sheet-list strong {
  font-size: 0.86rem;
}

.sheet-list small {
  color: var(--text-muted);
  font-size: 0.73rem;
}

.sheet-list__arrow {
  color: #8a938f;
}

.placeholder-page {
  display: grid;
  min-height: calc(100vh - 145px);
  padding: 64px 0;
  place-items: center;
}

.placeholder-card {
  width: min(100%, 540px);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.placeholder-card__label {
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.placeholder-card h1 {
  margin: 12px 0;
  font-size: 2rem;
}

.placeholder-card p {
  margin: 0 auto 28px;
  color: var(--text-muted);
  line-height: 1.75;
}

.primary-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.primary-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.secondary-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: #59635e;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

@media (max-width: 980px) {
  .primary-grid,
  .utility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .primary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .page-shell {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .site-header__inner {
    height: 64px;
  }

  .header-status {
    display: none;
  }

  .user-account__copy,
  .user-account__avatar {
    display: none;
  }

  .user-account {
    padding-left: 6px;
  }

  .login-page {
    padding: 18px;
  }

  .login-card {
    padding: 30px 24px 26px;
  }

  .home-page {
    padding: 34px 0 56px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading > p {
    font-size: 0.82rem;
  }

  .primary-grid,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 240px;
  }

  .dashboard-section--utilities {
    margin-top: 46px;
  }

  .section-heading--personal {
    flex-direction: row;
    align-items: flex-end;
  }

  .section-heading--personal .add-tool-button {
    flex: 0 0 auto;
  }

  .empty-tools {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .empty-tools div {
    min-width: calc(100% - 64px);
  }

  .empty-tools button {
    margin-left: 60px;
  }

  .tool-dialog__header,
  .tool-form__body,
  .tool-form__footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .placeholder-card {
    padding: 36px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__spinner {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
