/* ========================================
   Grapa Design System - Common Styles
   ======================================== */

/* ---- Light Theme (default) ---- */
:root {
  --brand-primary: #6C5CE7;
  --brand-dark: #4A3DB0;
  --point: #A29BFE;
  --bg-gradient-start: #1a1a2e;
  --bg-gradient-end: #16213e;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(255, 255, 255, 0.3);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --input-bg: #fff;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-placeholder: #b2bec3;
  --error: #e17055;
  --success: #00b894;
  --border: #dfe6e9;
  --border-focus: var(--point);
  --rules-bg: #f8f9fa;
  --notice-bg: rgba(108, 92, 231, 0.06);
  --result-bg: rgba(108, 92, 231, 0.06);
  --result-border: rgba(108, 92, 231, 0.15);
  --logo-filter: none;
  --layout-bg: #f5f6fa;
  --header-bg: #fff;
  --sidebar-bg: #1e1e2e;
  --sidebar-text: rgba(255, 255, 255, 0.6);
  --sidebar-text-hover: rgba(255, 255, 255, 0.9);
  --sidebar-section-title: rgba(255, 255, 255, 0.3);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.08);
  --sidebar-active-bg: rgba(108, 92, 231, 0.25);
  --sidebar-active-text: #A29BFE;
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --content-bg: #f5f6fa;
  --hover-bg: rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
  --bg-gradient-start: #0d0d1a;
  --bg-gradient-end: #0f1626;
  --card-bg: rgba(30, 30, 50, 0.92);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --input-bg: rgba(255, 255, 255, 0.06);
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0b0;
  --text-placeholder: #606070;
  --border: rgba(255, 255, 255, 0.12);
  --rules-bg: rgba(255, 255, 255, 0.04);
  --notice-bg: rgba(108, 92, 231, 0.1);
  --result-bg: rgba(108, 92, 231, 0.1);
  --result-border: rgba(108, 92, 231, 0.25);
  --logo-filter: none;
  --layout-bg: #121218;
  --header-bg: #1a1a24;
  --sidebar-bg: #141420;
  --sidebar-text: rgba(255, 255, 255, 0.55);
  --sidebar-text-hover: rgba(255, 255, 255, 0.9);
  --sidebar-section-title: rgba(255, 255, 255, 0.25);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
  --sidebar-active-bg: rgba(108, 92, 231, 0.2);
  --sidebar-active-text: #A29BFE;
  --sidebar-border: rgba(255, 255, 255, 0.04);
  --content-bg: #121218;
  --hover-bg: rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-gradient-start: #0d0d1a;
    --bg-gradient-end: #0f1626;
    --card-bg: rgba(30, 30, 50, 0.92);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --input-bg: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0b0;
    --text-placeholder: #606070;
    --border: rgba(255, 255, 255, 0.12);
    --rules-bg: rgba(255, 255, 255, 0.04);
    --notice-bg: rgba(108, 92, 231, 0.1);
    --result-bg: rgba(108, 92, 231, 0.1);
    --result-border: rgba(108, 92, 231, 0.25);
    --logo-filter: none;
    --layout-bg: #121218;
    --header-bg: #1a1a24;
    --sidebar-bg: #141420;
    --sidebar-text: rgba(255, 255, 255, 0.55);
    --sidebar-text-hover: rgba(255, 255, 255, 0.9);
    --sidebar-section-title: rgba(255, 255, 255, 0.25);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
    --sidebar-active-bg: rgba(108, 92, 231, 0.2);
    --sidebar-active-text: #A29BFE;
    --sidebar-border: rgba(255, 255, 255, 0.04);
    --content-bg: #121218;
    --hover-bg: rgba(255, 255, 255, 0.06);
  }
}

/* ========================================
   Reset
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ========================================
   Fullscreen Background
   ======================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 0.8rem + 0.5vw, 20px);
  transition: background var(--transition);
}

/* Decorative shapes */
.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
}

.auth-page::before {
  width: clamp(200px, 15vw + 100px, 400px);
  height: clamp(200px, 15vw + 100px, 400px);
  background: var(--brand-primary);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.auth-page::after {
  width: clamp(150px, 12vw + 60px, 300px);
  height: clamp(150px, 12vw + 60px, 300px);
  background: var(--point);
  bottom: -80px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

/* Extra decorative element */
.deco-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  background: var(--point);
  pointer-events: none;
}

.deco-shape--1 {
  width: clamp(120px, 8vw + 60px, 200px);
  height: clamp(120px, 8vw + 60px, 200px);
  top: 30%;
  left: 10%;
  animation: float 12s ease-in-out infinite;
}

.deco-shape--2 {
  width: clamp(90px, 6vw + 40px, 150px);
  height: clamp(90px, 6vw + 40px, 150px);
  bottom: 20%;
  right: 15%;
  animation: float 9s ease-in-out infinite reverse;
}

/* ========================================
   Theme Toggle
   ======================================== */
.theme-toggle {
  position: fixed;
  top: clamp(12px, 0.5rem + 1vw, 20px);
  right: clamp(12px, 0.5rem + 1vw, 20px);
  z-index: 100;
  width: clamp(38px, 2rem + 1vw, 44px);
  height: clamp(38px, 2rem + 1vw, 44px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: clamp(18px, 1rem + 0.3vw, 20px);
  height: clamp(18px, 1rem + 0.3vw, 20px);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* ========================================
   Glassmorphism Card
   ======================================== */
.auth-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 440px;
  padding: clamp(24px, 1.5rem + 2vw, 44px) clamp(16px, 1rem + 2.5vw, 40px);
  position: relative;
  z-index: 1;
  animation: cardIn 0.5s ease-out;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================
   Brand / Logo
   ======================================== */
.brand {
  text-align: center;
  margin-bottom: clamp(24px, 1.2rem + 1vw, 32px);
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.brand__logo img {
  /*height: clamp(24px, 4vw, 36px);*/
  height: clamp(24px, 4vw, 36px);
  width: auto;
  display: block;
  filter: var(--logo-filter);
  transition: filter var(--transition);
}

.brand__name {
  font-size: clamp(1.1rem, 0.8rem + 2vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  transition: color var(--transition);
}

.brand__sub {
  font-size: clamp(0.8rem, 0.75rem + 0.15vw, 0.85rem);
  color: var(--text-secondary);
  margin-top: 4px;
  transition: color var(--transition);
}

/* ========================================
   Form Elements
   ======================================== */
.form-group {
  margin-bottom: clamp(16px, 0.8rem + 0.5vw, 20px);
}

.form-group__label {
  display: block;
  font-size: clamp(0.8rem, 0.75rem + 0.15vw, 0.85rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  transition: color var(--transition);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper__field {
  width: 100%;
  padding: clamp(11px, 0.6rem + 0.2vw, 12px) clamp(14px, 0.75rem + 0.3vw, 16px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: clamp(0.875rem, 0.83rem + 0.2vw, 0.95rem);
  color: var(--text-primary);
  background: var(--input-bg);
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
}

.input-wrapper__field::placeholder {
  color: var(--text-placeholder);
}

.input-wrapper__field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(162, 155, 254, 0.2);
}

.input-wrapper__field--error {
  border-color: var(--error);
}

.input-wrapper__field--error:focus {
  box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.15);
}

/* Password toggle */
.input-wrapper__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-placeholder);
  transition: color var(--transition);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-wrapper__toggle:hover {
  color: var(--text-secondary);
}

.input-wrapper__toggle svg {
  width: clamp(18px, 1rem + 0.3vw, 20px);
  height: clamp(18px, 1rem + 0.3vw, 20px);
}

/* Error message */
.form-group__error {
  font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.8rem);
  color: var(--error);
  margin-top: 5px;
  display: none;
}

.form-group__error--visible {
  display: block;
  animation: shakeIn 0.3s ease;
}

@keyframes shakeIn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 0.6rem + 0.2vw, 12px) clamp(20px, 1rem + 0.5vw, 24px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.875rem, 0.83rem + 0.2vw, 0.95rem);
  font-weight: 600;
  transition: all var(--transition);
  width: 100%;
}

.btn--primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--primary:disabled {
  background: var(--text-placeholder);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}

.btn--outline:hover {
  background: rgba(108, 92, 231, 0.06);
}

/* ========================================
   Links
   ======================================== */
.auth-links {
  text-align: center;
  margin-top: clamp(20px, 1rem + 0.5vw, 24px);
  font-size: clamp(0.8rem, 0.75rem + 0.15vw, 0.85rem);
  color: var(--text-secondary);
  transition: color var(--transition);
}

.auth-links a {
  color: var(--brand-primary);
  font-weight: 500;
  transition: color var(--transition);
}

.auth-links a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.auth-links__divider {
  display: inline-block;
  margin: 0 10px;
  color: var(--border);
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: clamp(12px, 0.7rem + 0.3vw, 14px) clamp(16px, 0.9rem + 0.5vw, 20px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.85rem, 0.8rem + 0.15vw, 0.9rem);
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.4s ease;
  max-width: 360px;
}

.toast--success {
  background: var(--success);
}

.toast--error {
  background: var(--error);
}

.toast--out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* ========================================
   Page Header (for sub-pages)
   ======================================== */
.page-header {
  text-align: center;
  margin-bottom: 28px;
}

.page-header__title {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header__desc {
  font-size: clamp(0.82rem, 0.77rem + 0.15vw, 0.875rem);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   Tabs
   ======================================== */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  transition: border-color var(--transition);
}

.tabs__item {
  flex: 1;
  padding: clamp(10px, 0.5rem + 0.3vw, 12px) 0;
  text-align: center;
  font-size: clamp(0.85rem, 0.8rem + 0.15vw, 0.9rem);
  font-weight: 600;
  color: var(--text-placeholder);
  position: relative;
  transition: color var(--transition);
}

.tabs__item:hover {
  color: var(--text-secondary);
}

.tabs__item--active {
  color: var(--brand-primary);
}

.tabs__item--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-primary);
  border-radius: 1px;
  animation: tabSlide 0.3s ease;
}

@keyframes tabSlide {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Result Box
   ======================================== */
.result-box {
  display: none;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--result-bg);
  border: 1px solid var(--result-border);
  transition: background var(--transition), border-color var(--transition);
}

.result-box--visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.result-box__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.result-box__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* ========================================
   Password Strength
   ======================================== */
.password-strength {
  margin-top: 8px;
}

.password-strength__bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: background var(--transition);
}

.password-strength__fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.4s ease, background 0.4s ease;
}

.password-strength__fill--weak {
  width: 33%;
  background: var(--error);
}

.password-strength__fill--medium {
  width: 66%;
  background: #fdcb6e;
}

.password-strength__fill--strong {
  width: 100%;
  background: var(--success);
}

.password-strength__text {
  font-size: 0.75rem;
  margin-top: 4px;
  color: var(--text-secondary);
}

/* Tablet / Desktop 반응형은 clamp()로 통합 처리됨 */

/* ========================================
   Responsive - Mobile (~ 767px)
   ======================================== */
@media (max-width: 767px) {
  .auth-card {
    max-width: 100%;
    border-radius: var(--radius-sm);
  }

  .auth-page::before {
    top: -60px;
    right: -60px;
  }

  .auth-page::after {
    bottom: -40px;
    left: -40px;
  }

  .toast-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }
}

/* Small Mobile 반응형은 clamp()로 통합 처리됨 */

/* ========================================
   Loading Spinner
   ======================================== */
.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.loading-overlay--full {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.loading-overlay--local {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: inherit;
}

[data-theme="dark"] .loading-overlay--local {
  background: rgba(0, 0, 0, 0.4);
}

.loading-spinner {
  width: clamp(28px, 1.8rem + 1vw, 40px);
  height: clamp(28px, 1.8rem + 1vw, 40px);
  border: 3px solid var(--border);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
}

.modal {
  display: flex;
  flex-direction: column;
  width: clamp(360px, 50vw, 640px);
  max-height: 85vh;
  background: var(--content-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: background var(--transition);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 0.8rem + 0.5vw, 20px) clamp(16px, 1rem + 0.5vw, 24px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal__title {
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.1rem);
  font-weight: 700;
  color: var(--text-primary);
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__body {
  padding: clamp(16px, 1rem + 0.5vw, 24px);
  overflow-y: auto;
  flex: 1;
}

/* Grid detail button */
.grid-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.grid-detail-btn:hover {
  background: rgba(108, 92, 231, 0.1);
  color: var(--brand-primary);
}

.grid-detail-btn svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   Confirm Dialog
   ======================================== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3000;
  animation: confirmFadeIn 0.15s ease;
}

@keyframes confirmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confirm {
  background: var(--content-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 360px;
  padding: clamp(12px, 1.5rem + 1vw, 20px);
  animation: confirmSlideIn 0.2s ease;
  transition: background var(--transition);
}

@keyframes confirmSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm__message {
  font-size: clamp(0.9rem, 0.85rem + 0.15vw, 0.95rem);
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: clamp(20px, 1rem + 0.5vw, 28px);
}

.confirm__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.confirm__btn {
  padding: clamp(6px, 0.35rem + 0.15vw, 8px) clamp(12px, 0.7rem + 0.3vw, 16px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.88rem);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.confirm__btn--cancel {
  background: var(--hover-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.confirm__btn--cancel:hover {
  background: var(--border);
  color: var(--text-primary);
}

.confirm__btn--confirm {
  background: var(--brand-primary);
  color: #fff;
}

.confirm__btn--confirm:hover {
  background: var(--brand-dark);
}

.confirm__btn--danger {
  background: var(--error);
  color: #fff;
}

.confirm__btn--danger:hover {
  background: #d35400;
}

@media (max-width: 767px) {
  .confirm {
    max-width: calc(100vw - 32px);
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: clamp(8px, 0.4rem + 0.3vw, 8px);
  text-align: center;
  font-size: clamp(0.68rem, 0.63rem + 0.12vw, 0.72rem);
  color: var(--text-placeholder);
  transition: color var(--transition);
}

/* Footer inside layout (dashboard, task, etc.) */
.layout__footer {
  flex-shrink: 0;
  background: var(--content-bg);
  border-top: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

/* Footer inside auth pages */
.auth-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   Common Layout
   ======================================== */
/* Layout */
.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--layout-bg);
  transition: background var(--transition);
}

.layout__body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.layout__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.layout__content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  overflow-y: auto;
  background: var(--content-bg);
  transition: background var(--transition);
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Header hamburger - 모바일 전용 */
.header__hamburger {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.header__hamburger:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.header__hamburger svg {
  width: 20px;
  height: 20px;
}

.header__logo img {
  height: clamp(16px, 2.5vw, 22px);
  width: auto;
  display: block;
}

.header__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  transition: color var(--transition);
}

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

.header__user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.header__user:hover {
  background: var(--hover-bg);
}

.header__user-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.header__user--open .header__user-arrow {
  transform: rotate(180deg);
}

.header__user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  z-index: 100;
  background: var(--header-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 4px 0;
  animation: selectFadeIn 0.15s ease;
}

[data-theme="dark"] .header__user-dropdown {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header__user-dropdown {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

.header__user--open .header__user-dropdown {
  display: block;
}

.header__user-dropdown-item {
  display: block;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  width: 100%;
  text-align: left;
}

.header__user-dropdown-item:hover {
  background: var(--hover-bg);
}

.header__user-dropdown-item--logout {
  color: var(--error);
}

.header__user-dropdown-item--logout:hover {
  background: rgba(225, 112, 85, 0.08);
}

.header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--point));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
}

.header__btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.header__btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.header__theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.header__theme-toggle:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.header__theme-toggle svg {
  width: 18px;
  height: 18px;
}

.header__theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .header__theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .header__theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header__theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme="light"]) .header__theme-toggle .icon-sun {
    display: block;
  }
}

/* Sidebar Nav */
.sidebar {
  width: 64px;
  flex-shrink: 0;
  position: relative;
  z-index: 50;
}

.sidebar__inner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 64px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width var(--transition), background var(--transition), border-color var(--transition);
}

/* Toggle button (hamburger / X) */
.sidebar__toggle-wrap {
  padding: 12px 0;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  border-bottom: 1px solid var(--sidebar-border);
  transition: justify-content var(--transition);
}

.sidebar__toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-text);
  transition: all var(--transition);
}

.sidebar__toggle:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}

.sidebar__toggle svg {
  width: 20px;
  height: 20px;
}

/* Icon swap: default = hamburger visible, close hidden */
.sidebar__toggle .icon-close {
  display: none;
}

/* Expanded: show X, hide hamburger */
.sidebar--expanded .sidebar__toggle .icon-hamburger {
  display: none;
}

.sidebar--expanded .sidebar__toggle .icon-close {
  display: block;
}

/* --- Collapsed (default) --- */
.sidebar__section {
  padding: 8px;
}

.sidebar__section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sidebar-section-title);
  padding: 0 12px;
  margin-bottom: 8px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity var(--transition), color var(--transition);
}

.sidebar__menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__item {
  position: relative;
}

.sidebar__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sidebar-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.sidebar__item a span {
  display: none;
}

/* Sidebar Tooltip */
.sidebar-tooltip {
  position: fixed;
  padding: 6px 12px;
  background: #2d3436;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
  margin-left: 5px;
}

.sidebar-tooltip--visible {
  opacity: 1;
}

.sidebar__item a:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}

.sidebar__item--active a {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.sidebar__item--active a svg {
  color: var(--sidebar-active-text);
}

.sidebar__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Expanded --- */
.sidebar--expanded .sidebar__inner {
  width: 240px;
}

.sidebar--expanded .sidebar__toggle-wrap {
  justify-content: center;
  padding: 12px 12px;
}

.sidebar--expanded .sidebar__section {
  padding: 8px 12px;
}

.sidebar--expanded .sidebar__section-title {
  opacity: 1;
  height: auto;
  margin-bottom: 8px;
}

.sidebar--expanded .sidebar__item a {
  justify-content: flex-start;
  padding: 9px 12px;
}

.sidebar--expanded .sidebar__item a span {
  display: inline;
}

/* Overlay (클릭 시 닫기용) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.sidebar--expanded .sidebar-overlay {
  display: block;
}


/* ========================================
   Content Area
   ======================================== */
.content-header {
  margin-bottom: 14px;
}

.content-header__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition);
}

.content-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-header__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
  transition: color var(--transition);
}

/* ========================================
   Custom Select
   ======================================== */
.custom-select {
  position: relative;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4px, 0.25rem + 0.1vw, 6px);
  width: 100%;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}

.custom-select__text {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__arrow {
  width: clamp(12px, 0.75rem + 0.15vw, 14px);
  height: clamp(12px, 0.75rem + 0.15vw, 14px);
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.custom-select--open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  z-index: 100;
  background: var(--header-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

[data-theme="dark"] .custom-select__dropdown {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .custom-select__dropdown {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

.custom-select--open .custom-select__dropdown {
  display: block;
  animation: selectFadeIn 0.15s ease;
}

@keyframes selectFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select__option {
  padding: clamp(7px, 0.4rem + 0.2vw, 10px) clamp(10px, 0.6rem + 0.3vw, 14px);
  font-size: clamp(0.78rem, 0.73rem + 0.15vw, 0.88rem);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__option:hover {
  background: var(--hover-bg);
}

.custom-select__option--active {
  color: var(--brand-primary);
  font-weight: 600;
  background: rgba(108, 92, 231, 0.06);
}

.custom-select__dropdown::-webkit-scrollbar {
  width: 4px;
}

.custom-select__dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select__dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ========================================
   Search Toolbar
   ======================================== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 0.6rem + 0.5vw, 18px);
  margin-bottom: clamp(8px, 0.5rem + 0.5vw, 14px);
  flex-shrink: 0;
}

.toolbar__search {
  display: flex;
  align-items: stretch;
  flex: 1;
  max-width: 600px;
  gap: 0;
}

.toolbar__search-field {
  flex-shrink: 0;
  width: clamp(80px, 5rem + 1vw, 110px);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--content-bg);
  transition: border-color var(--transition), background var(--transition);
}

.toolbar__search-field .custom-select__trigger {
  padding: clamp(6px, 0.38rem + 0.2vw, 9px) clamp(6px, 0.4rem + 0.2vw, 8px) clamp(6px, 0.38rem + 0.2vw, 9px) clamp(8px, 0.5rem + 0.3vw, 14px);
  font-size: clamp(0.78rem, 0.73rem + 0.15vw, 0.88rem);
  font-weight: 600;
  color: var(--text-primary);
}

.toolbar__search-field.custom-select--open {
  border-color: var(--border-focus, var(--point));
}

.toolbar__search-value {
  position: relative;
  flex: 1;
  min-width: 0;
}

.toolbar__search-icon {
  position: absolute;
  left: clamp(8px, 0.5rem + 0.3vw, 14px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(14px, 0.85rem + 0.2vw, 18px);
  height: clamp(14px, 0.85rem + 0.2vw, 18px);
  color: var(--text-placeholder);
  pointer-events: none;
}

.toolbar__search-input {
  width: 100%;
  padding: clamp(6px, 0.38rem + 0.2vw, 9px) clamp(10px, 0.6rem + 0.3vw, 16px) clamp(6px, 0.38rem + 0.2vw, 9px) clamp(28px, 1.7rem + 0.5vw, 40px);
  border: 1.5px solid var(--border);
  border-radius: 0;
  font-size: clamp(0.8rem, 0.75rem + 0.15vw, 0.92rem);
  color: var(--text-primary);
  background: var(--input-bg, transparent);
  transition: border-color var(--transition), box-shadow var(--transition),
  background var(--transition), color var(--transition);
}

.toolbar__search-input::placeholder {
  color: var(--text-placeholder);
}

.toolbar__search-input:focus {
  outline: none;
  border-color: var(--border-focus, var(--point));
  box-shadow: 0 0 0 3px rgba(162, 155, 254, 0.2);
}

.toolbar__search-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 0;
  background: var(--input-bg, transparent);
  transition: border-color var(--transition), box-shadow var(--transition),
  background var(--transition);
}

.toolbar__search-select .custom-select__trigger {
  padding: clamp(6px, 0.38rem + 0.2vw, 9px) clamp(6px, 0.4rem + 0.2vw, 8px) clamp(6px, 0.38rem + 0.2vw, 9px) clamp(10px, 0.6rem + 0.3vw, 16px);
  font-size: clamp(0.8rem, 0.75rem + 0.15vw, 0.92rem);
  color: var(--text-primary);
}

.toolbar__search-select.custom-select--open {
  border-color: var(--border-focus, var(--point));
  box-shadow: 0 0 0 3px rgba(162, 155, 254, 0.2);
}

/* Search / Reset buttons */
.toolbar__search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.15rem + 0.1vw, 5px);
  padding: 0 clamp(8px, 0.5rem + 0.3vw, 14px);
  border: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0;
  font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.85rem);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  background: var(--content-bg);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.toolbar__search-btn svg {
  width: clamp(12px, 0.75rem + 0.2vw, 16px);
  height: clamp(12px, 0.75rem + 0.2vw, 16px);
}

.toolbar__search-btn--search {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.toolbar__search-btn--search:hover {
  background: var(--point);
  border-color: var(--point);
}

.toolbar__search-btn--reset {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.toolbar__search-btn--reset:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.toolbar__actions {
  display: flex;
  gap: clamp(6px, 0.35rem + 0.2vw, 10px);
  flex-shrink: 0;
}

.toolbar__btn {
  width: auto;
  padding: clamp(6px, 0.38rem + 0.2vw, 9px) clamp(12px, 0.7rem + 0.5vw, 20px);
  font-size: clamp(0.78rem, 0.73rem + 0.15vw, 0.88rem);
  gap: clamp(4px, 0.25rem + 0.15vw, 8px);
}

.toolbar__btn svg {
  width: clamp(14px, 0.85rem + 0.2vw, 18px);
  height: clamp(14px, 0.85rem + 0.2vw, 18px);
}

.toolbar__btn--danger {
  color: var(--error);
  border-color: var(--error);
  border: 1px solid var(--error);
}

.toolbar__btn--danger:hover:not(:disabled) {
  color: #d94444;
  border-color: #d94444;
}

.toolbar__btn--danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* ========================================
   Datepicker
   ======================================== */
.detail-setting__expire-wrap {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.5rem + 0.2vw, 12px);
}

.detail-setting__expire-view,
.detail-setting__expire-edit {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.5rem + 0.2vw, 12px);
}

.detail-setting__expire-date {
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.9rem);
  color: var(--text-primary);
  white-space: nowrap;
}

.detail-setting__expire-dday {
  font-size: clamp(0.72rem, 0.68rem + 0.1vw, 0.78rem);
  font-weight: 600;
  color: var(--brand-primary);
  white-space: nowrap;
}

.detail-setting__expire-edit-btn,
.detail-setting__expire-cancel-btn,
.detail-setting__expire-reset-btn {
  padding: clamp(3px, 0.2rem + 0.1vw, 5px) clamp(8px, 0.5rem + 0.2vw, 10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: clamp(0.7rem, 0.66rem + 0.1vw, 0.75rem);
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.detail-setting__expire-edit-btn {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.detail-setting__expire-edit-btn:hover {
  background: rgba(108, 92, 231, 0.08);
}

.detail-setting__expire-cancel-btn,
.detail-setting__expire-reset-btn {
  color: var(--text-secondary);
}

.detail-setting__expire-cancel-btn:hover,
.detail-setting__expire-reset-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.datepicker {
  position: relative;
}

.datepicker__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: clamp(6px, 0.35rem + 0.15vw, 8px) clamp(10px, 0.6rem + 0.3vw, 14px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.datepicker__trigger:hover {
  border-color: var(--border-focus);
}

.datepicker--open .datepicker__trigger {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(162, 155, 254, 0.2);
}

.datepicker__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.datepicker__value {
  font-size: clamp(0.8rem, 0.75rem + 0.12vw, 0.88rem);
  font-weight: 500;
  white-space: nowrap;
}

.datepicker__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 100;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 14px;
  box-sizing: border-box;
  animation: datepickerFadeIn 0.15s ease;
}

.datepicker--open .datepicker__dropdown {
  display: block;
}

@keyframes datepickerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.datepicker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.datepicker__month-year {
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.9rem);
  font-weight: 700;
  color: var(--text-primary);
}

.datepicker__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.datepicker__nav:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.datepicker__nav svg {
  width: 16px;
  height: 16px;
}

.datepicker__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}

.datepicker__weekdays span {
  font-size: clamp(0.68rem, 0.64rem + 0.1vw, 0.72rem);
  font-weight: 700;
  color: var(--text-placeholder);
  padding: 4px 0;
}

.datepicker__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.datepicker__day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: clamp(0.75rem, 0.7rem + 0.1vw, 0.82rem);
  font-weight: 500;
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
}

.datepicker__day:not(.datepicker__day--disabled):not(.datepicker__day--empty):not(.datepicker__day--selected):hover {
  background: var(--hover-bg);
}

.datepicker__day--empty {
  cursor: default;
}

.datepicker__day--disabled {
  color: var(--text-placeholder);
  opacity: 0.4;
  cursor: not-allowed;
}

.datepicker__day--today {
  border: 1.5px solid var(--brand-primary);
  font-weight: 700;
}

.datepicker__day--selected {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}

.datepicker__day--selected.datepicker__day--today {
  border-color: var(--brand-primary);
}


/* table section */
.table-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.grid-section {
  flex: 9;
}

.pagination-section {
  flex: 1;
}

.tui-grid-layer-selection {
  background-color: #d5ddfd !important;
}

.tui-grid-layer-selection {
  display: none !important;
}

.tui-grid-cell-current-row {
  background: inherit !important;
}

.tui-grid-layer-focus-border {
  display: none !important;
}

.grid tr:hover .tui-grid-cell:not(.tui-grid-cell-header):not(.tui-grid-cell-invalid),
.grid tr:hover .tui-grid-cell-selected:not(.tui-grid-cell-header):not(.tui-grid-cell-invalid),
.grid tr:hover .tui-grid-cell-current-row:not(.tui-grid-cell-header):not(.tui-grid-cell-invalid),
.grid tr:hover .tui-grid-cell:not(.tui-grid-cell-header):not(.tui-grid-cell-invalid),
.grid tr:hover .tui-grid-cell-selected:not(.tui-grid-cell-header):not(.tui-grid-cell-invalid),
.grid tr:hover .tui-grid-cell-current-row:not(.tui-grid-cell-header):not(.tui-grid-cell-invalid) {
  background-color: var(--content-bg) !important;
}

.grid .tui-grid-cell,
.grid .tui-grid-cell {
  cursor: default;
}

/* ---- TUI Grid Dark Theme ---- */
[data-theme="dark"] .tui-grid-container {
  color: #e8e8e8;
}

[data-theme="dark"] .tui-grid-border-line {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-border-line-top {
  border-top: none !important;
}

[data-theme="dark"] .tui-grid-scrollbar-y-outer-border {
  background-color: transparent !important;
}

[data-theme="dark"] .tui-grid-header-area {
  background-color: #22222e !important;
}

[data-theme="dark"] .tui-grid-cell-header {
  background-color: #22222e !important;
  color: #a0a0b0 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-cell {
  background-color: #1a1a24 !important;
  color: #e8e8e8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-cell-header.tui-grid-cell-selected {
  background-color: #2a2a3a !important;
}

[data-theme="dark"] .tui-grid-body-area {
  background-color: #1a1a24 !important;
}

[data-theme="dark"] .tui-grid-layer-state {
  background: #1a1a24 !important;
}

[data-theme="dark"] .tui-grid-layer-state p {
  color: #606070 !important;
}

[data-theme="dark"] .tui-grid-content-area {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-header-area {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-header-area .tui-grid-table {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-frozen-border {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-scrollbar-frozen-border {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-column-resize-handle {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background-color: #22222e !important;
}

[data-theme="dark"] .tui-grid-summary-area {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background-color: #22222e !important;
}

[data-theme="dark"] .tui-grid-scrollbar-y-inner-border,
[data-theme="dark"] .tui-grid-scrollbar-x-inner-border,
[data-theme="dark"] .tui-grid-scrollbar-right-top,
[data-theme="dark"] .tui-grid-scrollbar-left-bottom,
[data-theme="dark"] .tui-grid-scrollbar-right-bottom {
  background-color: #1a1a24 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .tui-grid-container ::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .tui-grid-container ::-webkit-scrollbar-track {
  background-color: #1a1a24 !important;
}

[data-theme="dark"] .tui-grid-layer-editing input,
[data-theme="dark"] .tui-grid-layer-editing textarea {
  background-color: #22222e !important;
  color: #e8e8e8 !important;
  border-color: var(--brand-primary) !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tui-grid-container { color: #e8e8e8; }
  :root:not([data-theme="light"]) .tui-grid-border-line { background-color: rgba(255, 255, 255, 0.12) !important; border-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-border-line-top { border-top: none !important; }
  :root:not([data-theme="light"]) .tui-grid-scrollbar-y-outer-border { background-color: transparent !important; }
  :root:not([data-theme="light"]) .tui-grid-header-area { background-color: #22222e !important; }
  :root:not([data-theme="light"]) .tui-grid-cell-header { background-color: #22222e !important; color: #a0a0b0 !important; border-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-cell { background-color: #1a1a24 !important; color: #e8e8e8 !important; border-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-cell-header.tui-grid-cell-selected { background-color: #2a2a3a !important; }
  :root:not([data-theme="light"]) .tui-grid-body-area { background-color: #1a1a24 !important; }
  :root:not([data-theme="light"]) .tui-grid-layer-state { background: #1a1a24 !important; }
  :root:not([data-theme="light"]) .tui-grid-layer-state p { color: #606070 !important; }
  :root:not([data-theme="light"]) .tui-grid-content-area { border-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-header-area { border-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-header-area .tui-grid-table { border-top-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-frozen-border { background-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-scrollbar-frozen-border { background-color: transparent !important; border-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-column-resize-handle { border-color: rgba(255, 255, 255, 0.12) !important; background-color: #22222e !important; }
  :root:not([data-theme="light"]) .tui-grid-summary-area { border-color: rgba(255, 255, 255, 0.12) !important; background-color: #22222e !important; }
  :root:not([data-theme="light"]) .tui-grid-scrollbar-y-inner-border,
  :root:not([data-theme="light"]) .tui-grid-scrollbar-x-inner-border,
  :root:not([data-theme="light"]) .tui-grid-scrollbar-right-top,
  :root:not([data-theme="light"]) .tui-grid-scrollbar-left-bottom,
  :root:not([data-theme="light"]) .tui-grid-scrollbar-right-bottom { background-color: #1a1a24 !important; border-color: rgba(255, 255, 255, 0.12) !important; }
  :root:not([data-theme="light"]) .tui-grid-container ::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.15) !important; }
  :root:not([data-theme="light"]) .tui-grid-container ::-webkit-scrollbar-track { background-color: #1a1a24 !important; }
  :root:not([data-theme="light"]) .tui-grid-layer-editing input,
  :root:not([data-theme="light"]) .tui-grid-layer-editing textarea { background-color: #22222e !important; color: #e8e8e8 !important; border-color: var(--brand-primary) !important; }
}

/* ---- TUI Pagination Dark Theme ---- */
[data-theme="dark"] .tui-pagination .tui-page-btn {
  color: #a0a0b0;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .tui-pagination .tui-page-btn:hover:not(.tui-is-selected):not(.tui-is-disabled) {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .tui-pagination .tui-is-selected,
[data-theme="dark"] .tui-pagination strong {
  color: #fff;
  background: #6C5CE7;
  border-color: #6C5CE7;
}

[data-theme="dark"] .tui-pagination .tui-is-selected:hover {
  background-color: #6C5CE7;
}

[data-theme="dark"] .tui-pagination .tui-first-child,
[data-theme="dark"] .tui-pagination .tui-prev-is-ellip {
  border-left-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .tui-pagination .tui-last-child,
[data-theme="dark"] .tui-pagination .tui-next-is-ellip {
  border-right-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .tui-pagination .tui-first,
[data-theme="dark"] .tui-pagination .tui-prev,
[data-theme="dark"] .tui-pagination .tui-next,
[data-theme="dark"] .tui-pagination .tui-last,
[data-theme="dark"] .tui-pagination .tui-prev-is-ellip,
[data-theme="dark"] .tui-pagination .tui-next-is-ellip {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .tui-pagination .tui-ico-first,
[data-theme="dark"] .tui-pagination .tui-ico-prev,
[data-theme="dark"] .tui-pagination .tui-ico-next,
[data-theme="dark"] .tui-pagination .tui-ico-last,
[data-theme="dark"] .tui-pagination .tui-ico-ellip {
  filter: invert(0.7);
}

[data-theme="dark"] .tui-pagination .tui-first:hover:not(.tui-is-disabled),
[data-theme="dark"] .tui-pagination .tui-prev:hover:not(.tui-is-disabled),
[data-theme="dark"] .tui-pagination .tui-next:hover:not(.tui-is-disabled),
[data-theme="dark"] .tui-pagination .tui-last:hover:not(.tui-is-disabled) {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .tui-pagination .tui-is-disabled:hover {
  background: transparent !important;
}

[data-theme="dark"] .tui-page-inputs .tui-page-input {
  color: #a0a0b0;
}

[data-theme="dark"] .tui-page-inputs .tui-page-current {
  color: #6C5CE7;
}

[data-theme="dark"] .tui-page-separator {
  color: #606070;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tui-pagination .tui-page-btn { color: #a0a0b0; border-color: rgba(255, 255, 255, 0.12); }
  :root:not([data-theme="light"]) .tui-pagination .tui-page-btn:hover:not(.tui-is-selected):not(.tui-is-disabled) { background-color: rgba(255, 255, 255, 0.06) !important; }
  :root:not([data-theme="light"]) .tui-pagination .tui-is-selected,
  :root:not([data-theme="light"]) .tui-pagination strong { color: #fff; background: #6C5CE7; border-color: #6C5CE7; }
  :root:not([data-theme="light"]) .tui-pagination .tui-is-selected:hover { background-color: #6C5CE7; }
  :root:not([data-theme="light"]) .tui-pagination .tui-first-child,
  :root:not([data-theme="light"]) .tui-pagination .tui-prev-is-ellip { border-left-color: rgba(255, 255, 255, 0.12); }
  :root:not([data-theme="light"]) .tui-pagination .tui-last-child,
  :root:not([data-theme="light"]) .tui-pagination .tui-next-is-ellip { border-right-color: rgba(255, 255, 255, 0.12); }
  :root:not([data-theme="light"]) .tui-pagination .tui-first,
  :root:not([data-theme="light"]) .tui-pagination .tui-prev,
  :root:not([data-theme="light"]) .tui-pagination .tui-next,
  :root:not([data-theme="light"]) .tui-pagination .tui-last,
  :root:not([data-theme="light"]) .tui-pagination .tui-prev-is-ellip,
  :root:not([data-theme="light"]) .tui-pagination .tui-next-is-ellip { border-color: rgba(255, 255, 255, 0.12); }
  :root:not([data-theme="light"]) .tui-pagination .tui-ico-first,
  :root:not([data-theme="light"]) .tui-pagination .tui-ico-prev,
  :root:not([data-theme="light"]) .tui-pagination .tui-ico-next,
  :root:not([data-theme="light"]) .tui-pagination .tui-ico-last,
  :root:not([data-theme="light"]) .tui-pagination .tui-ico-ellip { filter: invert(0.7); }
  :root:not([data-theme="light"]) .tui-pagination .tui-first:hover:not(.tui-is-disabled),
  :root:not([data-theme="light"]) .tui-pagination .tui-prev:hover:not(.tui-is-disabled),
  :root:not([data-theme="light"]) .tui-pagination .tui-next:hover:not(.tui-is-disabled),
  :root:not([data-theme="light"]) .tui-pagination .tui-last:hover:not(.tui-is-disabled) { background-color: rgba(255, 255, 255, 0.06) !important; }
  :root:not([data-theme="light"]) .tui-pagination .tui-is-disabled:hover { background: transparent !important; }
  :root:not([data-theme="light"]) .tui-page-inputs .tui-page-input { color: #a0a0b0; }
  :root:not([data-theme="light"]) .tui-page-inputs .tui-page-current { color: #6C5CE7; }
  :root:not([data-theme="light"]) .tui-page-separator { color: #606070; }
}

/* ========================================
   Status badge
   ======================================== */
.status-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.badge {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.badge.pending, .badge.creating {
  background: #e67e22;
}
.status.pending, .status.creating {
  color: #e67e22;
}

.badge.fully_approved, .badge.partially_approved, .badge.running, .badge.y {
  background: #00b894;
}
.status.fully_approved, .status.partially_approved, .status.running, .status.y {
  color: #00b894;
}

.badge.rejected, .badge.failed, .badge.deploy_failed, .badge.n {
  background: #EB5757;
}
.status.rejected, .status.failed, .status.deploy_failed, .status.n {
  color: #EB5757;
}

.badge.terminating {
  background: #b2bec3;
}
.status.terminating {
  color: #b2bec3;
}

.badge.terminated {
  background: #636e72;
}
.status.terminated {
  color: #636e72;
}

.status-info-icon {
  width: 16px;
  height: 16px;
}

/* ========================================
   Responsive - Tablet (768px ~ 1024px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .layout__content {
    padding: 24px;
  }

  .header {
    padding: 0 20px;
  }

  .header__right {
    gap: 10px;
  }

  .content-header__title {
    font-size: 1.2rem;
  }
}

/* ========================================
   Responsive - Mobile (~ 767px)
   ======================================== */
@media (max-width: 767px) {
  .header {
    height: 50px;
    padding: 0 16px;
  }

  .header__hamburger {
    display: flex;
  }

  .header__left {
    gap: 10px;
  }

  .header__title {
    font-size: 0.95rem;
  }

  .header__right {
    gap: 8px;
  }

  .header__user span {
    display: none;
  }

  .header__user-arrow {
    display: none;
  }

  .header__user-dropdown {
    right: auto;
    left: -80px;
  }

  .header__theme-toggle {
    width: 30px;
    height: 30px;
  }

  .header__theme-toggle svg {
    width: 16px;
    height: 16px;
  }

  /* Sidebar: 아이콘바 숨기고 오버레이만 */
  .sidebar {
    width: 0;
  }

  .sidebar__inner {
    width: 0;
    border-right: none;
  }

  .sidebar--expanded .sidebar__inner {
    width: 240px;
    border-right: 1px solid var(--sidebar-border);
  }

  .layout__content {
    padding: 20px 16px;
  }

  .content-header__title {
    font-size: 1.1rem;
  }
}

/* ========================================
   Responsive - Small Mobile (~ 360px)
   ======================================== */
@media (max-width: 360px) {
  .header {
    padding: 0 12px;
  }

  .header__title {
    font-size: 0.85rem;
  }

  .layout__content {
    padding: 16px 12px;
  }

  .content-header__title {
    font-size: 1rem;
  }
}

/* ========================================
   Mypage Modal
   ======================================== */
.mypage-modal-form {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 0.7rem + 0.3vw, 16px);
}

.mypage-modal-row {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 0.5rem + 0.3vw, 12px);
}

.mypage-modal-label {
  font-size: clamp(0.78rem, 0.74rem + 0.12vw, 0.85rem);
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 70px;
}

.mypage-modal-value {
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.9rem);
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.mypage-modal-input {
  width: 100%;
  padding: clamp(6px, 0.35rem + 0.15vw, 8px) clamp(8px, 0.5rem + 0.2vw, 10px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.9rem);
  color: var(--text-primary);
  background: var(--input-bg);
  transition: border-color var(--transition);
}

.mypage-modal-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* Name field */
.mypage-modal-name {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.25rem + 0.1vw, 6px);
}

.mypage-modal-name__field {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.4rem + 0.15vw, 8px);
}

.mypage-modal-name__field .mypage-modal-input {
  flex: 1;
}

.mypage-modal-name__save-btn,
.mypage-modal-name__cancel-btn {
  padding: clamp(6px, 0.35rem + 0.15vw, 8px) clamp(10px, 0.6rem + 0.2vw, 14px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.72rem, 0.68rem + 0.1vw, 0.78rem);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.mypage-modal-name__save-btn {
  background: var(--brand-primary);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
}

.mypage-modal-name__save-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mypage-modal-name__save-btn:hover:not(:disabled) {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.mypage-modal-name__cancel-btn {
  background: var(--content-bg);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.mypage-modal-name__cancel-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.mypage-modal-name__message {
  font-size: clamp(0.72rem, 0.68rem + 0.1vw, 0.78rem);
  font-weight: 500;
  margin-top: 2px;
}

.mypage-modal-name__message--success {
  color: var(--status-active, #27ae60);
}

.mypage-modal-name__message--error {
  color: var(--status-error, #e74c3c);
}

/* Password accordion */
.mypage-modal-pw-accordion {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease, overflow 0s 0.3s;
}

.mypage-modal-pw-accordion--open {
  overflow: auto;
  transition: height 0.3s ease, overflow 0s 0s;
}

.mypage-modal-pw-accordion__body {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 0.7rem + 0.3vw, 16px);
  padding: 0 clamp(10px, 0.6rem + 0.3vw, 14px) clamp(10px, 0.6rem + 0.3vw, 14px);
  border-top: 1px solid var(--border);
  padding-top: clamp(12px, 0.7rem + 0.3vw, 16px);
}

.mypage-modal-pw-accordion__body .form-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(8px, 0.5rem + 0.3vw, 12px);
  margin-bottom: 0;
}

.mypage-modal-pw-accordion__body .form-group__label {
  flex-shrink: 0;
  width: 80px;
  margin-bottom: 0;
  font-size: clamp(0.78rem, 0.74rem + 0.12vw, 0.85rem);
}

.mypage-modal-pw-accordion__body .input-wrapper {
  flex: 1;
  min-width: 0;
}

.mypage-modal-pw-accordion__body .input-wrapper__field {
  padding: clamp(6px, 0.35rem + 0.15vw, 8px) clamp(8px, 0.5rem + 0.2vw, 10px);
  padding-right: 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.9rem);
  color: var(--text-primary);
  background: var(--input-bg);
}

.mypage-modal-pw-accordion__body .input-wrapper__field:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: none;
}

.mypage-modal-pw-accordion__body .input-wrapper__toggle svg {
  width: clamp(14px, 0.8rem + 0.2vw, 16px);
  height: clamp(14px, 0.8rem + 0.2vw, 16px);
}

.mypage-modal-pw-accordion__body .input-wrapper__toggle {
  right: 8px;
}

.mypage-modal-pw-accordion__body .form-group__error {
  width: 100%;
  margin-top: -4px;
  margin-left: calc(80px + clamp(8px, 0.5rem + 0.3vw, 12px));
}

/* Password rules */
.password-rules {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--rules-bg);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.password-rules__title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.password-rules__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.password-rules__list li::before {
  content: '\2022';
  margin-right: 6px;
  color: var(--text-placeholder);
}

.password-rules__list li.valid::before {
  content: '\2713';
  color: var(--success);
}

.mypage-modal-pw-accordion__body .password-rules {
  width: 100%;
  margin: 0 0 0 calc(80px + clamp(8px, 0.5rem + 0.3vw, 12px));
}

/* Password change box */
.mypage-modal-pw-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  margin-top: 14px;
}


.mypage-modal-pw-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8px, 0.5rem + 0.2vw, 10px) clamp(10px, 0.6rem + 0.3vw, 14px);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.mypage-modal-pw-box__header:hover {
  background: var(--hover-bg);
}

.mypage-modal-pw-box__title {
  font-size: clamp(0.78rem, 0.74rem + 0.12vw, 0.85rem);
  font-weight: 600;
  color: var(--text-primary);
}

.mypage-modal-pw-box__chevron {
  width: clamp(14px, 0.8rem + 0.2vw, 16px);
  height: clamp(14px, 0.8rem + 0.2vw, 16px);
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mypage-modal-pw-box--open .mypage-modal-pw-box__chevron {
  transform: rotate(180deg);
}

.mypage-modal-pw-box__actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: clamp(4px, 0.3rem + 0.1vw, 8px);
}

.mypage-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: clamp(4px, 0.3rem + 0.2vw, 8px);
}

.mypage-modal-actions__btn {
  padding: clamp(8px, 0.5rem + 0.2vw, 10px) clamp(20px, 1.2rem + 0.5vw, 28px);
  border-radius: var(--radius-sm);
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.9rem);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.mypage-modal-actions__btn--cancel {
  background: var(--content-bg);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.mypage-modal-actions__btn--cancel:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.mypage-modal-actions__btn--save {
  background: var(--brand-primary);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
}

.mypage-modal-actions__btn--save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mypage-modal-actions__btn--save:hover:not(:disabled) {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}