:root { font-family: Inter, "Noto Sans KR", system-ui, sans-serif; color: #17202f; background: #f5f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; overflow-x: auto; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; width: 100%; min-width: 1420px; min-height: 100vh; }
.login-screen { width: 100%; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #e9ebff, transparent 38%), #f5f7fb; }
.login-card { width: min(420px, 100%); border: 1px solid #e2e5ee; border-radius: 20px; background: white; padding: 34px; box-shadow: 0 24px 70px #26324a17; }
.login-brand { display: flex; align-items: center; gap: 16px; color: #17202f; font-size: 25px; font-weight: 800; margin-bottom: 34px; white-space: nowrap; }
.login-brand img { width: 96px; height: 58px; object-fit: contain; }
.login-card h1 { margin: 6px 0; }
.login-description { color: #778196; margin: 0 0 25px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 10px; background: #eef0f5; }
.auth-switch-button { border: 0; border-radius: 7px; background: transparent; color: #737d90; padding: 9px; font-size: 13px; font-weight: 700; }
.auth-switch-button.active { background: white; color: #26324a; box-shadow: 0 2px 7px #26324a14; }
.login-form { padding: 0; }
.login-form .primary { width: 100%; }
.login-error { min-height: 18px; color: #d64545; font-size: 12px; margin: -4px 0 10px; }
.remember-check { display: flex; align-items: center; gap: 8px; width: fit-content; color: #586275; font-weight: 700; }
.remember-check input { width: auto; margin: 0; }
.demo-accounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #eceef3; }
.demo-accounts strong { grid-column: 1 / -1; color: #7a8498; font-size: 11px; }
.demo-accounts button { border: 1px solid #dfe3eb; border-radius: 8px; background: #fafbfc; color: #586275; font-size: 12px; padding: 8px; }
.demo-accounts button:hover { color: #4d59d9; border-color: #bfc5fa; background: #f5f6ff; }
.sidebar { position: fixed; width: 230px; inset: 0 auto 0 0; background: #111827; color: white; padding: 30px 20px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 0 0 44px; padding: 13px 12px; border-radius: 16px; background: linear-gradient(135deg, #6673ff, #4f5ee8); color: white; font-size: 18px; font-weight: 800; line-height: 1; white-space: nowrap; box-shadow: 0 12px 24px #00000028; }
.brand img { flex: 0 0 auto; width: 70px; height: 38px; object-fit: contain; transform: translateX(-8px); }
.brand strong { flex: 0 0 auto; white-space: nowrap; letter-spacing: -0.3px; transform: translateX(-8px); }
nav { display: grid; gap: 8px; }
.nav-item { border: 0; color: #9ca3af; background: transparent; padding: 12px 14px; border-radius: 9px; text-align: left; }
.nav-item.active, .nav-item:hover { color: white; background: #243044; }
.profile { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px 4px; border-top: 1px solid #293548; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #5b6cf9; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { display: block; color: #9ca3af; margin-top: 2px; }
.logout-button { border: 0; background: transparent; color: #9ca3af; font-size: 10px; padding: 5px 0; }
.logout-button:hover { color: white; }
main { width: calc(100% - 230px); min-width: 1190px; margin-left: 230px; padding: 42px 48px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
#toggle-admin-mode.admin-mode-active { background: #172554; border-color: #172554; color: #fff; }
h1 { margin: 5px 0; font-size: 30px; }
.eyebrow { color: #5b6cf9; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.subtitle { color: #778196; margin: 0; }
.primary { border: 0; border-radius: 10px; background: #5865e8; color: white; font-weight: 700; padding: 12px 18px; box-shadow: 0 6px 15px #5865e82b; }
.secondary { border: 1px solid #dfe3eb; border-radius: 10px; background: white; color: #586275; font-weight: 700; padding: 11px 15px; }
.secondary:hover { border-color: #bfc5fa; color: #4d59d9; }
.secondary.has-pending-accounts {
  border-color: #f97316;
  background: white;
  color: #c2410c;
  animation: pending-account-pulse 0.9s ease-in-out infinite;
}
@keyframes pending-account-pulse {
  0%, 100% {
    border-color: #dfe3eb;
    background: white;
    color: #586275;
    box-shadow: none;
  }
  50% {
    border-color: #f97316;
    background: #ff8a2a;
    color: white;
    box-shadow: 0 0 0 4px #f9731628;
  }
}
.danger { border: 1px solid #f0caca; border-radius: 10px; background: #fff5f5; color: #c83d3d; font-weight: 700; padding: 11px 15px; }
.danger:hover { border-color: #e7a7a7; background: #ffeded; }
.mobile-account { display: none; }
.mobile-logout { display: none; }
.schedule-scope { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; border: 1px solid #dfe3eb; border-radius: 12px; background: white; padding: 13px 16px; }
.schedule-scope div { min-width: 0; }
.schedule-scope span { display: block; color: #7a8498; font-size: 11px; margin-bottom: 3px; }
.schedule-scope strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.schedule-scope select { min-width: 180px; border: 1px solid #dfe3eb; border-radius: 8px; background: white; padding: 9px 11px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.stats article { background: white; border: 1px solid #e7eaf1; border-radius: 12px; padding: 18px 20px; }
.stats span { display: block; color: #7a8498; font-size: 13px; margin-bottom: 8px; }
.stats strong { font-size: 25px; }
.progress { height: 5px; margin-top: 10px; background: #e9ecf4; border-radius: 10px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: #5865e8; transition: width .2s; }
.toolbar { display: flex; gap: 12px; margin-bottom: 20px; }
.toolbar input, .toolbar select { background: white; border: 1px solid #dfe3eb; border-radius: 9px; padding: 11px 13px; outline: none; }
.toolbar input { width: 300px; }
.personal-week-summary { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
.personal-week-summary article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  min-height: 150px;
  background: white;
  border: 1px solid #e1e6f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px #26324a0a;
}
.week-summary-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border-right: 1px solid #e7eaf1;
  background: linear-gradient(180deg, #f8faff 0%, #f1f4fb 100%);
}
.week-summary-side span { color: #4d59d9; font-size: 13px; font-weight: 800; }
.week-summary-side strong { color: #182033; font-size: 22px; line-height: 1; }
.week-summary-side small { color: #667085; font-size: 12px; font-weight: 700; line-height: 1.4; }
.summary-add-button { width: 100%; padding: 9px 10px; box-shadow: none; font-size: 12px; }
.week-summary-status { display: grid; gap: 5px; margin: 4px 0 0; color: #667085; font-size: 11px; font-weight: 800; }
.week-summary-status select { width: 100%; border: 1px solid #dfe3eb; border-radius: 8px; background: white; color: #26324a; font-size: 12px; font-weight: 700; padding: 7px 8px; }
.week-summary-content { display: grid; grid-template-columns: minmax(520px, 1fr) minmax(520px, 1fr); gap: 0; min-width: 1080px; padding: 18px 20px; }
.week-summary-block { display: grid; align-content: start; gap: 8px; min-width: 520px; padding: 0 18px; }
.week-summary-block:first-child { padding-left: 0; }
.week-summary-block + .week-summary-block { border-left: 1px solid #edf0f5; padding-right: 0; }
.week-summary-block h3 { margin: 0; color: #26324a; font-size: 13px; }
.week-summary-list { display: grid; gap: 7px; }
.week-summary-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, auto); gap: 10px; align-items: start; color: #667085; font-size: 11px; line-height: 1.4; min-width: 560px; }
.week-summary-item[data-summary-id] { cursor: pointer; }
.week-summary-item[data-summary-id]:hover .week-summary-title { color: #4d59d9; text-decoration: underline; }
.week-summary-item > div:first-child { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; min-width: 0; }
.week-summary-list b { color: #4d59d9; }
.week-summary-type { font-weight: 900; }
.summary-type-project { color: #7c3aed; }
.summary-type-detail { color: #2563eb; }
.summary-type-business { color: #ea580c; }
.summary-type-personal { color: #059669; }
.week-summary-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; min-width: 0; white-space: normal; }
.week-summary-title { color: #26324a; font-weight: 800; min-width: 0; max-width: 100%; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.week-summary-date { color: #0f766e; font-weight: 800; white-space: nowrap; }
.week-summary-date::before, .week-summary-people::before { content: "·"; margin-right: 7px; color: #c4cad5; }
.week-summary-people { color: #b45309; font-weight: 800; min-width: 0; max-width: 100%; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.week-summary-subtasks { flex-basis: 100%; display: grid; gap: 3px; margin: 2px 0 0; padding: 0; list-style: none; color: #596377; }
.week-summary-subtasks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; min-width: 0; }
.week-summary-subtasks li::before { content: "하위업무"; display: inline-block; margin-right: 6px; border-radius: 5px; background: #eef0ff; color: #4d59d9; font-size: 10px; font-weight: 900; padding: 1px 5px; }
.week-summary-subtasks li span { min-width: 0; overflow-wrap: anywhere; }
.week-summary-subtasks li.done span { color: #98a2b3; text-decoration: line-through; text-decoration-thickness: 2px; }
.week-summary-subtasks button { border: 1px solid #dfe3eb; border-radius: 6px; background: white; color: #667085; font-size: 10px; font-weight: 800; padding: 3px 7px; white-space: nowrap; }
.week-summary-subtasks button:hover:not(:disabled) { border-color: #3ba27d; color: #157f62; background: #f2fbf7; }
.week-summary-subtasks li.done button { border-color: #3ba27d; background: #eaf8f2; color: #157f62; }
.week-summary-list span { min-width: 0; }
.week-summary-list small { color: #98a2b3; font-size: 11px; }
.week-summary-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: end; }
.week-summary-actions button { min-width: 34px; border: 1px solid #dfe3eb; border-radius: 6px; background: white; color: #667085; font-size: 10px; font-weight: 800; padding: 4px 7px; text-align: center; }
.week-summary-actions button:hover:not(:disabled) { border-color: #9ea7ff; color: #4d59d9; background: #f5f6ff; }
.week-summary-actions button.active, .week-summary-actions button:disabled { border-color: #4d59d9; background: #eef0ff; color: #4d59d9; cursor: default; }
.view-switch { display: inline-flex; background: #e8ebf2; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.view-button { border: 0; border-radius: 7px; background: transparent; color: #717b8f; padding: 8px 15px; font-size: 13px; font-weight: 700; }
.view-button.active { color: #26324a; background: white; box-shadow: 0 2px 7px #26324a14; }
.view-panel { display: none; }
.view-panel.active { display: grid; }
.hidden { display: none !important; }
.board { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.column { min-height: 390px; background: #edf0f6; border-radius: 13px; padding: 15px; }
.column.drag-over { outline: 2px dashed #5865f2; outline-offset: -5px; background: #e5e9ff; }
.column-title { display: flex; align-items: center; gap: 8px; padding: 2px 3px 12px; }
.column-title-with-action { justify-content: space-between; align-items: flex-start; }
.column-title-with-action > div { display: flex; align-items: center; gap: 8px; }
.column-title h2 { margin: 0; font-size: 15px; }
.count { color: #6d7587; background: #dfe3ec; border-radius: 12px; padding: 2px 8px; font-size: 12px; }
.column-toggle { border: 1px solid #cfd5e2; border-radius: 999px; background: white; color: #586275; font-size: 10px; font-weight: 800; padding: 4px 8px; }
.column-toggle.active { border-color: #4d59d9; color: #4d59d9; background: #eef0ff; }
.task-list { display: grid; gap: 11px; }
.task { background: white; padding: 15px; border: 1px solid #e3e6ed; border-radius: 10px; box-shadow: 0 2px 5px #25314a0a; }
.task-draggable { cursor: grab; }
.task-draggable:active { cursor: grabbing; }
.task.dragging { opacity: .58; transform: scale(.99); }
.task.drag-insert-before { border-top-color: #5865f2; box-shadow: 0 -4px 0 #5865f2, 0 2px 5px #25314a0a; }
.task h3 { font-size: 14px; margin: 9px 0 14px; }
.badge { font-size: 10px; font-weight: 700; border-radius: 5px; padding: 4px 7px; }
.high { color: #d64545; background: #fff0f0; }.medium { color: #ad7218; background: #fff7df; }.low { color: #287b64; background: #e8f8f3; }
.task-meta { color: #7b8495; display: flex; justify-content: space-between; font-size: 12px; }
.task-owner { color: #8b94a5; font-size: 10px; margin: 8px 0 0; }
.task-work-list { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0f5; }
.task-work-list div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; color: #667085; font-size: 10px; line-height: 1.35; }
.task-work-list b { color: #4d59d9; }
.task-work-list span { overflow-wrap: anywhere; }
.task-work-list small, .task-work-empty { color: #98a2b3; font-size: 10px; margin: 0; }
.task-work-empty { margin-top: 9px; }
.task-actions { display: flex; gap: 6px; margin-top: 13px; }
.task-actions button { flex: 1; border: 1px solid #e1e4eb; border-radius: 6px; background: #fafbfc; color: #5e6778; font-size: 11px; padding: 5px; }
.calendar-view { grid-template-columns: minmax(0, 1fr) clamp(360px, 26vw, 440px); gap: 18px; align-items: start; }
.calendar-card, .day-detail { background: white; border: 1px solid #e4e7ef; border-radius: 14px; padding: 20px; }
@media (min-width: 641px) {
  .day-detail { background: #f6f7fa; border-color: #dce1ea; }
}
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar-head h2, .day-detail h2 { margin: 3px 0 0; font-size: 20px; }
.calendar-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; padding: 12px; border-radius: 10px; background: #f5f7fb; }
.calendar-filter label { margin: 0; font-size: 11px; }
.calendar-filter select { background: white; }
.calendar-controls { display: flex; gap: 6px; }
.calendar-controls button { border: 1px solid #dfe3eb; background: white; border-radius: 8px; color: #556076; min-width: 35px; padding: 7px 10px; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays span { color: #8a93a5; font-size: 12px; font-weight: 700; padding: 8px; text-align: center; }
.weekdays span:first-child { color: #dc6262; }
.calendar-day { display: flex; flex-direction: column; min-width: 0; min-height: 132px; border: 1px solid #edf0f5; background: white; padding: 8px; text-align: left; overflow: hidden; cursor: pointer; }
.calendar-day:hover { background: #f8f9ff; }
.calendar-day strong { display: block; color: #475267; font-size: 12px; margin-bottom: 6px; }
.calendar-day.muted { background: #fafbfc; color: #c1c6d0; }
.calendar-day.has-my-personal { background: #f0dbff; border-color: #a855f7; box-shadow: inset 0 0 0 2px #c084fc; }
.calendar-day.has-my-business { background: #ffd9b3; border-color: #f97316; box-shadow: inset 0 0 0 2px #fb923c; }
.calendar-day.has-my-personal.has-my-business { background: linear-gradient(135deg, #ead0ff 0 50%, #ffd1a3 50% 100%); border-color: #f97316; box-shadow: inset 0 0 0 2px #a855f7, inset 0 -4px 0 #f97316; }
.calendar-day.today strong { display: grid; place-items: center; width: 23px; height: 23px; margin-top: -4px; border-radius: 50%; background: #5865e8; color: white; }
.calendar-day.selected { outline: 3px solid #4f46e5; outline-offset: -3px; background: #eef0ff; }
.calendar-day.selected.has-my-personal { background: #e6c7ff; }
.calendar-day.selected.has-my-business { background: #ffc58a; }
.calendar-day.selected.has-my-personal.has-my-business { background: linear-gradient(135deg, #dfb8ff 0 50%, #ffbd7a 50% 100%); }
.calendar-day.calendar-drop-target { outline: 3px dashed #4f46e5; outline-offset: -4px; background: #e7eaff; }
.calendar-task { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid #aeb5c2; border-radius: 4px; background: #f2f4f7; color: #475267; font-size: 10px; margin-top: 4px; padding: 4px 5px; }
.calendar-task[draggable="true"] { cursor: grab; user-select: none; }
.calendar-task[draggable="true"]:active { cursor: grabbing; }
.calendar-task.calendar-dragging { opacity: .42; }
.calendar-task.doing { border-color: #e3a332; background: #fff7e4; }
.calendar-task.done { border-color: #3ba27d; background: #eaf8f2; text-decoration: line-through; }
.calendar-task.hold { border-color: #8b5cf6; background: #f3efff; }
.calendar-task.detail { border-color: #5b6cf9; background: #eef0ff; }
.calendar-task.personal { border-color: #9b59b6; background: #f7edfb; }
.calendar-task.business { border-color: #d9782d; background: #fff1e6; }
.calendar-task.visual-project { border-color: #2563eb; background: #dbeafe; color: #1e3a8a; }
.calendar-task.visual-work { border-color: #64748b; background: #f1f5f9; color: #334155; }
.calendar-task.visual-business { border-color: #ea580c; background: #ffedd5; color: #9a3412; }
.calendar-task.visual-construction { border-color: #ca8a04; background: #fef9c3; color: #854d0e; }
.calendar-task.visual-meeting { border-color: #0891b2; background: #cffafe; color: #155e75; }
.calendar-task.visual-personal { border-color: #9333ea; background: #f3e8ff; color: #6b21a8; }
.calendar-task.approval-leave-pending { border-color: #eab308; background: #fef9c3; color: #713f12; text-decoration: none; }
.calendar-task.approval-leave-approved { border-color: #ef7777; background: #fee2e2; color: #991b1b; text-decoration: none; }
.calendar-color-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; color: #667085; font-size: 10px; font-weight: 800; }
.calendar-color-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-color-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #94a3b8; }
.calendar-color-legend .legend-business::before { background: #ea580c; }
.calendar-color-legend .legend-construction::before { background: #ca8a04; }
.calendar-color-legend .legend-meeting::before { background: #0891b2; }
.calendar-color-legend .legend-personal::before { background: #9333ea; }
.more-tasks { display: block; width: 100%; min-height: 20px; border: 0; border-radius: 4px; background: #eef0ff; color: #4352dc; font-size: 10px; font-weight: 800; margin-top: 4px; padding: 4px 5px; text-align: left; }
.more-tasks:hover { background: #e1e5ff; }
.calendar-cell-editor-wrap { margin-top: auto; padding-top: 5px; }
.calendar-cell-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: stretch; }
.calendar-cell-editor { display: block; width: 100%; min-height: 44px; max-height: 90px; border: 1px solid #dfe5ee; border-radius: 5px; background: #ffffffd9; color: #182033; font: inherit; font-size: 11px; line-height: 1.35; padding: 5px 6px; resize: vertical; cursor: text; }
.calendar-cell-editor::placeholder { color: #98a2b3; }
.calendar-cell-editor:focus { outline: 2px solid #5b6cf9; outline-offset: -1px; background: #fff; }
.calendar-cell-business-check { display: grid; align-content: center; justify-items: center; gap: 2px; min-width: 34px; padding: 3px 2px; border: 1px solid #dfe5ee; border-radius: 5px; background: #fff; color: #596377; font-size: 9px; font-weight: 900; cursor: pointer; user-select: none; }
.calendar-cell-business-check input { width: 13px; height: 13px; margin: 0; }
.calendar-save-state { display: block; min-height: 12px; color: #667085; font-size: 9px; font-weight: 800; margin-top: 2px; }
.day-detail { position: sticky; top: 25px; min-height: 220px; max-height: calc(100vh - 50px); overflow-y: auto; }
.desktop-day-editor-host .day-tasks-modal-content { max-height: none; padding: 0; overflow: visible; }
.desktop-day-editor-host .modal-head { position: sticky; top: -20px; z-index: 2; background: #f6f7fa; padding: 4px 0 14px; }
.desktop-day-editor-host #schedule-form { padding: 0; }
.desktop-day-editor-host #schedule-form .modal-head { top: -20px; }
.selected-task-list { display: grid; gap: 10px; margin-top: 18px; }
.day-task { border: 1px solid #e7eaf0; border-radius: 9px; padding: 12px; }
.day-task-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.day-task h3 { font-size: 13px; margin: 9px 0 7px; }
.day-task p, .empty-message { color: #7a8498; font-size: 12px; margin: 0; }
.schedule-info { display: grid; gap: 4px; margin: 0; color: #7a8498; font-size: 12px; }
.schedule-info div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 5px; }
.schedule-info dt { color: #596377; font-weight: 800; }
.schedule-info dd { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
.day-task .schedule-description { margin-top: 7px; color: #596377; white-space: pre-wrap; }
.day-personal-entry { display: grid; gap: 6px; margin: 10px 0 12px; padding: 10px; border: 1px solid #e2e7f0; border-radius: 10px; background: #f8faff; }
.day-personal-entry label { display: grid; gap: 6px; margin: 0; color: #182033; font-size: 13px; font-weight: 900; }
.day-personal-entry textarea { width: 100%; min-height: 108px; border: 1px solid #d8deea; border-radius: 8px; background: white; color: #182033; font: inherit; font-size: 14px; line-height: 1.45; padding: 10px; resize: vertical; }
.day-personal-entry textarea:focus { outline: 2px solid #5b6cf9; outline-offset: -1px; }
.day-personal-entry .day-entry-business-check { display: inline-flex; align-items: center; justify-self: start; gap: 6px; color: #182033; font-size: 12px; font-weight: 800; }
.day-personal-entry .day-entry-business-check input { width: 15px; height: 15px; margin: 0; }
.day-personal-entry p { margin: 0; color: #667085; font-size: 11px; font-weight: 700; }
.day-personal-entry .primary { width: 100%; box-shadow: none; padding: 10px 14px; }
.detail-schedule-fields { align-items: end; }
.schedule-kind-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 42px; padding-bottom: 3px; }
.schedule-kind-checks label { margin: 0; }
.construction-workers { display: grid; gap: 9px; margin: 0 0 15px; padding: 12px; border: 1px solid #dbe3f0; border-radius: 10px; background: #f8fafc; }
.construction-workers-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.construction-workers-head > div { display: grid; gap: 4px; }
.construction-workers-head strong { font-size: 13px; }
.construction-workers-head span { color: #7a8498; font-size: 11px; font-weight: 700; }
.construction-workers-head > span { flex: 0 0 auto; border-radius: 999px; background: #e9edff; color: #4352dc; padding: 4px 8px; }
.construction-worker-list { display: grid; gap: 7px; }
.construction-worker-item,
.construction-worker-add { display: grid; grid-template-columns: minmax(90px, .8fr) 100px minmax(120px, 1.2fr) auto; gap: 6px; align-items: center; }
.construction-worker-item { padding: 7px; border: 1px solid #e3e8f1; border-radius: 8px; background: #fff; }
.construction-worker-item input,
.construction-worker-item select,
.construction-worker-add input,
.construction-worker-add select { width: 100%; min-width: 0; border: 1px solid #dfe3eb; border-radius: 7px; background: #fff; padding: 9px; font: inherit; font-size: 12px; }
.construction-worker-item button,
.construction-worker-add button { white-space: nowrap; }
.subtask-editor { display: grid; gap: 9px; margin-bottom: 15px; }
.subtask-editor-head { display: grid; gap: 4px; font-size: 13px; font-weight: 800; }
.subtask-editor-head span { color: #7a8498; font-size: 11px; font-weight: 700; }
.subtask-editor-list { display: grid; gap: 7px; }
.subtask-editor-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) 52px; gap: 6px; align-items: center; padding: 8px; border: 1px solid #e6eaf2; border-radius: 9px; background: #fbfcff; }
.subtask-editor-item input { width: 100%; min-width: 0; padding: 9px; border: 1px solid #dfe3eb; border-radius: 7px; }
.subtask-editor-item input[data-subtask-action="title"] { min-width: 0; }
.subtask-meta-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 72px; gap: 6px; align-items: center; min-width: 0; }
.subtask-date-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; margin: 0; color: #667085; font-size: 11px; font-weight: 800; }
.subtask-date-field input { min-width: 0; font-size: 12px; padding: 8px; }
@media (max-width: 720px) {
  .subtask-meta-row { grid-template-columns: 1fr 1fr; }
  .subtask-meta-row input[data-subtask-action="traveler"] { grid-column: 1 / -1; }
}
.subtask-meta-row input[data-subtask-action="traveler"] { grid-column: 1 / -1; min-width: 0; }
.subtask-business-check { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 0; border: 1px solid #dfe3eb; border-radius: 7px; background: #fff; padding: 8px 6px; font-size: 11px; font-weight: 800; color: #596377; white-space: nowrap; }
.subtask-business-check input { width: auto; padding: 0; }
.subtask-editor-item button, .subtask-list-item button { border: 1px solid #dfe3eb; border-radius: 7px; background: white; color: #667085; font-size: 11px; font-weight: 800; padding: 7px 8px; }
.subtask-editor-item button[data-subtask-action="toggle"] { grid-column: 1 / 2; }
.subtask-editor-item button[data-subtask-action="remove"] { grid-column: 3 / 4; grid-row: 1 / 2; }
.subtask-editor-item.done input { color: #98a2b3; text-decoration: line-through; background: #f8fafc; }
.subtask-editor-item.done button:first-child, .subtask-list-item.done button { border-color: #3ba27d; background: #eaf8f2; color: #157f62; }
.subtask-add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.subtask-add-row input { width: 100%; padding: 10px; border: 1px solid #dfe3eb; border-radius: 8px; }
.subtask-list { display: grid; gap: 6px; margin-top: 9px; padding: 8px; border-radius: 8px; background: #f5f7fb; color: #475267; font-size: 12px; line-height: 1.55; }
.subtask-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.subtask-list-item span { min-width: 0; overflow-wrap: anywhere; }
.subtask-list-item span small { display: block; color: #7a8498; font-size: 11px; font-weight: 800; }
.subtask-list-item.done span { color: #98a2b3; text-decoration: line-through; }
.subtask-list-item small { color: #667085; font-weight: 800; }
.day-task-actions { display: flex; gap: 6px; margin-top: 10px; }
.day-task-actions button { border: 1px solid #dfe3eb; border-radius: 7px; background: white; color: #667085; padding: 6px 9px; font-size: 11px; }
.inline-subtask-add { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid #e1e6ef; border-radius: 9px; background: #fff; }
.inline-subtask-add.hidden { display: none; }
.inline-subtask-add-head { display: grid; gap: 4px; }
.inline-subtask-add-head strong { color: #182033; font-size: 13px; }
.inline-subtask-add-head span { color: #7a8498; font-size: 11px; font-weight: 700; }
.inline-subtask-add-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .65fr) minmax(150px, .65fr) auto; gap: 7px; align-items: end; }
.inline-subtask-add-row input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #dfe3eb; border-radius: 8px; font: inherit; }
.inline-subtask-add-row label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; margin: 0; color: #667085; font-size: 11px; font-weight: 800; }
.inline-subtask-add-row button { border: 1px solid #d8deea; border-radius: 8px; background: white; color: #596377; padding: 9px 12px; font-weight: 800; white-space: nowrap; }
.inline-subtask-error { min-height: 0; color: #c2414b !important; font-size: 11px !important; }
.participation-scope-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.inline-status-actions { display: inline-flex; gap: 5px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.inline-status-actions button { color: #667085; font-weight: 800; padding: 6px 9px; min-width: 40px; }
.inline-status-actions button:hover:not(:disabled) { border-color: #9ea7ff; color: #4d59d9; background: #f5f6ff; }
.inline-status-actions button.active, .inline-status-actions button:disabled { border-color: #4d59d9; background: #eef0ff; color: #4d59d9; cursor: default; }
.schedule-type-label { display: inline-block; border-radius: 5px; background: #edf0f6; color: #596377; padding: 4px 7px; font-size: 10px; font-weight: 700; }
.detail-add-button { width: 100%; margin-bottom: 14px; }
.day-copy-panel {
  display: grid;
  gap: 10px;
  margin: -4px 0 14px;
  padding: 12px;
  border: 1px solid #dfe3eb;
  border-radius: 10px;
  background: #f8fafd;
}
.day-copy-panel label { margin: 0; }
.day-copy-panel button { width: 100%; box-shadow: none; }
.day-copy-panel .form-message { margin: -2px 0 0; }
.project-notes-section { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px; border: 1px solid #e2e7f0; border-radius: 10px; background: #f8fafd; }
.project-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-notes-head strong { font-size: 14px; }
.project-notes-head span { color: #7a8498; font-size: 12px; font-weight: 800; }
.project-note-list { display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.project-note-item { display: grid; gap: 6px; padding: 10px; border: 1px solid #e2e7f0; border-radius: 8px; background: white; }
.project-note-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7a8498; font-size: 11px; }
.project-note-meta strong { color: #26324a; font-size: 12px; }
.project-note-item p { margin: 0; color: #344054; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.project-note-item button { justify-self: end; border: 1px solid #f0c8c8; border-radius: 7px; background: #fff7f7; color: #b42318; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.project-note-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.project-note-form textarea { width: 100%; min-width: 0; resize: vertical; border: 1px solid #dfe3eb; border-radius: 8px; padding: 10px; font: inherit; }
.project-note-form button { min-height: 40px; white-space: nowrap; }
.project-note-form .form-message { grid-column: 1 / -1; }
.status-label { color: #6d7587; font-size: 10px; margin-left: 7px; }
.timeline-view { grid-template-columns: 1fr; }
.timeline-card { min-width: 0; background: white; border: 1px solid #e4e7ef; border-radius: 14px; padding: 20px; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.timeline-head h2 { margin: 3px 0 0; font-size: 20px; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 12px; color: #667085; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.timeline-legend span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-legend i { width: 18px; height: 8px; border-radius: 999px; }
.timeline-legend .project { background: #7c8cff; }
.timeline-legend .detail { background: #4f63e8; }
.timeline-legend .business { background: #f97316; }
.timeline-legend .personal { background: #a855f7; }
.timeline-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; padding: 12px; border-radius: 10px; background: #f5f7fb; }
.timeline-filter label { margin: 0; font-size: 11px; }
.timeline-filter select { background: white; }
.timeline-scroll { max-height: calc(100vh - 330px); min-height: 420px; overflow: auto; border: 1px solid #edf0f5; border-radius: 10px; background: #fbfcff; }
.timeline-chart { display: grid; min-width: 1160px; grid-auto-rows: minmax(66px, auto); align-items: stretch; padding: 0 10px 10px; }
.timeline-label { position: sticky; left: 0; z-index: 2; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: #fbfcff; border-right: 1px solid #e4e7ef; padding: 10px 12px; box-shadow: 8px 0 12px #fbfcff; }
.timeline-label strong { color: #172033; font-size: 13px; line-height: 1.35; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.timeline-label span { color: #7a8498; font-size: 11px; line-height: 1.3; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.timeline-header-label { top: 0; z-index: 6; min-height: 40px; color: #667085; font-size: 12px; font-weight: 800; border-bottom: 1px solid #e4e7ef; }
.timeline-day-head { position: sticky; top: 0; z-index: 5; min-height: 40px; display: grid; place-items: center; border-bottom: 1px solid #e4e7ef; background: #fbfcff; color: #667085; font-size: 11px; font-weight: 800; }
.timeline-bar { min-width: 0; align-self: center; height: 24px; display: flex; align-items: center; border-radius: 999px; color: white; font-size: 10px; font-weight: 800; padding: 0 10px; box-shadow: 0 5px 12px #26324a18; overflow: hidden; }
.timeline-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-bar.project { background: #7c8cff; }
.timeline-bar.detail { background: #4f63e8; }
.timeline-bar.business { background: #f97316; }
.timeline-bar.personal { background: #a855f7; }
.timeline-bar.done { opacity: 0.65; text-decoration: line-through; }
.timeline-bar.hold { background: #8b5cf6; }
.timeline-group-row { grid-column: 1 / -1; position: sticky; left: 0; z-index: 3; align-self: center; padding: 8px 12px; border-top: 1px solid #e4e7ef; border-bottom: 1px solid #e4e7ef; background: #eef0ff; color: #344054; font-size: 12px; font-weight: 900; }
.timeline-empty { grid-column: 1 / -1; padding: 24px; color: #7a8498; text-align: center; }
.organization-view { grid-template-columns: 1fr; }
.organization-page-card { padding: 22px; background: white; border: 1px solid #dfe3eb; border-radius: 14px; }
.organization-page-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 16px; }
.organization-page-head h2 { margin: 4px 0 6px; font-size: 22px; }
.organization-page-head p:not(.eyebrow) { margin: 0; color: #667085; font-size: 13px; }
.organization-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.organization-actions button { min-width: 72px; box-shadow: none; }
.organization-actions button.active { border-color: #5b6cf9; background: #eef0ff; color: #4d59f0; }
.organization-message { min-height: 18px; margin: 0 0 12px; color: #667085; font-size: 12px; font-weight: 700; }
.organization-chart { display: block; position: relative; overflow: auto; min-height: 560px; border: 1px solid #e4e7ef; border-radius: 12px; background: #f8fafc; }
.organization-chart.editing { background: #f4f6ff; cursor: default; }
.organization-canvas { position: relative; min-width: 0; flex: none; }
.organization-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.organization-lines path { fill: none; stroke: #9aa4b2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.organization-chart.removing-lines .organization-lines { pointer-events: auto; }
.organization-chart.removing-lines .organization-lines path { pointer-events: stroke; cursor: pointer; stroke: #ef4444; stroke-width: 4; }
.organization-node { position: absolute; display: grid; gap: 4px; width: 180px; min-height: 76px; padding: 12px 14px; border: 1px solid #dfe3eb; border-radius: 9px; background: white; color: #172033; text-align: left; box-shadow: 0 8px 18px #17203312; touch-action: none; }
.organization-node.department { border-color: #5b6cf9; background: #eef0ff; }
.organization-node.user { border-color: #f2c94c; background: #fff9e8; }
.organization-node.selected { outline: 3px solid #4d59f0; outline-offset: 2px; }
.organization-node strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.organization-node span { color: #667085; font-size: 12px; font-weight: 800; }
.organization-chart.editing .organization-node { cursor: grab; }
.organization-chart.editing .organization-node:active { cursor: grabbing; }
.files-view { grid-template-columns: 1fr; }
.files-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 680px; overflow: hidden; border: 1px solid #dfe5ee; border-radius: 8px; background: #fff; box-shadow: 0 12px 32px #1720330a; }
.files-sidebar { overflow: auto; border-right: 1px solid #dfe5ee; background: #f7f9fc; padding: 12px 10px; }
.files-sidebar-title { margin-bottom: 8px; color: #334155; font-weight: 900; }
.files-tree { display: grid; gap: 2px; }
.files-tree-node { display: grid; gap: 2px; }
.files-tree-line { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; border-radius: 6px; }
.files-tree-line.active, .files-tree-line:hover { background: #e7eef8; color: #172033; }
.files-tree-line:focus { outline: 2px solid #5b6cf9; outline-offset: 1px; }
.files-tree-toggle { width: 22px; height: 26px; border: 0; background: transparent; color: #475267; font-size: 12px; font-weight: 900; cursor: pointer; }
.files-tree-toggle:disabled { cursor: default; opacity: .3; }
.files-tree-button { overflow: hidden; width: 100%; border: 0; background: transparent; color: #334155; text-align: left; text-overflow: ellipsis; white-space: nowrap; padding: 7px 8px 7px 2px; font-size: 12px; font-weight: 800; cursor: pointer; }
.files-tree-children { margin-left: 12px; border-left: 1px solid #d9e1ec; padding-left: 5px; }
.files-workspace { display: grid; grid-template-rows: auto auto auto auto 1fr; min-width: 0; background: #fff; }
.files-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) 220px; align-items: center; gap: 8px; border-bottom: 1px solid #e7edf5; background: #fbfdff; padding: 10px 12px; }
.files-nav-buttons { display: flex; gap: 4px; }
.files-nav-buttons button { min-width: 36px; min-height: 34px; padding: 6px 9px; }
.files-path { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
.files-path button { overflow: hidden; max-width: 180px; border: 1px solid #dce5ef; border-radius: 6px; background: #fff; color: #475267; text-overflow: ellipsis; white-space: nowrap; padding: 6px 9px; font-size: 12px; font-weight: 800; }
.files-search { width: 100%; min-height: 34px; border: 1px solid #dce5ef; border-radius: 6px; padding: 6px 10px; }
.files-actions { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #eef2f7; background: #f8fafc; padding: 8px 12px; }
.files-actions button, .file-upload-button { min-height: 34px; box-shadow: none; padding: 7px 12px; font-size: 12px; }
.file-upload-button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.file-upload-button input { display: none; }
.files-settings { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-bottom: 1px solid #eef2f7; background: #fff; padding: 10px 12px; }
.files-settings label { display: grid; gap: 5px; margin: 0; font-size: 12px; font-weight: 800; }
.files-settings input { min-height: 36px; }
.files-dropzone { position: relative; overflow: auto; min-height: 520px; }
.files-dropzone.drag-over { outline: 3px solid #5b6cf9; outline-offset: -6px; background: #f4f6ff; }
.files-drop-hint { display: none; position: absolute; inset: 50px 20px 20px; place-items: center; border: 2px dashed #5b6cf9; border-radius: 10px; background: #eef0ffdd; color: #4d59f0; font-weight: 900; pointer-events: none; }
.files-dropzone.drag-over .files-drop-hint { display: grid; }
.day-copy-trigger { display: flex; align-items: center; gap: 9px; }
.day-copy-trigger .detail-add-button { flex: 1; }
.day-copy-trigger span { flex: none; color: #68758d; font-size: 12px; font-weight: 800; white-space: nowrap; }
.files-row { display: grid; grid-template-columns: minmax(260px, 1fr) 110px 120px 170px 100px; align-items: center; gap: 10px; min-width: 820px; border-bottom: 1px solid #edf1f6; padding: 9px 12px; font-size: 12px; }
.files-row-head { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #dfe5ee; background: #f7f9fc; color: #667085; font-weight: 900; }
.files-name-button { overflow: hidden; max-width: 100%; border: 0; background: transparent; color: #172033; text-align: left; text-overflow: ellipsis; white-space: nowrap; padding: 0; font-weight: 900; cursor: pointer; }
.files-name-button.folder { color: #2f5fbd; }
.files-list .empty-message { padding: 22px; }
@media (max-width: 900px) {
  .files-card { grid-template-columns: 1fr; }
  .files-sidebar { max-height: 220px; border-right: 0; border-bottom: 1px solid #dfe5ee; }
  .files-toolbar { grid-template-columns: 1fr; }
  .files-row { grid-template-columns: minmax(220px, 1fr) 90px 100px 150px 90px; min-width: 700px; }
}
.organization-card { min-width: 0; }
.organization-card.representative-department { grid-column: 1 / -1; }
.organization-card-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #eef1f6; }
.organization-card-head h3 { margin: 0; font-size: 16px; }
.organization-card-head span { color: #667085; font-size: 12px; font-weight: 700; }
.organization-team { margin-top: 12px; border: 1px solid #eef1f6; border-radius: 10px; background: #fbfcff; padding: 12px; }
.organization-team h4 { margin: 0 0 10px; color: #4d59f0; font-size: 12px; letter-spacing: 0; }
.organization-team ul { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.organization-team li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: white; border: 1px solid #edf0f5; }
.organization-member-name { font-weight: 800; color: #172033; }
.organization-member-position { color: #667085; font-size: 12px; font-weight: 800; white-space: nowrap; }
.suggestions-view { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.suggestion-card { background: white; border: 1px solid #e4e7ef; border-radius: 14px; padding: 20px; }
.suggestion-card h2 { margin: 3px 0 18px; font-size: 20px; }
.suggestion-form { padding: 0; }
.suggestion-form-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.suggestion-form-actions .submit { margin-top: 0; }
.suggestion-list-card { min-width: 0; }
.suggestion-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.suggestion-list-head h2 { margin-bottom: 0; }
.suggestion-list-head span { border-radius: 999px; background: #eef0ff; color: #4d59d9; font-size: 12px; font-weight: 800; padding: 6px 10px; white-space: nowrap; }
.suggestion-list { display: grid; gap: 11px; }
.suggestion-item { border: 1px solid #e7eaf0; border-radius: 11px; padding: 14px; }
.suggestion-item-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.suggestion-item-head h3 { margin: 0; font-size: 15px; }
.suggestion-item-head span { border-radius: 6px; background: #f2f4f7; color: #596377; font-size: 10px; font-weight: 800; padding: 5px 7px; white-space: nowrap; }
.suggestion-content { margin: 12px 0; color: #445066; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.suggestion-meta { display: flex; flex-wrap: wrap; gap: 7px; color: #8a93a5; font-size: 11px; }
.suggestion-meta span:not(:last-child)::after { content: ""; }
.suggestion-actions { display: flex; gap: 6px; margin-top: 12px; }
.suggestion-actions button { border: 1px solid #dfe3eb; border-radius: 7px; background: white; color: #667085; padding: 6px 10px; font-size: 11px; font-weight: 700; }
.suggestion-actions button:hover { border-color: #bfc5fa; color: #4d59d9; }
dialog { border: 0; border-radius: 15px; padding: 0; width: min(480px, 90vw); box-shadow: 0 25px 70px #11182740; }
dialog[open] {
  overscroll-behavior: contain;
}
dialog::backdrop { background: #11182780; }
.project-manage-modal { width: min(460px, calc(100vw - 32px)); }
.project-manage-content { padding: 24px; }
.project-manage-content label { display: block; margin: 14px 0 0; color: #172033; font-size: 13px; font-weight: 800; }
.project-manage-content select { margin-top: 7px; }
.project-manage-actions { display: flex; gap: 8px; margin-top: 14px; }
.project-manage-actions button { flex: 1; box-shadow: none; }
.confirm-modal { width: min(430px, calc(100vw - 32px)); }
.confirm-modal-content { padding: 24px; }
.confirm-modal-content h2 { margin: 0 0 10px; font-size: 20px; }
.confirm-modal-content p { margin: 0; color: #344054; line-height: 1.55; }
.confirm-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.confirm-modal-actions button { min-width: 74px; box-shadow: none; }
.status-change-options { display: grid; gap: 8px; margin-top: 16px; }
.status-change-options label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 12px; border: 1px solid #dfe3eb; border-radius: 8px; background: #f8fafc; font-weight: 800; }
.status-change-options input { width: auto; margin: 0; }
.day-tasks-modal { width: min(440px, calc(100vw - 28px)); max-height: 78vh; }
.day-tasks-modal-content { padding: 22px; overflow-y: auto; max-height: 78vh; }
.day-tasks-modal .modal-head { position: sticky; top: -22px; z-index: 1; background: white; padding: 4px 0 14px; }
.day-tasks-modal .modal-head h2 { margin: 3px 0 0; font-size: 20px; }
.history-list { display: grid; gap: 10px; }
.history-list article { border: 1px solid #e7eaf0; border-radius: 10px; padding: 12px; }
.history-list strong { display: block; font-size: 13px; margin-bottom: 5px; }
.history-list span { color: #6d7587; font-size: 12px; }
.history-list ul { display: grid; gap: 5px; margin: 10px 0 0; padding-left: 18px; color: #344054; font-size: 12px; line-height: 1.45; }
.history-list b { color: #111827; }
.department-modal { width: min(880px, calc(100vw - 28px)); max-height: 88vh; }
.department-modal-content { padding: 24px; overflow-y: auto; max-height: 88vh; background: #f7f8fb; }
.department-modal .modal-head h2 { margin: 3px 0 0; font-size: 21px; }
.department-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.department-section { border: 1px solid #e4e7ef; border-radius: 13px; background: white; padding: 16px; margin-top: 14px; }
.department-section-head { margin-bottom: 13px; }
.department-section-head h3 { margin: 3px 0 0; font-size: 16px; color: #172033; }
.compact-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 0; }
.compact-form + .compact-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef1f6; }
.compact-form label { margin: 0; }
.compact-form .form-message { grid-column: 1 / -1; margin: 0; }
#department-assign-form, #department-head-form, #department-edit-form { grid-template-columns: 1fr 1fr auto; }
.department-edit-actions { display: flex; gap: 8px; }
.department-edit-actions button { white-space: nowrap; }
.department-divider { display: none; }
.department-member-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 0; }
.department-member-list article { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; border: 1px solid #e7eaf0; border-radius: 10px; padding: 11px 12px; background: #fbfcff; }
.department-member-list article.representative-department { grid-column: 1 / -1; }
.department-member-list strong { font-size: 13px; }
.department-member-list span { color: #707a8e; font-size: 12px; line-height: 1.5; }
#employee-account-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 0; }
#employee-account-form .full-row { grid-column: 1 / -1; }
#employee-account-form input[readonly] { background: #f3f6fb; color: #40566f; cursor: text; }
.employee-account-actions { display: flex; gap: 8px; }
.employee-account-actions button { flex: 1; }
form { padding: 25px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h2 { margin: 0; }
.modal-head button { border: 0; background: none; font-size: 25px; color: #778196; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; margin-bottom: 15px; }
label input, label select, label textarea { width: 100%; padding: 11px; border: 1px solid #dfe3eb; border-radius: 8px; }
label textarea { resize: vertical; font: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.undecided-check { display: flex; align-items: center; gap: 8px; width: fit-content; font-weight: 600; }
.undecided-check input { width: auto; margin: 0; }
.undecided-check + .form-row { margin-top: 2px; }
.business-edit-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px; border: 1px solid #dbe3f0; border-radius: 12px; background: #f8fafc; }
.business-edit-scope label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; }
.business-edit-scope input { width: auto; margin: 0; }
.business-edit-scope small { color: #64748b; font-weight: 700; }
.project-status-field { display: flex; gap: 14px; margin: -5px 0 15px; }
.project-status-field label { display: flex; align-items: center; gap: 7px; margin: 0; color: #586275; font-weight: 700; }
.project-status-field input { width: auto; margin: 0; }
.task-share-settings { margin: 2px 0 16px; border: 1px solid #e2e5ee; border-radius: 10px; background: #f8f9fc; padding: 14px; }
.task-assignee-picker { margin: -4px 0 16px; border: 1px solid #e2e5ee; border-radius: 10px; background: #f8f9fc; padding: 12px; }
.task-assignee-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.task-assignee-picker-head strong { font-size: 12px; }
.task-assignee-picker-head span { color: #5865e8; font-size: 11px; font-weight: 800; }
.access-management-section { margin-top: 18px; }
.access-level-help { margin: 10px 0 0; color: #667085; font-size: 11px; line-height: 1.55; }
.module-access-form { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e1e5ed; }
.module-access-form > strong { font-size: 13px; }
.module-access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.module-access-grid label { margin: 0; }
.module-restricted { display: none !important; }
@media (max-width: 720px) { .module-access-grid { grid-template-columns: 1fr 1fr; } }
.task-share-settings > label { margin-bottom: 0; }
.share-user-field { margin-top: 14px; }
.share-user-field > strong { display: block; font-size: 12px; margin-bottom: 8px; }
.share-user-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 150px; overflow-y: auto; }
.share-user-list label { display: flex; align-items: center; gap: 8px; margin: 0; border: 1px solid #e1e4ec; border-radius: 8px; background: white; padding: 9px; font-weight: 600; }
.share-user-list input { width: auto; margin: 0; }
.share-user-list span { min-width: 0; font-size: 12px; }
.share-user-list small { display: block; color: #848da0; font-size: 10px; font-weight: 500; margin-top: 2px; }
.form-message { min-height: 18px; margin: -4px 0 8px; font-size: 12px; }
.form-message.error { color: #d64545; }
.form-message.success { color: #287b64; }
.submit { width: 100%; margin-top: 5px; }
@media (max-width: 640px) {
  dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(94vw, 520px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 28px);
    margin: 0;
    transform: translate(-50%, -50%);
    overflow: hidden;
  }
  dialog > form,
  .project-manage-content,
  .confirm-modal-content,
  .day-tasks-modal-content,
  .department-modal-content {
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .day-tasks-modal,
  .department-modal {
    max-height: calc(100vh - 28px);
  }
  .app-shell { min-width: 0; }
  .login-card { padding: 27px 22px; }
  .sidebar { display: none; }
  main { width: 100%; min-width: 0; margin: 0; padding: 20px 14px; }
  header { align-items: flex-end; gap: 10px; }
  .header-actions { flex-direction: column-reverse; align-items: stretch; }
  .header-actions button { padding: 9px 10px; font-size: 12px; }
  .mobile-account { display: flex; align-items: center; gap: 8px; border: 1px solid #dfe3eb; border-radius: 10px; background: white; padding: 7px 9px; }
  .mobile-account > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #5b6cf9; color: white; font-size: 12px; font-weight: 800; }
  .mobile-account div { min-width: 0; }
  .mobile-account strong, .mobile-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-account strong { font-size: 12px; }
  .mobile-account small { color: #7a8498; font-size: 10px; margin-top: 2px; }
  .mobile-logout { display: block; }
  .schedule-scope { padding: 11px 12px; }
  .schedule-scope select { min-width: 145px; max-width: 55%; }
  header h1 { font-size: 25px; }
  .subtitle { font-size: 13px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stats article { padding: 14px; }
  .board { grid-template-columns: 1fr; }
  .personal-week-summary article { grid-template-columns: 1fr; }
  .week-summary-side { border-right: 0; border-bottom: 1px solid #e7eaf1; }
  .week-summary-content { grid-template-columns: 1fr; padding: 16px; }
  .week-summary-block { padding: 0; }
  .week-summary-block + .week-summary-block { border-left: 0; border-top: 1px solid #edf0f5; padding-top: 12px; margin-top: 12px; }
  .week-summary-item { grid-template-columns: 1fr; align-items: stretch; }
  .week-summary-actions { justify-content: flex-start; flex-wrap: wrap; }
  .toolbar input { width: 100%; }
  .toolbar select { max-width: 135px; }
  .calendar-view { grid-template-columns: 1fr; }
  .timeline-filter { grid-template-columns: 1fr; }
  .timeline-card { padding: 16px; }
  .timeline-head { flex-wrap: wrap; }
  .organization-chart { grid-template-columns: 1fr; }
  .organization-card.representative-department { grid-column: auto; }
  .suggestions-view { grid-template-columns: 1fr; }
  .suggestion-card { padding: 16px; }
  .suggestion-form-actions { grid-template-columns: 1fr; }
  .suggestion-item-head { display: grid; gap: 8px; }
  .calendar-card { width: 100%; min-width: 0; padding: 10px 6px; overflow: hidden; }
  .calendar-head { flex-wrap: wrap; gap: 10px; padding: 4px 6px; }
  .calendar-filter { grid-template-columns: 1fr; margin: 0 4px 12px; }
  .calendar-head h2 { font-size: 18px; }
  .calendar-controls { margin-left: auto; }
  .calendar-controls button { min-width: 32px; padding: 6px 8px; }
  .weekdays, .calendar-grid { width: 100%; min-width: 0; }
  .weekdays span { padding: 7px 1px; font-size: 11px; }
  .calendar-day { min-width: 0; min-height: 76px; padding: 5px 3px; }
  .calendar-day strong { font-size: 11px; margin-bottom: 3px; }
  .calendar-task { border-left-width: 2px; border-radius: 3px; font-size: 8px; margin-top: 3px; padding: 3px 2px; }
  .more-tasks { min-height: 18px; font-size: 9px; padding: 3px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .calendar-cell-editor-wrap { display: none; }
  .day-tasks-modal-content { padding: 18px; }
  .day-tasks-modal .modal-head { top: -18px; }
  .department-modal-content { padding: 18px; }
  .department-admin-grid { grid-template-columns: 1fr; }
  .compact-form, #department-assign-form, #department-head-form, #department-edit-form { grid-template-columns: 1fr; }
  .department-edit-actions { flex-direction: column; }
  .compact-form .form-message { grid-column: auto; }
  .department-member-list { grid-template-columns: 1fr; }
  .department-member-list article { grid-template-columns: 1fr; gap: 4px; }
  #employee-account-form { grid-template-columns: 1fr; }
  #employee-account-form .full-row { grid-column: auto; }
  #task-form .form-row, #schedule-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .construction-worker-item,
  .construction-worker-add { grid-template-columns: minmax(0, 1fr) 96px; }
  .construction-worker-item input[data-construction-worker-action="note"],
  .construction-worker-add input:nth-child(3) { grid-column: 1 / -1; }
  .construction-worker-item button,
  .construction-worker-add button { grid-column: 1 / -1; }
  .subtask-editor-item { grid-template-columns: 64px minmax(0, 1fr) 52px; }
  .subtask-meta-row { grid-template-columns: 1fr 1fr; }
  .subtask-meta-row input[data-subtask-action="traveler"] { grid-column: 1 / -1; }
  .inline-subtask-add-row { grid-template-columns: 1fr 1fr; }
  .inline-subtask-add-row > input[data-inline-subtask-title],
  .inline-subtask-add-row > button { grid-column: 1 / -1; }
  .project-note-form { grid-template-columns: 1fr; }
  .project-status-field { flex-direction: column; gap: 8px; }
  .share-user-list { grid-template-columns: 1fr; }
  .day-detail { position: static; }
}

@media (max-width: 420px) {
  .subtask-meta-row { grid-template-columns: minmax(0, 1fr) 72px; }
  .subtask-date-field { grid-column: 1 / -1; }
  .subtask-meta-row input[data-subtask-action="traveler"] { grid-column: 1 / -1; }
  .inline-subtask-add-row { grid-template-columns: 1fr; }
  .inline-subtask-add-row > input[data-inline-subtask-title],
  .inline-subtask-add-row > button { grid-column: auto; }
}

/* Project workspace */
.project-folder-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 8px;
  background: #fff;
}

.project-folder-list-pane {
  min-width: 0;
  padding: 20px 14px;
  border-right: 1px solid #dce3ee;
  background: #f5f7fb;
}

.project-folder-list-head h2,
.project-workspace-header h2,
.project-section-head h3 { margin: 0; }
.project-folder-list-head p,
.project-workspace-header p,
.project-section-head p { margin: 5px 0 0; color: #758096; }
.project-folder-list-head p { font-size: 12px; }

#project-folder-search {
  width: 100%;
  height: 42px;
  margin: 16px 0 8px;
}

.project-folder-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid #dce3ee;
  border-radius: 6px;
  background: #e9edf4;
}
.project-folder-filters button {
  min-width: 0;
  height: 32px;
  padding: 0 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #68748a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.project-folder-filters button.active {
  background: #fff;
  color: #2536bf;
  box-shadow: 0 1px 3px rgba(32, 45, 75, 0.12);
}

.project-folder-list {
  display: grid;
  gap: 6px;
  max-height: 660px;
  overflow: auto;
}

.project-folder-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 72px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}
.project-folder-item:hover { background: #fff; border-color: #dce3ee; }
.project-folder-item.active { background: #fff; border-color: #5968ef; box-shadow: inset 3px 0 #5968ef; }
.project-folder-icon {
  position: relative;
  width: 25px;
  height: 18px;
  border-radius: 2px;
  background: #f4b942;
}
.project-folder-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 2px;
  width: 11px;
  height: 6px;
  border-radius: 2px 2px 0 0;
  background: #f4b942;
}
.project-folder-copy { display: grid; min-width: 0; gap: 3px; }
.project-folder-copy strong,
.project-folder-copy small,
.project-folder-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-folder-copy strong { color: #111c31; font-size: 13px; }
.project-folder-copy small { color: #667189; font-size: 11px; }
.project-folder-copy em { color: #8a6370; font-size: 11px; font-style: normal; }
.project-folder-status {
  padding: 4px 6px;
  border-radius: 4px;
  background: #e9edf5;
  color: #5f697d;
  font-size: 10px;
  white-space: nowrap;
}
.project-folder-status.status-doing { background: #e8edff; color: #4054d8; }
.project-folder-status.status-done { background: #e5f5ee; color: #17795c; }

.project-folder-detail { min-width: 0; background: #fff; }
.project-folder-empty {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 650px;
  color: #7c879b;
  text-align: center;
}
.project-folder-empty strong { color: #253149; font-size: 18px; }
.project-workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e2e7ef;
}
.project-workspace-header h2 { margin-top: 4px; color: #111c31; font-size: 24px; }
.project-workspace-state {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 4px;
  background: #eef1ff;
  color: #4657dd;
  font-weight: 700;
}
.project-keyword-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-bottom: 1px solid #e2e7ef;
  background: #fafbfc;
}
.project-keyword-row label { color: #3c475d; font-size: 12px; font-weight: 700; }
.project-keyword-row input { min-width: 0; height: 40px; }
.project-keyword-row button { height: 40px; }
.project-workspace-tabs {
  display: flex;
  gap: 0;
  padding: 0 26px;
  border-bottom: 1px solid #dce3ee;
}
.project-workspace-tabs button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #69758a;
}
.project-workspace-tabs button.active { border-bottom-color: #5867ed; color: #17233b; }
.project-workspace-tabs span { margin-left: 5px; color: #6474e7; }
.project-workspace-body { min-width: 0; padding: 22px 26px 30px; }
.project-workspace-section { min-width: 0; }
.project-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.project-section-head h3 { color: #17233b; font-size: 18px; }
.project-section-head p { font-size: 12px; }
.project-section-head button { flex: 0 0 auto; }

.project-schedule-table { min-width: 950px; border: 1px solid #dce3ee; border-radius: 6px; overflow: hidden; }
.project-workspace-section:has(.project-schedule-table) { overflow-x: auto; padding-bottom: 4px; }
.project-schedule-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 100px 140px 140px minmax(130px, 1fr) 128px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid #e2e7ef;
}
.project-schedule-row:first-child { border-top: 0; }
.project-schedule-row > * { min-width: 0; margin: 0; padding: 9px 10px; border-left: 1px solid #e2e7ef; }
.project-schedule-row > *:first-child { border-left: 0; }
.project-schedule-header { min-height: 38px; background: #edf1f6; color: #49556b; font-size: 11px; font-weight: 700; }
.project-schedule-base { background: #f8faff; color: #4c5870; }
.project-schedule-row input,
.project-schedule-row select { width: calc(100% - 10px); height: 36px; margin: 5px; padding: 0 8px; }
.project-schedule-row[data-workspace-item="schedule"] { min-height: 48px; font-size: 13px; }
.project-schedule-row[data-workspace-item="schedule"] > input,
.project-schedule-row[data-workspace-item="schedule"] > select {
  width: calc(100% - 10px);
  height: 34px;
  min-height: 34px;
  margin: 5px;
  padding: 0 8px;
  box-sizing: border-box;
  font: inherit;
  line-height: 1;
}
.project-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.project-row-actions button {
  flex: 0 0 auto;
  min-width: 50px;
  height: 32px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.project-gantt-wrap { min-width: 850px; margin-top: 22px; border: 1px solid #dce3ee; border-radius: 6px; overflow: hidden; }
.project-gantt-title { display: flex; justify-content: space-between; padding: 12px 14px; background: #edf1f6; color: #4d596e; }
.project-gantt-title span { font-size: 11px; }
.project-gantt-head,
.project-gantt-row { display: grid; grid-template-columns: 240px minmax(600px, 1fr); }
.project-gantt-head { min-height: 42px; align-items: center; border-bottom: 1px solid #dce3ee; background: #f8fafc; }
.project-gantt-head > strong,
.project-gantt-label { padding: 9px 13px; border-right: 1px solid #dce3ee; }
.project-gantt-scale { position: relative; height: 100%; }
.project-gantt-scale span { position: absolute; top: 13px; transform: translateX(-50%); color: #667189; font-size: 10px; }
.project-gantt-scale span:first-child { transform: none; }
.project-gantt-scale span:last-child { transform: translateX(-100%); }
.project-gantt-row { min-height: 56px; border-bottom: 1px solid #e4e8ef; }
.project-gantt-row:last-child { border-bottom: 0; }
.project-gantt-label { display: grid; align-content: center; gap: 3px; }
.project-gantt-label strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.project-gantt-label small { color: #7a8498; font-size: 10px; }
.project-gantt-track { position: relative; min-width: 0; background-image: linear-gradient(to right, #e7ebf2 1px, transparent 1px); background-size: 20% 100%; }
.project-gantt-bar {
  position: absolute;
  top: 15px;
  min-width: 20px;
  height: 26px;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 4px;
  background: #6474ec;
  color: #fff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-gantt-bar.base { background: #263856; }

.project-detail-list,
.project-note-list { display: grid; gap: 10px; }
.project-workspace-body .project-note-list {
  max-height: none;
  overflow: visible;
  align-content: start;
}
.project-detail-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) 100px 100px 92px 145px minmax(130px, 1fr) 110px;
  align-items: end;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dce3ee;
  border-radius: 6px;
  background: #fff;
}
.project-detail-main { display: grid; gap: 6px; }
.project-detail-row label { display: grid; gap: 4px; color: #657187; font-size: 10px; }
.project-detail-row input,
.project-detail-row select { width: 100%; height: 36px; }
.project-detail-row textarea { width: 100%; resize: vertical; }
.project-detail-progress { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 3px; background: #e8ebf2; }
.project-detail-progress span { display: block; height: 100%; background: #5867ed; }
.project-note-row { display: grid; gap: 8px; padding: 14px; border: 1px solid #dce3ee; border-radius: 6px; background: #fff; }
.project-note-row input { height: 40px; font-weight: 700; }
.project-note-row textarea { width: 100%; resize: vertical; }
.project-note-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #768197; font-size: 11px; }
.project-workspace-empty,
.project-workspace-error,
.project-folder-list-empty { padding: 24px; color: #7b869a; text-align: center; }

@media (max-width: 1080px) {
  .project-folder-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .project-folder-item { grid-template-columns: 24px minmax(0, 1fr); }
  .project-folder-status { display: none; }
  .project-detail-row { grid-template-columns: minmax(230px, 2fr) repeat(3, 96px); overflow-x: auto; }
  .project-detail-row label:nth-of-type(4),
  .project-detail-row label:nth-of-type(5) { grid-row: 2; }
}

@media (max-width: 720px) {
  .project-folder-shell { display: block; min-height: 0; overflow: visible; }
  .project-folder-list-pane { border-right: 0; border-bottom: 1px solid #dce3ee; }
  .project-folder-list { max-height: 250px; }
  .project-workspace-header,
  .project-section-head { align-items: flex-start; }
  .project-workspace-header { padding: 18px 16px 14px; }
  .project-workspace-header h2 { font-size: 19px; }
  .project-keyword-row { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .project-keyword-row label { grid-column: 1 / -1; }
  .project-workspace-tabs { overflow-x: auto; padding: 0 10px; }
  .project-workspace-tabs button { flex: 1 0 auto; padding: 0 12px; }
  .project-workspace-body { padding: 16px; }
  .project-detail-row { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .project-detail-main,
  .project-detail-progress,
  .project-detail-row .project-row-actions { grid-column: 1 / -1; }
  .project-detail-row label:nth-of-type(4),
  .project-detail-row label:nth-of-type(5) { grid-row: auto; }
  .project-note-meta { align-items: flex-start; flex-direction: column; }
}
