:root {
  --page-gutter: clamp(0.875rem, 3.4vw, 2.5rem);
  --panel-gap: clamp(0.75rem, 1.8vw, 1.25rem);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
body { margin: 0; }
h1, h2, p { margin: 0; }
.mast { background: var(--paper); color: var(--panel-ink); border-bottom: 1px solid var(--line); }
.mast-inner, .dashboard { width: min(100%, 90rem); margin-inline: auto; padding-inline: var(--page-gutter); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.logo b { color: var(--panel-accent); }
.mast-actions { display: flex; align-items: center; gap: 8px; }
.control { min-height: 44px; padding: 0 12px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--paper); color: var(--panel-ink); font-size: 14px; font-weight: 650; }
.control:hover { background: var(--tint); }
.mast-actions .header-name { max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dashboard { display: grid; gap: var(--panel-gap); padding-block: var(--panel-gap) var(--page-gutter); }
.panel { min-width: 0; background: var(--paper); color: var(--panel-ink); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1rem, 2vw, 1.25rem); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head :is(h1, h2) { min-width: 0; font-size: 17px; font-weight: 750; overflow-wrap: anywhere; }
.section-head :is(a, button) { flex: none; color: var(--panel-accent); font-size: 13px; font-weight: 650; }
.text-button { padding: 8px 0; min-height: 36px; background: transparent; border: 0; }
.text-button:hover { text-decoration: underline; }
.status { color: var(--muted); font-size: 14px; line-height: 1.55; }
.status:empty { display: none; }
.profile-dialog { width: min(400px, calc(100% - 28px)); padding: 22px; background: var(--paper); color: var(--panel-ink); border: 1px solid var(--line); border-radius: 12px; }
.profile-dialog::backdrop { background: #0a122476; }
.profile-dialog form { display: grid; gap: 12px; }
.profile-dialog h2 { font-size: 19px; }
.profile-dialog label { font-size: 14px; }
.profile-dialog input { min-height: 44px; width: 100%; padding: 8px 12px; border: 1px solid var(--control-line); border-radius: 8px; background: var(--paper); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.control.primary, .control.primary:hover { color: var(--on-accent); background: var(--accent); border-color: transparent; }
@media (max-width: 380px) {
  .mast-actions { gap: 5px; }
  .mast-actions .header-name { max-width: 86px; }
}
