:root {
  --wehago-navy: #0f172a;
  --wehago-header: #131c31;
  --wehago-blue: #1c90fb;
  --wehago-blue-dark: #0b6bcb;
  --wehago-blue-soft: #eef6ff;
  --wehago-bg: #f1f5f9;
  --wehago-surface: #ffffff;
  --wehago-border: #dbe3ee;
  --wehago-border-strong: #cbd5e1;
  --wehago-text: #0f172a;
  --wehago-muted: #64748b;
  --wehago-dr: #1d4ed8;
  --wehago-cr: #e11d48;
  --wehago-green: #059669;
  --wehago-amber: #d97706;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Pretendard", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--wehago-bg);
  color: var(--wehago-text);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* =========================================================================
   1. AUTH OVERLAY
   ========================================================================= */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #1e3a8a 0%, #0f172a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

/* =========================================================================
   2. UNIFIED WEHAGO T / SMART A 10 TOP HEADER (Single Bar)
   ========================================================================= */
#appShell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.wehago-top-header {
  height: 50px;
  min-height: 50px;
  background: var(--wehago-header);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #1e293b;
  gap: 10px;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wehago-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.wehago-logo-pill {
  background: linear-gradient(135deg, #1c90fb 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.wehago-logo-sub {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.active-client-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.active-client-bar select {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 4px;
  outline: none;
  cursor: pointer;
}

.active-client-bar select option {
  color: #0f172a;
  background: #ffffff;
}

/* Searchable Header Client Dropdown Combobox */
.header-client-combo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-client-trigger {
  background: rgba(15, 23, 42, 0.65);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 225px;
  transition: all 0.15s;
}

.header-client-trigger:hover {
  border-color: #38bdf8;
  background: rgba(28, 144, 251, 0.2);
}

.header-client-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 420px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.32);
  z-index: 600;
  overflow: hidden;
}

.hcd-search-wrap {
  padding: 9px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.hcd-search-wrap input {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid #3b82f6;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

.hcd-filter-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.hcd-filter-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.hcd-filter-pill.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.hcd-list {
  max-height: 310px;
  overflow-y: auto;
  divide-y: 1px solid #f1f5f9;
}

.hcd-item {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.1s;
}

.hcd-item:hover {
  background: #eff6ff;
}

.hcd-item.active {
  background: #dbeafe;
  border-left: 3px solid #1d4ed8;
}

/* Center Module GNB inside Top Header */
.gnb-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 50px;
}

.gnb-tab {
  height: 50px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  padding: 0 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gnb-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.gnb-tab.active {
  color: #38bdf8;
  border-bottom-color: #1c90fb;
  background: rgba(28, 144, 251, 0.12);
  font-weight: 800;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header-util-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s;
}

.header-util-btn:hover,
.header-util-btn.active {
  background: #1c90fb;
  border-color: #1c90fb;
  color: #ffffff;
}

/* =========================================================================
   3. FIRST PAGE: WEHAGO T CLIENT MANAGEMENT LIST WORKSPACE
   ========================================================================= */
.dashboard-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 110px 18px;
  width: 100%;
  margin: 0 auto;
}

.wehago-client-toolbar {
  background: #ffffff;
  border: 1px solid var(--wehago-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.wct-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wct-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wct-badge {
  background: #1c90fb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
}

.wct-type-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wct-tab {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.12s;
}

.wct-tab.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.wct-cnt {
  background: rgba(15, 23, 42, 0.12);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
}

.wct-tab.active .wct-cnt {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.wct-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  min-width: 300px;
}

.wct-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #94a3b8;
  border-radius: 6px;
  padding: 4px 10px;
  width: 100%;
  max-width: 440px;
}

.wct-search-box:focus-within {
  border-color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.15);
}

.wct-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 12.5px;
  color: #0f172a;
  outline: none;
}

.wct-clear-btn {
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  padding: 0 2px;
}

.wehago-client-table-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 10px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.kpi-box {
  background: #ffffff;
  border: 1px solid var(--wehago-border);
  border-left: 4px solid var(--wehago-blue);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--wehago-muted);
}

.kpi-num {
  font-size: 17px;
  font-weight: 900;
  color: var(--wehago-text);
  margin-top: 2px;
}

/* =========================================================================
   4. SMART A 10 WORKSPACE (LEFT LNB + RIGHT MDI STAGE)
   ========================================================================= */
.smarta-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  height: calc(100vh - 50px);
}

.smarta-lnb {
  width: 256px;
  min-width: 256px;
  background: #ffffff;
  border-right: 1px solid var(--wehago-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 84px;
}

.lnb-module-header {
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--wehago-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 13.5px;
  color: #0f172a;
}

.lnb-search-box {
  padding: 8px 10px;
  border-bottom: 1px solid var(--wehago-border);
  background: #ffffff;
}

.lnb-search-box input {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--wehago-border-strong);
  border-radius: 5px;
  font-size: 12px;
}

.lnb-group-filter-bar {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--wehago-border);
  background: #f8fafc;
}

.lnb-grp-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.lnb-grp-chip.active {
  background: var(--wehago-blue);
  border-color: var(--wehago-blue);
  color: #ffffff;
}

.lnb-tree-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

.lnb-group-block {
  margin-bottom: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.lnb-group-title {
  padding: 7px 10px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.lnb-group-title:hover {
  background: #e2e8f0;
}

.lnb-group-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #1e293b;
  color: #ffffff;
  font-size: 10.5px;
  margin-right: 5px;
}

.lnb-group-cnt {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 700;
}

.lnb-cat-header {
  padding: 4px 10px 2px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #0b6bcb;
  background: #f8fafc;
  border-top: 1px dashed #e2e8f0;
}

.lnb-menu-item {
  width: 100%;
  border: none;
  background: #ffffff;
  text-align: left;
  padding: 6px 10px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-left: 3px solid transparent;
}

.lnb-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.lnb-menu-item.active {
  background: var(--wehago-blue-soft);
  color: #0b6bcb;
  font-weight: 800;
  border-left-color: var(--wehago-blue);
}

.lnb-menu-item code {
  font-size: 10px;
  color: #94a3b8;
  font-family: ui-monospace, Consolas, monospace;
}

/* Right Stage */
.smarta-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--wehago-bg);
}

.mdi-tab-bar {
  height: 36px;
  min-height: 36px;
  background: #e2e8f0;
  display: flex;
  align-items: flex-end;
  padding: 0 10px;
  gap: 3px;
  overflow-x: auto;
  border-bottom: 1px solid #cbd5e1;
}

.mdi-tab {
  height: 31px;
  padding: 0 11px;
  background: #cbd5e1;
  color: #475569;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.mdi-tab.active {
  background: #ffffff;
  color: #0b6bcb;
  font-weight: 800;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.mdi-tab .close-x {
  font-size: 10.5px;
  color: #64748b;
  padding: 1px 3px;
  border-radius: 3px;
}

.mdi-tab .close-x:hover {
  background: #fee2e2;
  color: #dc2626;
}

.wehago-action-toolbar {
  height: 44px;
  min-height: 44px;
  background: #ffffff;
  border-bottom: 1px solid var(--wehago-border);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.screen-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.screen-code-tag {
  background: #0f172a;
  color: #38bdf8;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.stage-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 115px 16px;
}

/* =========================================================================
   5. CARDS, FORMS, BUTTONS, TABLES
   ========================================================================= */
.card {
  background: #ffffff;
  border: 1px solid var(--wehago-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  align-items: end;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-field label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--wehago-border-strong);
  border-radius: 5px;
  font-size: 12.5px;
  color: #0f172a;
  background: #ffffff;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--wehago-blue);
  box-shadow: 0 0 0 2px rgba(28, 144, 251, 0.16);
}

/* WEHAGO Smart A 10 Account Code + Dropdown Dual Selector */
.acct-dual-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.acct-code-box {
  width: 96px !important;
  min-width: 96px;
  text-align: center;
  font-weight: 800;
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border: 1.5px solid #93c5fd !important;
  font-family: ui-monospace, Consolas, monospace;
}

.acct-code-box:focus {
  background: #ffffff !important;
  border-color: #1d4ed8 !important;
}

.acct-select-box {
  flex: 1;
  min-width: 145px;
}

.acct-code-box-sm {
  width: 58px !important;
  min-width: 58px;
  padding: 3px 5px !important;
  text-align: center;
  font-size: 11.5px !important;
  font-weight: 800;
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border: 1px solid #93c5fd !important;
  border-radius: 4px;
  font-family: ui-monospace, Consolas, monospace;
}

.acct-suggest-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  min-width: 280px;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  z-index: 450;
}

.acct-suggest-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  text-align: left;
  padding: 6px 10px;
  font-size: 12px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acct-suggest-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--wehago-blue);
  color: #ffffff;
  border: 1px solid var(--wehago-blue);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s;
}

.btn:hover {
  background: var(--wehago-blue-dark);
  border-color: var(--wehago-blue-dark);
}

.btn-outline {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-outline:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-success {
  background: var(--wehago-green);
  border-color: var(--wehago-green);
  color: #ffffff;
}

.btn-success:hover {
  background: #047857;
  border-color: #047857;
}

.btn-warn {
  background: var(--wehago-amber);
  border-color: var(--wehago-amber);
  color: #ffffff;
}

.btn-warn:hover {
  background: #b45309;
  border-color: #b45309;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.badge-super { background: #fef3c7; color: #92400e; }
.badge-manager { background: #dbeafe; color: #1e40af; }
.badge-agent { background: #d1fae5; color: #065f46; }
.badge-pending { background: #ffe4e6; color: #9f1239; }

.client-launch-btn {
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}
.launch-acc { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.launch-acc:hover { background: #1d4ed8; color: #ffffff; }
.launch-hr { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.launch-hr:hover { background: #047857; color: #ffffff; }
.launch-tax { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.launch-tax:hover { background: #b45309; color: #ffffff; }
.launch-log { background: #f8fafc; color: #475569; border-color: #cbd5e1; }
.launch-log:hover { background: #334155; color: #ffffff; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--wehago-border);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  padding: 7px 9px;
  border-bottom: 1px solid var(--wehago-border-strong);
  border-right: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
}

td {
  padding: 6px 9px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: #1e293b;
}

tr:hover td {
  background: #f8fbff;
}

tfoot td {
  background: #f1f5f9;
  font-weight: 800;
  border-top: 2px solid #cbd5e1;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   6. ALWAYS-ON BOTTOM FLOATING AI PROMPT COMMAND BAR (하단 플로팅 AI 독)
   ========================================================================= */
.floating-ai-container {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1020px, calc(100vw - 32px));
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.floating-ai-container > * {
  pointer-events: auto;
}

.floating-ai-result-drawer {
  background: rgba(24, 25, 29, 0.98);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-height: 190px;
  overflow-y: auto;
}

.floating-ai-chips-drawer {
  background: rgba(28, 29, 34, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #e4e4e7;
}

.floating-ai-chips-drawer strong {
  color: #f4f4f5 !important;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.chip:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

/* Antigravity Prompt Composer Box */
.floating-ai-bar.agy-composer-box {
  background: #1c1d21;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 18px 11px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.floating-ai-bar.agy-composer-box:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(56, 189, 248, 0.28);
}

.agy-composer-input-wrap {
  width: 100%;
  display: flex;
  align-items: stretch;
}

.ai-prompt-input {
  width: 100% !important;
  min-height: 46px;
  max-height: 150px;
  resize: none;
  background: transparent !important;
  color: #f4f4f5 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 2px 2px 6px 2px !important;
  font-size: 14.5px !important;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: none !important;
  outline: none !important;
}

.ai-prompt-input::placeholder {
  color: #71717a;
  font-weight: 400;
}

.ai-prompt-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.agy-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.agy-toolbar-left,
.agy-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agy-plus-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.agy-plus-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}

.agy-ghost-select {
  background: transparent !important;
  color: #a1a1aa !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  padding: 4px 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  width: auto !important;
  max-width: 190px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.agy-ghost-select:hover,
.agy-ghost-select:focus {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #f4f4f5 !important;
  box-shadow: none !important;
}

.agy-ghost-select-model {
  color: #d4d4d8 !important;
  max-width: 210px;
}

.agy-ghost-select option {
  background: #1c1d21;
  color: #f4f4f5;
}

.agy-ghost-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.agy-ghost-pill:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.2);
}

.agy-undo-pill {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(249, 115, 22, 0.1);
}

.agy-undo-pill:hover {
  background: rgba(249, 115, 22, 0.2);
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.5);
}

.agy-admin-pill {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(14, 165, 233, 0.1);
}

.agy-admin-pill:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #bae6fd;
}

.agy-turbo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.agy-turbo-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f4f4f5;
}

.agy-role-notice {
  font-size: 11.5px;
  color: #71717a;
  padding: 3px 8px;
  white-space: nowrap;
}

.agy-send-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #0284c7;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45);
  transition: transform 0.12s ease, background 0.12s ease;
}

.agy-send-circle-btn:hover {
  background: #0ea5e9;
  transform: scale(1.05);
}

.agy-send-circle-btn:active {
  transform: scale(0.96);
}

/* =========================================================================
   7. MODALS (전체메뉴판 모달 / AI 설정 모달 / 인쇄 모달)
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  padding: 20px;
}

.modal-box {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
}

.modal-box-wide {
  max-width: 1360px;
}

/* WEHAGO Module Categorization Board inside Modal */
.board-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.board-group-tab {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.board-group-tab.active {
  background: var(--wehago-blue);
  border-color: var(--wehago-blue);
  color: #ffffff;
}

.board-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
  max-height: 64vh;
  overflow-y: auto;
  padding-right: 4px;
}

.board-group-card {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.board-group-card-head {
  background: #0f172a;
  color: #ffffff;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-cat-section {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
}

.board-cat-title {
  font-size: 11px;
  font-weight: 800;
  color: #0b6bcb;
  margin-bottom: 4px;
  padding-left: 3px;
}

.board-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.board-menu-btn {
  border: none;
  background: transparent;
  text-align: left;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.board-menu-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.board-menu-btn code {
  font-size: 10px;
  color: #94a3b8;
}

.board-taxform-tag {
  font-size: 10px;
  color: #059669;
  background: #ecfdf5;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
}

/* =========================================================================
   8. MAIN SCREEN TOP TAX SCHEDULE CALENDAR (D-45 ALERT BAR & 2-MONTH CALENDAR)
   ========================================================================= */
.tax-cal-top-section {
  margin-bottom: 12px;
}

.tax-cal-alert-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tax-cal-alert-bar:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.18);
}

.tax-cal-alert-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tax-cal-alert-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.tax-cal-today-tag {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 700;
  white-space: nowrap;
}

.tax-cal-count-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tax-cal-dday-strip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}

.tax-cal-dday-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #f1f5f9;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}

.tax-cal-dday-chip:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.dday-tag {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: -0.2px;
}

.dday-tag.urg-CRITICAL {
  background: #ef4444;
  color: #ffffff;
}

.dday-tag.urg-WARNING {
  background: #f59e0b;
  color: #0f172a;
}

.dday-tag.urg-UPCOMING {
  background: #0ea5e9;
  color: #ffffff;
}

.dday-tag.urg-PAST {
  background: #64748b;
  color: #e2e8f0;
}

.tax-cal-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.tax-cal-toggle-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

/* Expandable 2-Month Full Calendar Panel */
.tax-cal-full-panel {
  margin-top: 8px;
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.tax-cal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.tax-cal-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tax-cal-nav-btn {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s ease;
}

.tax-cal-nav-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.tax-cal-range-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  padding: 0 8px;
  letter-spacing: -0.3px;
}

.tax-cal-cat-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.tax-cal-cat-tab {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.tax-cal-cat-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

/* 2-Month Side-by-Side Grid */
.tax-cal-two-month-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1080px) {
  .tax-cal-two-month-grid {
    grid-template-columns: 1fr;
  }
}

.tax-cal-month-box {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.tax-cal-month-head {
  background: #f1f5f9;
  padding: 9px 14px;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tax-cal-month-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #0f172a;
}

.tax-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
}

.tax-cal-weekdays div {
  padding: 6px 2px;
  border-right: 1px solid #f1f5f9;
}

.tax-cal-weekdays div:first-child {
  color: #dc2626;
}

.tax-cal-weekdays div:last-child {
  color: #2563eb;
  border-right: none;
}

.tax-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tax-cal-day-cell {
  min-height: 82px;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 5px 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #ffffff;
  transition: background 0.12s;
}

.tax-cal-day-cell:nth-child(7n) {
  border-right: none;
}

.tax-cal-day-cell.empty {
  background: #f8fafc;
}

.tax-cal-day-cell.is-today {
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.tax-cal-day-cell.has-events {
  cursor: pointer;
}

.tax-cal-day-cell.has-events:hover {
  background: #f0f9ff;
}

.tax-cal-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.tax-cal-day-num {
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
}

.tax-cal-day-cell.dow-0 .tax-cal-day-num,
.tax-cal-day-cell.is-holiday .tax-cal-day-num {
  color: #dc2626;
}

.tax-cal-day-cell.dow-6:not(.is-holiday) .tax-cal-day-num {
  color: #2563eb;
}

.tax-cal-holiday-label {
  font-size: 10px;
  font-weight: 800;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 1px 4px;
  border-radius: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tax-cal-ev-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.25;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-left: 3px solid #0284c7;
  background: #f0f9ff;
  color: #0c4a6e;
}

.tax-cal-ev-pill.cat-NATIONAL_TAX {
  border-left-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

.tax-cal-ev-pill.cat-WITHHOLDING {
  border-left-color: #0284c7;
  background: #eff6ff;
  color: #1e40af;
}

.tax-cal-ev-pill.cat-LOCAL_TAX {
  border-left-color: #7c3aed;
  background: #f5f3ff;
  color: #5b21b6;
}

.tax-cal-ev-pill.cat-INSURANCE {
  border-left-color: #059669;
  background: #ecfdf5;
  color: #065f46;
}

.tax-cal-ev-pill.cat-OFFICE {
  border-left-color: #d97706;
  background: #fffbeb;
  color: #92400e;
}

.tax-cal-detail-bar {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

/* ============================================================================
   9. RESPONSIVE DESIGN FOR TABLET & MOBILE SMARTPHONES (SINGLE UNIFIED WEB APP)
   ============================================================================ */

/* Hidden on Desktop (> 900px), shown on Tablet/Mobile */
.mobile-only-btn {
  display: none !important;
}

.mobile-lnb-backdrop {
  display: none;
}

/* 9-1. Tablet & Small Laptop (<= 1180px) */
@media (max-width: 1180px) {
  .wehago-top-header {
    height: auto;
    min-height: 50px;
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .gnb-tabs {
    order: 3;
    width: 100%;
    height: 38px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2px;
  }

  .gnb-tabs::-webkit-scrollbar {
    display: none;
  }

  .header-context-bar {
    margin-left: auto;
    flex-wrap: wrap;
    gap: 5px;
  }

  /* 4-Tier Master Schematic stacks vertically on <= 1180px */
  .rea-master-schematic-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .rea-schematic-arrow {
    flex-direction: row !important;
    gap: 8px;
    padding: 2px 0;
  }

  .rea-schematic-arrow .arrow-glyph {
    display: inline-block;
    transform: rotate(90deg);
  }

  .rea-schematic-arrow .arrow-label {
    writing-mode: horizontal-tb !important;
    margin-top: 0 !important;
    font-size: 11px !important;
  }

  /* 12 Pipelines grid becomes 1 column on <= 1180px */
  #crossModulePipelinesContainer {
    grid-template-columns: 1fr !important;
  }
}

/* 9-2. Mobile & Portrait Tablet (<= 900px) */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }

  .mobile-only-btn {
    display: inline-flex !important;
  }

  /* Top Header adjustments */
  .brand-logo {
    padding-right: 8px;
    font-size: 14px;
  }

  .brand-logo .sub-tag {
    display: none;
  }

  .header-context-bar {
    width: 100%;
    order: 2;
    justify-content: space-between;
  }

  .header-client-picker {
    flex: 1;
    min-width: 0;
  }

  .header-client-trigger {
    width: 100%;
    min-width: 0;
    padding: 5px 8px;
  }

  .header-client-trigger .hct-name {
    max-width: 140px;
  }

  .header-client-dropdown {
    position: fixed;
    top: 96px;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: 75vh;
    z-index: 3000;
  }

  .hcd-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Dashboard & System Views */
  .dashboard-view,
  .system-view {
    padding: 10px 10px 115px 10px;
  }

  .tax-calendar-hero-banner {
    padding: 10px 12px;
  }

  .tax-calendar-dual-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tax-cal-day-cell {
    min-height: 60px;
    padding: 4px;
  }

  .wehago-client-toolbar {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .wct-left,
  .wct-right {
    width: 100%;
    min-width: 0;
  }

  .client-Quick-cards {
    grid-template-columns: 1fr;
  }

  /* Smart A 10 Workspace: Off-Canvas Slide-Over LNB Drawer on Mobile */
  .smarta-workspace {
    position: relative;
  }

  .mobile-lnb-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 2100;
  }

  .mobile-lnb-backdrop.hidden {
    display: none !important;
  }

  .smarta-lnb {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 285px;
    max-width: 84vw;
    min-width: 0;
    z-index: 2200;
    transform: translateX(-105%);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.35);
  }

  .smarta-lnb.mobile-drawer-open {
    transform: translateX(0);
  }

  .wehago-action-toolbar {
    padding: 8px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .screen-breadcrumb {
    flex-wrap: wrap;
    gap: 5px;
  }

  .wehago-toolbar-actions {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 2px;
  }

  .wehago-toolbar-actions .btn {
    flex-shrink: 0;
    font-size: 11.5px;
    padding: 5px 8px;
  }

  .stage-body {
    padding: 10px 10px 120px 10px;
  }

  /* Forms & Grids */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .acct-field-wrap {
    min-width: 0 !important;
    width: 100%;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .card {
    padding: 11px;
  }

  .card-title {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13.5px;
  }

  /* Full Menu Board Modal & Auth Modal on Mobile */
  .wehago-board-overlay,
  .modal-overlay {
    padding: 8px;
  }

  .wehago-board-dialog {
    max-height: 92vh;
    border-radius: 10px;
  }

  .wehago-board-header {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .wehago-board-header input {
    width: 100% !important;
  }

  .wehago-board-grid {
    padding: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-box {
    padding: 18px 16px;
    width: 100%;
    max-width: 100%;
  }

  /* Bottom Floating AI Composer on Mobile */
  .floating-ai-container {
    bottom: 6px;
    width: calc(100% - 12px);
  }

  .floating-ai-box {
    padding: 7px 9px;
  }

  .ai-quick-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .ai-quick-row::-webkit-scrollbar {
    display: none;
  }

  .ai-chip {
    flex-shrink: 0;
  }

  .ai-input-row {
    gap: 5px;
  }

  .ai-input-row input {
    font-size: 13px;
    padding: 7px 10px;
  }

  .ai-input-row .btn {
    padding: 7px 10px !important;
    font-size: 12px !important;
    flex-shrink: 0;
  }
}

/* 9-3. Compact Smartphones (<= 480px) */
@media (max-width: 480px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .gnb-tab,
  .gnb-tab-sys {
    padding: 0 9px;
    font-size: 12px;
  }

  .header-context-bar #userBadge {
    display: none;
  }

  .tax-cal-weekday-row div {
    font-size: 10.5px;
    padding: 4px 1px;
  }

  .tax-cal-day-cell {
    min-height: 52px;
    padding: 3px;
  }

  .tax-cal-ev-pill {
    font-size: 9.5px;
    padding: 1px 3px;
  }
}

@media print {
  .no-print,
  .wehago-top-header,
  .smarta-lnb,
  .floating-ai-container {
    display: none !important;
  }
  body, html {
    overflow: visible !important;
    height: auto !important;
  }
}
