:root {
  --color-paper: #fdfdfd;
  --color-surface: rgba(255, 255, 255, 0.72);
  --color-surface-soft: #f6f7f8;
  --color-border: rgba(31, 35, 38, 0.1);
  --color-border-strong: rgba(31, 35, 38, 0.18);
  --color-text: #1f2225;
  --color-muted: #737a80;
  --color-faint: #a8afb5;
  --color-accent: #687f93;
  --color-accent-hover: #536d83;
  --color-on-accent: #fff;
  --shadow-hairline: 0 1px 0 rgba(28, 31, 33, 0.04);
  --shadow-float: 0 20px 70px rgba(26, 30, 34, 0.07);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", "Segoe UI",
    sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, Monaco, monospace;
  color: var(--color-text);
  background: var(--color-paper);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 248, 0.82)),
    var(--color-paper);
}

button,
input {
  font: inherit;
}

.ui-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.ui-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

h1,
p {
  margin: 0;
}

.ui-title {
  color: var(--color-text);
  font-size: 22px;
  font-weight: 520;
  line-height: 1.32;
}

p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.54;
}

.ui-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.ui-surface {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: var(--shadow-hairline);
  backdrop-filter: blur(18px);
}

.ui-surface.is-dragging {
  background: #fff;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: var(--shadow-float);
}

.ui-button {
  position: relative;
  z-index: 1;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.54;
  padding: 6px 14px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

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

.ui-button-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 10px 26px rgba(104, 127, 147, 0.16);
}

.ui-button-secondary,
.ui-button-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.ui-button-secondary:hover:not(:disabled),
.ui-button-ghost:hover:not(:disabled) {
  background: #fff;
  border-color: var(--color-border-strong);
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
}

.ui-table th,
.ui-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.ui-table th {
  background: rgba(246, 247, 248, 0.7);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.5;
}

.ui-table td {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.54;
}

.ui-table tbody tr:last-child td {
  border-bottom: 0;
}

.ui-table tbody tr:hover td {
  background: rgba(247, 248, 248, 0.62);
}

.empty {
  color: var(--color-faint);
  text-align: center;
}

@media (max-width: 760px) {
  .ui-shell {
    width: min(100% - 24px, 1120px);
    padding: 18px 0;
  }

  .ui-masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .ui-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
