:root {
  --bg: #171719;
  --bg-deep: #111113;
  --surface: #1d1d20;
  --surface-2: #232328;
  --surface-3: #29292f;
  --line: #323238;
  --line-soft: #28282d;
  --text: #f3f3f5;
  --text-soft: #b8b8c0;
  --muted: #777780;
  --primary: #4368f5;
  --primary-hover: #5577ff;
  --primary-soft: rgba(67, 104, 245, 0.12);
  --danger: #ff6b6b;
  --warning: #f5b94c;
  --review: #a679f7;
  --success: #57c58a;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --header-height: 68px;
  --content-width: 1440px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(85, 119, 255, 0.85);
  outline-offset: 2px;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.12;
}

.ambient--one {
  top: -260px;
  right: 4vw;
  background: var(--primary);
}

.ambient--two {
  bottom: -320px;
  left: -180px;
  background: #7137de;
  opacity: 0.08;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand__symbol {
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
}

.brand__name {
  font-size: 17px;
}

.brand--button {
  border: 0;
  padding: 0;
  background: transparent;
}

.brand--login {
  margin-bottom: 76px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button--primary:hover {
  background: var(--primary-hover);
}

.button--ghost {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text-soft);
}

.button--ghost:hover {
  border-color: #45454d;
  color: var(--text);
}

.button--danger {
  margin-right: auto;
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.08);
  color: #ff8a8a;
}

.button--large {
  min-height: 50px;
  width: 100%;
  font-size: 14px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.icon-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.status-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--bg);
  border-radius: 50%;
  background: var(--primary);
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

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

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(29, 29, 32, 0.92);
}

/* Login */
.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 60px 24px;
}

.login-shell {
  width: min(100%, 510px);
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.055em;
}

.login-copy > p:last-child {
  max-width: 455px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 58px;
}

.login-form__notice {
  margin: 2px 0 0;
  color: #606068;
  font-size: 11px;
  text-align: center;
}

.login-footer {
  margin: 78px 0 0;
  color: #57575e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea,
.table-toolbar input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 160ms ease, background 160ms ease;
}

.field input,
.field select,
.table-toolbar input {
  height: 46px;
  padding: 0 13px;
}

.field textarea {
  resize: vertical;
  min-height: 112px;
  padding: 12px 13px;
}

.field input::placeholder,
.field textarea::placeholder,
.table-toolbar input::placeholder {
  color: #606068;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.table-toolbar input:focus {
  border-color: rgba(85, 119, 255, 0.7);
  background: #27272c;
}

/* Header */
.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(23, 23, 25, 0.88);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: flex;
  width: min(calc(100% - 48px), var(--content-width));
  height: 100%;
  align-items: center;
  margin: 0 auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 46px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  padding: 9px 12px;
  background: transparent;
  color: #8b8b93;
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active {
  background: var(--surface-2);
}

.nav-badge {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search-box {
  display: flex;
  width: 190px;
  height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 11px;
  background: var(--surface-2);
}

.search-box:focus-within {
  border-color: rgba(85, 119, 255, 0.6);
}

.search-box svg {
  width: 15px;
  fill: none;
  stroke: #777780;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 9px;
  padding: 4px 7px;
  background: transparent;
}

.profile-button:hover {
  background: var(--surface-2);
}

.profile-button__avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #5273fa, #2d49bb);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.profile-button__text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.profile-button__text strong {
  font-size: 12px;
}

.profile-button__text small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* Pages */
.app-content {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 54px 0 90px;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
  animation: page-in 220ms ease;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.page-heading--compact {
  margin-bottom: 28px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-heading p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.calendar-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.select-control {
  display: grid;
  gap: 5px;
}

.select-control > span {
  padding-left: 2px;
  color: #66666e;
  font-size: 10px;
  font-weight: 650;
}

.select-control select {
  height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 0 32px 0 11px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot--planned { background: #777780; }
.legend-dot--progress { background: var(--primary); }
.legend-dot--review { background: var(--review); }
.legend-dot--done { background: var(--success); }

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.calendar-main {
  min-width: 0;
  padding: 20px;
}

.schedule-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.side-panel {
  padding: 18px;
}

.panel-heading,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading {
  margin-bottom: 15px;
}

.panel-heading h2,
.section-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.count-badge {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: #7d98ff;
  font-size: 11px;
  font-weight: 750;
}

.compact-list {
  display: grid;
}

.compact-item {
  position: relative;
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line-soft);
  padding: 14px 0 14px 13px;
}

.compact-item::before {
  position: absolute;
  top: 19px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.compact-item:first-child {
  border-top: 0;
  padding-top: 4px;
}

.compact-item:first-child::before {
  top: 9px;
}

.compact-item strong {
  font-size: 12px;
  font-weight: 650;
}

.compact-item small {
  color: var(--muted);
  font-size: 10px;
}

.empty-state {
  padding: 20px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* FullCalendar */
.fc {
  --fc-border-color: var(--line-soft);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: transparent;
  --fc-list-event-hover-bg-color: var(--surface-2);
  --fc-today-bg-color: rgba(67, 104, 245, 0.045);
  color: var(--text-soft);
}

.fc .fc-toolbar {
  align-items: center;
  margin-bottom: 18px;
}

.fc .fc-toolbar-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.fc .fc-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 10px;
  background: var(--surface-2);
  box-shadow: none !important;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
  text-transform: none;
}

.fc .fc-button:hover,
.fc .fc-button:focus,
.fc .fc-button.fc-button-active {
  border-color: #484851;
  background: #303036;
  color: var(--text);
}

.fc .fc-button-primary:disabled {
  opacity: 0.45;
}

.fc .fc-col-header-cell {
  border-top: 0;
  background: #1a1a1d;
}

.fc .fc-col-header-cell-cushion {
  padding: 11px 4px;
  color: #85858d;
  font-size: 11px;
  font-weight: 650;
}

.fc .fc-daygrid-day-number {
  padding: 8px;
  color: #9999a1;
  font-size: 11px;
}

.fc .fc-day-other .fc-daygrid-day-number {
  color: #44444a;
}

.fc .fc-daygrid-day-frame {
  min-height: 108px;
}

.fc .fc-daygrid-event {
  margin: 2px 4px;
  border: 0;
  border-radius: 5px;
  padding: 5px 7px;
  background: #24242a;
  color: var(--text-soft);
  font-size: 10px;
}

.fc .fc-daygrid-event:hover {
  background: #2d2d34;
}

.fc .fc-event-title {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
}

.fc-event.event-status-progress { box-shadow: inset 2px 0 0 var(--primary); }
.fc-event.event-status-review { box-shadow: inset 2px 0 0 var(--review); }
.fc-event.event-status-planned { box-shadow: inset 2px 0 0 #777780; }
.fc-event.event-status-done {
  opacity: 0.45;
  box-shadow: inset 2px 0 0 var(--success);
  text-decoration: line-through;
}

/* My page */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.summary-card {
  min-height: 125px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(145deg, rgba(31, 31, 35, 0.96), rgba(26, 26, 29, 0.96));
}

.summary-card span {
  display: block;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.summary-card strong {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.summary-card small {
  margin-left: 5px;
  color: #66666e;
  font-size: 10px;
}

.workspace-tabs {
  display: flex;
  gap: 23px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
  scrollbar-width: none;
}

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

.workspace-tab {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  padding: 0 0 13px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.workspace-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: 160ms ease;
}

.workspace-tab.is-active {
  color: var(--text);
}

.workspace-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.workspace-content {
  padding: 28px;
}

.workspace-panel {
  display: none;
}

.workspace-panel.is-active {
  display: block;
}

.two-column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.section-title {
  margin-bottom: 18px;
}

.line-list {
  border-top: 1px solid var(--line-soft);
}

.line-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding: 17px 0;
}

.line-item__date {
  color: var(--primary-hover);
  font-size: 11px;
  font-weight: 750;
}

.line-item__body {
  min-width: 0;
}

.line-item__body strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-item__body small,
.line-item__meta {
  color: var(--muted);
  font-size: 10px;
}

.line-item__meta {
  text-align: right;
}

.todo-list {
  border-top: 1px solid var(--line-soft);
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}

.todo-item input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.todo-item__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.todo-item__body strong {
  font-size: 13px;
  font-weight: 650;
}

.todo-item__body small {
  color: var(--muted);
  font-size: 10px;
}

.todo-item.is-done .todo-item__body {
  opacity: 0.42;
  text-decoration: line-through;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 100px 110px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 16px;
  background: #1b1b1e;
}

.request-row strong {
  font-size: 12px;
}

.request-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.request-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 10px;
}

.request-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.profile-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 18px 0;
}

.profile-large-avatar {
  display: grid;
  flex: 0 0 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #5273fa, #243ca0);
  font-size: 28px;
  font-weight: 750;
}

.profile-info h2 {
  margin: 0;
  font-size: 28px;
}

.profile-info > p:not(.eyebrow) {
  margin: 5px 0 24px;
  color: var(--muted);
  font-size: 11px;
}

.profile-info dl {
  display: grid;
  gap: 10px;
  width: min(100%, 440px);
  margin: 0 0 24px;
}

.profile-info dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}

.profile-info dt {
  color: var(--muted);
  font-size: 11px;
}

.profile-info dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

/* Clients */
.table-panel {
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 16px;
}

.table-toolbar input {
  width: 260px;
  height: 38px;
}

.table-toolbar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 17px 18px;
  text-align: left;
}

.data-table th {
  color: #66666e;
  font-size: 10px;
  font-weight: 700;
}

.data-table td {
  color: var(--text-soft);
  font-size: 12px;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.client-name {
  color: var(--text);
  font-weight: 700;
}

.client-chip {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 9px;
}

/* Request board */
.request-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.request-column {
  min-height: 360px;
  padding: 14px;
}

.request-column__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 2px 2px 13px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
}

.request-column__heading b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9px;
}

.request-cards {
  display: grid;
  gap: 9px;
  padding-top: 11px;
}

.request-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 14px;
  background: #202024;
  cursor: pointer;
  transition: 160ms ease;
}

.request-card:hover {
  border-color: #414149;
  transform: translateY(-1px);
}

.request-card__client {
  color: var(--primary-hover);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.request-card strong {
  font-size: 12px;
  line-height: 1.4;
}

.request-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.request-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #66666e;
  font-size: 9px;
}

/* Drawer and modal */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(3px);
}

.drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  width: min(100%, 470px);
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 27px;
  background: #1b1b1f;
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 240ms ease;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__header,
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 18px;
}

.drawer__header h2,
.modal__header h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.drawer__form {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drawer__actions,
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding-top: 18px;
}

.modal {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 32px), 560px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #1b1b1f;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.modal__body {
  display: grid;
  gap: 15px;
  padding-top: 20px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  border: 1px solid #3b3b43;
  border-radius: 9px;
  padding: 13px 16px;
  background: #26262c;
  box-shadow: var(--shadow);
  color: var(--text-soft);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1120px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .schedule-side {
    grid-template-columns: 1fr 1fr;
  }

  .request-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .topbar__inner,
  .app-content {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .main-nav {
    margin-left: 24px;
  }

  .search-box,
  .profile-button__text {
    display: none;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-column-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .request-row {
    grid-template-columns: 80px minmax(0, 1fr) 90px;
  }

  .request-row > *:last-child {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: auto;
  }

  .topbar {
    position: sticky;
  }

  .topbar__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0 10px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .topbar__actions {
    margin-left: auto;
  }

  .app-content {
    padding-top: 38px;
  }

  .page-heading,
  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .select-control:last-child {
    grid-column: span 2;
  }

  .calendar-main {
    overflow-x: auto;
    padding: 12px;
  }

  #calendar {
    min-width: 680px;
  }

  .schedule-side,
  .summary-grid,
  .request-board {
    grid-template-columns: 1fr;
  }

  .workspace-content {
    padding: 19px;
  }

  .line-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .line-item__meta {
    display: none;
  }

  .request-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .request-row > *:nth-child(n+3) {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .drawer {
    padding: 22px 18px;
  }

  .profile-layout {
    flex-direction: column;
  }

  .data-table th,
  .data-table td {
    padding: 14px;
  }
}

@media (max-width: 430px) {
  .login-view {
    place-items: start center;
    padding-top: 44px;
  }

  .brand--login {
    margin-bottom: 64px;
  }

  .login-copy h1 {
    font-size: 35px;
  }

  .login-form {
    margin-top: 44px;
  }

  .filter-group {
    grid-template-columns: 1fr;
  }

  .select-control:last-child {
    grid-column: auto;
  }

  .profile-button {
    padding-right: 0;
  }
}
