/* EnergioTask public styles */

.login-screen { position: fixed; inset: 0; z-index: 1000; min-height: 100vh; display: grid; place-items: center; overflow: auto; padding: 1.5rem; background: #f7f8fb; }
.login-screen[hidden] { display: none; }
.login-card { width: min(100%, 24rem); display: grid; gap: 1rem; padding: 2rem; border: 1px solid #e0e3ea; border-radius: 1rem; background: #fff; box-shadow: 0 1rem 3rem rgb(20 28 45 / 10%); }
.login-card h1 { margin: 0; }
.login-card label { display: grid; gap: .35rem; font-weight: 600; }
.login-card input { padding: .7rem .8rem; border: 1px solid #c9ced8; border-radius: .5rem; font: inherit; }
.login-error { margin: 0; color: #b42318; font-size: .9rem; }
:root {
  color-scheme: light;
  --ink: #1d2333;
  --ink-strong: #111624;
  --muted: #7d8494;
  --muted-strong: #606878;
  --line: #e7e9ef;
  --line-strong: #dfe2ea;
  --canvas: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f3f7;
  --surface-tint: #f1f0ff;
  --accent: #6556f4;
  --accent-strong: #5343e7;
  --accent-soft: #eceaff;
  --success: #27a477;
  --success-soft: #e7f7f1;
  --warning: #e2a122;
  --warning-soft: #fff5dd;
  --danger: #dc6471;
  --danger-soft: #fff0f2;
  --sidebar-width: 236px;
  --panel-width: 364px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(29, 35, 51, 0.035), 0 4px 14px rgba(29, 35, 51, 0.025);
  --shadow-panel: -12px 0 34px rgba(29, 35, 51, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(101, 86, 244, 0.24);
  outline-offset: 2px;
}

::selection {
  background: rgba(101, 86, 244, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink-strong);
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100svh;
}

.app-shell.panel-open {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--panel-width);
}

.sidebar {
  display: flex;
  position: relative;
  z-index: 2;
  flex-direction: column;
  min-height: 100svh;
  padding: 22px 14px 14px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 24px;
}

.brand-mark {
  display: grid;
  position: relative;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ink-strong);
  box-shadow: 0 2px 6px rgba(17, 22, 36, 0.16);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  display: block;
  content: "";
  border-radius: 50%;
}

.brand-mark::before {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.26);
}

.brand-mark::after {
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.62);
}

.brand-mark span:first-child {
  width: 5px;
  height: 5px;
  background: #fff;
}

.brand-mark span:last-child {
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-name {
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -0.06em;
}

.brand-product {
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.17em;
}

.workspace-switcher {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.workspace-switcher:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 16px rgba(29, 35, 51, 0.05);
}

.workspace-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #e9e7ff;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.workspace-switcher-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.workspace-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.workspace-switcher-copy strong {
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-nav {
  display: grid;
  gap: 3px;
  margin-top: 26px;
}

.nav-eyebrow {
  margin: 0;
  color: #a2a8b5;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-nav .nav-eyebrow {
  margin: 0 10px 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  min-height: 37px;
  gap: 11px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 540;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.nav-item:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-item.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 680;
}

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

.nav-count {
  min-width: 20px;
  margin-left: auto;
  color: #a0a6b2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.nav-item.is-active .nav-count {
  color: var(--accent);
}

.nav-count-accent {
  color: var(--warning);
}

.sidebar-section {
  margin-top: 30px;
}

.sidebar-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  padding: 0 10px;
}

.section-meta {
  color: #a5abb6;
  font-size: 10px;
}

.project-list,
.team-list {
  display: grid;
  gap: 3px;
  margin-top: 7px;
}

.team-row {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  gap: 10px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.team-row:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.project-row.is-selected {
  background: var(--surface-soft);
  color: var(--ink-strong);
  font-weight: 650;
}

.project-row {
  display: flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  color: var(--muted-strong);
  transition: background 150ms ease, color 150ms ease;
}

.project-row:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.project-main-button {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  align-self: stretch;
  gap: 10px;
  padding: 0 4px 0 10px;
  color: inherit;
  text-align: left;
}

.project-main-button span:nth-child(2) {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-edit-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #a1a7b2;
  opacity: 0;
}

.project-row:hover .project-edit-button,
.project-edit-button:focus-visible {
  opacity: 1;
}

.project-edit-button:hover {
  background: rgba(101, 86, 244, 0.09);
  color: var(--accent);
}

.empty-projects {
  margin: 8px 10px;
  color: #a1a7b2;
  font-size: 10px;
  line-height: 1.5;
}

.project-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--project-color, var(--accent));
}

.project-row span:nth-child(2) {
  overflow: hidden;
  min-width: 0;
  flex: 1;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-count {
  color: #a1a7b2;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.project-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(33, 38, 54, 0.22);
}

.project-dialog::backdrop {
  background: rgba(31, 35, 48, 0.38);
  backdrop-filter: blur(2px);
}

.project-form {
  display: grid;
}

.project-dialog-header,
.project-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.project-dialog-header {
  border-bottom: 1px solid var(--line);
}

.project-dialog-header h2 {
  margin: 2px 0 0;
  color: var(--ink-strong);
  font-size: 17px;
}

.project-form-fields {
  display: grid;
  gap: 16px;
  padding: 22px 20px;
}

.project-form-field {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 650;
}

.project-form-field input[type="text"],
.project-form-field input[type="password"] {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
}

.project-form-field input[type="text"]:focus,
.project-form-field input[type="password"]:focus {
  border-color: rgba(101, 86, 244, 0.5);
  box-shadow: 0 0 0 3px rgba(101, 86, 244, 0.09);
}

.project-form-field input[type="color"] {
  width: 54px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.project-dialog-footer {
  border-top: 1px solid var(--line);
}

.project-dialog-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.form-guidance {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.team-row {
  gap: 9px;
}

.team-row span:nth-child(2) {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0;
  font-size: 11px;
  line-height: 1.2;
}

.team-row small {
  color: #a1a7b2;
  font-size: 9px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 14px 10px 2px;
  border-top: 1px solid var(--line);
  color: #999fac;
  font-size: 10px;
}

.sync-status {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.sync-status span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #bcc1cb;
}

.status-dot.is-live {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(39, 164, 119, 0.11);
}

.version-label {
  flex: 0 0 auto;
  color: #b2b7c0;
  font-variant-numeric: tabular-nums;
}

.main-workspace {
  min-width: 0;
  background: var(--canvas);
}

.topbar {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 15;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(10px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 580;
}

.breadcrumb-muted {
  color: #a3a9b4;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #888f9d;
  font-size: 10px;
  font-weight: 600;
}

.topbar-icon {
  position: relative;
}

/* .icon-button(後方定義)との詳細度競合を避けるため .topbar を付ける */
.topbar .sidebar-toggle {
  display: none;
}

.notification-menu-wrap {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--canvas);
  border-radius: 50%;
  background: var(--danger);
}

.notification-dot[hidden],
.notification-panel[hidden],
.profile-panel[hidden] {
  display: none;
}

.notification-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--surface);
  box-shadow: 0 20px 54px rgba(29, 35, 51, 0.18);
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px;
  border-bottom: 1px solid var(--line);
}

.notification-panel-header h2 {
  margin: 2px 0 0;
  color: var(--ink-strong);
  font-size: 15px;
}

.notification-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-unread-count {
  color: #9ca3af;
  font-size: 9px;
  font-weight: 650;
}

.notification-list {
  display: grid;
  max-height: min(430px, calc(100vh - 110px));
  overflow-y: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted-strong);
  text-align: left;
  transition: background 150ms ease;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover,
.notification-item:focus-visible {
  outline: none;
  background: var(--surface-soft);
}

.notification-item.is-unread {
  background: rgba(101, 86, 244, 0.045);
}

.notification-kind {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.notification-kind.is-overdue {
  background: var(--danger-soft);
  color: var(--danger);
}

.notification-kind.is-today {
  background: #fff3d9;
  color: #c38316;
}

.notification-copy,
.notification-item-topline {
  display: flex;
  min-width: 0;
}

.notification-copy {
  flex-direction: column;
  gap: 4px;
  font-size: 9px;
  line-height: 1.45;
}

.notification-item-topline {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-item-topline strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-topline > span {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 8px;
  font-weight: 680;
}

.notification-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 22px;
  color: #a3a9b4;
  text-align: center;
}

.notification-empty > .icon {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
}

.notification-empty strong {
  color: var(--muted-strong);
  font-size: 11px;
}

.notification-empty span:last-child {
  max-width: 240px;
  font-size: 9px;
  line-height: 1.6;
}

.profile-menu-wrap {
  position: relative;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  padding: 4px 8px 4px 5px;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.profile-button:hover,
.profile-button[aria-expanded="true"] {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.profile-trigger-copy {
  display: grid;
  min-width: 66px;
  line-height: 1.15;
}

.profile-trigger-copy strong {
  overflow: hidden;
  max-width: 112px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trigger-copy > span {
  color: #a2a8b3;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.profile-button > .icon-chevron {
  color: #9ca3af;
  transition: transform 160ms ease;
}

.profile-button[aria-expanded="true"] > .icon-chevron {
  transform: rotate(180deg);
}

.profile-panel {
  position: absolute;
  z-index: 35;
  top: calc(100% + 10px);
  right: 0;
  width: min(286px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 54px rgba(29, 35, 51, 0.18);
}

.profile-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(101, 86, 244, 0.055), rgba(255, 255, 255, 0) 68%);
}

.profile-panel-avatar {
  width: 38px;
  height: 38px;
  font-size: 12px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.82);
}

.profile-panel-identity {
  display: grid;
  min-width: 0;
  flex: 1;
}

.profile-panel-identity > strong {
  overflow: hidden;
  margin-top: 1px;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-email {
  overflow: hidden;
  margin-top: 1px;
  color: #8f96a4;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu {
  display: grid;
  padding: 6px;
}

.profile-menu-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 9px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  outline: none;
  background: var(--surface-soft);
  color: var(--ink);
}

.profile-menu-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-tint);
  color: var(--accent);
}

.profile-menu-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.profile-menu-item strong {
  font-size: 10px;
  font-weight: 680;
}

.profile-menu-item small {
  margin-top: 2px;
  color: #9da4b0;
  font-size: 8px;
}

.profile-menu-item > .icon-chevron-right {
  color: #aeb4be;
}

.profile-menu-item.is-logout {
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
}

.profile-menu-item.is-logout .profile-menu-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.profile-session-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 8px 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: #9ca3af;
  font-size: 8px;
  font-weight: 620;
}

.workspace-content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 34px 32px 42px;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9299a8;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.eyebrow-bar {
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.page-intro h1 {
  margin: 9px 0 5px;
  color: var(--ink-strong);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.page-intro-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
}

.today-label {
  color: var(--muted-strong);
  font-weight: 650;
}

.refresh-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a1a7b2;
  font-variant-numeric: tabular-nums;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 29px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-item {
  display: grid;
  position: relative;
  align-content: center;
  min-height: 77px;
  gap: 4px;
  padding: 15px 22px;
  border-right: 1px solid var(--line);
}

.summary-item:first-child {
  padding-left: 0;
}

.summary-item:last-child {
  border-right: 0;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #949baa;
  font-size: 10px;
  font-weight: 600;
}

.summary-value {
  color: var(--ink-strong);
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1;
}

.summary-helper {
  margin-left: 3px;
  color: #abb0ba;
  font-size: 10px;
  font-weight: 500;
}

.summary-item.is-warning .summary-value {
  color: var(--danger);
}

.summary-item.is-progress .summary-value {
  color: var(--accent-strong);
}

.summary-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8aebb;
}

.summary-mark.is-today {
  background: var(--warning);
}

.summary-mark.is-progress {
  background: var(--accent);
}

.summary-mark.is-danger {
  background: var(--danger);
}

.overview-workspace[hidden],
.board-workspace[hidden] {
  display: none;
}

.overview-workspace {
  margin-top: 31px;
}

.overview-heading-row,
.overview-card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.overview-heading-row {
  margin-bottom: 15px;
}

.overview-kicker,
.overview-card-eyebrow {
  color: #9ba2af;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.overview-heading-row h2 {
  margin: 4px 0 3px;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 740;
  letter-spacing: -0.025em;
}

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

.overview-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  align-items: stretch;
  gap: 12px;
}

.overview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 25px rgba(29, 35, 51, 0.035);
}

.overview-card-heading {
  align-items: center;
  min-height: 64px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
}

.overview-card-heading h3 {
  margin: 3px 0 0;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 710;
}

.overview-card-count {
  color: #a1a7b2;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.overview-focus-list,
.overview-project-list,
.overview-team-list {
  display: grid;
}

.overview-focus-item {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto 12px;
  align-items: center;
  min-height: 62px;
  gap: 12px;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  text-align: left;
  transition: background 150ms ease, transform 150ms ease;
}

.overview-focus-item:last-child {
  border-bottom: 0;
}

.overview-focus-item:hover,
.overview-focus-item:focus-visible {
  outline: none;
  background: var(--surface-soft);
}

.overview-focus-item:hover .icon-chevron-right {
  transform: translateX(2px);
}

.overview-focus-accent {
  align-self: stretch;
  border-radius: 0 99px 99px 0;
  background: #bdc2cc;
}

.overview-focus-accent.is-danger {
  background: var(--danger);
}

.overview-focus-accent.is-today {
  background: var(--warning);
}

.overview-focus-accent.is-review {
  background: #e3a126;
}

.overview-focus-accent.is-upcoming {
  background: var(--accent);
}

.overview-focus-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.overview-focus-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-focus-meta {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  gap: 6px;
  color: #a0a6b1;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-focus-due {
  display: grid;
  justify-items: end;
  min-width: 66px;
  gap: 2px;
  color: #a1a7b2;
  font-size: 8px;
}

.overview-focus-due strong {
  color: var(--muted-strong);
  font-size: 9px;
}

.overview-focus-due.is-danger strong {
  color: var(--danger);
}

.overview-focus-due.is-today strong {
  color: #c17f13;
}

.overview-focus-item .icon-chevron-right {
  color: #b3b8c2;
  transition: transform 150ms ease;
}

.overview-empty-focus,
.overview-small-empty {
  display: grid;
  justify-items: center;
  text-align: center;
}

.overview-empty-focus {
  min-height: 260px;
  align-content: center;
  gap: 7px;
  padding: 30px;
}

.overview-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border: 1px solid rgba(101, 86, 244, 0.15);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.overview-empty-focus strong {
  color: var(--ink);
  font-size: 12px;
}

.overview-empty-focus > span:not(.overview-empty-icon) {
  max-width: 350px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.overview-empty-focus .secondary-button {
  margin-top: 7px;
}

.overview-health-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 18px 16px;
}

.overview-progress-ring {
  display: grid;
  position: relative;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--overview-progress), #ebeef3 0);
}

.overview-progress-ring::before {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.overview-progress-ring > span {
  display: grid;
  position: relative;
  justify-items: center;
  color: #a1a7b2;
  font-size: 8px;
}

.overview-progress-ring strong {
  color: var(--ink-strong);
  font-size: 20px;
  letter-spacing: -0.05em;
}

.overview-health-copy {
  display: grid;
  gap: 2px;
}

.overview-health-copy > strong {
  color: var(--ink-strong);
  font-size: 22px;
  letter-spacing: -0.045em;
}

.overview-health-copy > strong span {
  color: #a8aeb8;
  font-size: 12px;
}

.overview-health-copy > span {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 650;
}

.overview-health-copy small {
  margin-top: 4px;
  color: #a2a8b3;
  font-size: 8px;
}

.overview-status-list {
  display: grid;
  gap: 11px;
  padding: 0 18px 20px;
}

.overview-status-row {
  display: grid;
  grid-template-columns: 9px 70px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 9px;
}

.overview-status-row > strong {
  color: var(--ink);
  font-size: 9px;
  text-align: right;
}

.overview-status-track,
.overview-project-progress {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: #eceef2;
}

.overview-status-track > span {
  display: block;
  width: var(--status-width);
  height: 100%;
  border-radius: inherit;
  background: var(--status-color);
}

.overview-project-row {
  display: grid;
  grid-template-columns: 8px minmax(115px, 0.8fr) minmax(80px, 1fr) 34px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  text-align: left;
  transition: background 150ms ease;
}

.overview-project-row:last-child,
.overview-member-row:last-child {
  border-bottom: 0;
}

.overview-project-row:hover,
.overview-project-row:focus-visible,
.overview-member-row:hover,
.overview-member-row:focus-visible {
  outline: none;
  background: var(--surface-soft);
}

.overview-project-copy,
.overview-member-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.overview-project-copy strong,
.overview-member-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-project-copy span,
.overview-member-copy span {
  color: #a2a8b2;
  font-size: 8px;
}

.overview-project-progress > span {
  display: block;
  width: var(--project-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.overview-project-percent {
  color: var(--muted-strong);
  font-size: 9px;
  text-align: right;
}

.overview-member-row {
  display: grid;
  grid-template-columns: 28px minmax(80px, 1fr) 38px 58px;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  text-align: left;
  transition: background 150ms ease;
}

.overview-member-total {
  display: grid;
  justify-items: end;
  color: #a2a8b2;
  font-size: 7px;
}

.overview-member-total strong {
  color: var(--ink-strong);
  font-size: 15px;
}

.overview-member-alert {
  justify-self: end;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #388a6d;
  font-size: 7px;
  font-weight: 680;
  white-space: nowrap;
}

.overview-member-alert.is-visible {
  background: var(--danger-soft);
  color: var(--danger);
}

.overview-small-empty {
  min-height: 150px;
  align-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  font-size: 9px;
}

.board-workspace {
  margin-top: 31px;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
}

.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-tab {
  position: relative;
  padding: 8px 11px;
  border-radius: 7px;
  background: transparent;
  color: #949baa;
  font-size: 11px;
  font-weight: 650;
  transition: background 150ms ease, color 150ms ease;
}

.view-tab:hover {
  color: var(--ink);
}

.view-tab.is-active {
  background: var(--surface);
  color: var(--ink-strong);
  box-shadow: var(--shadow-sm);
}

.view-tab.is-active::after {
  position: absolute;
  right: 11px;
  bottom: -5px;
  left: 11px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
}

.board-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.search-field,
.select-field,
.filter-button {
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #8b92a0;
  box-shadow: 0 1px 1px rgba(29, 35, 51, 0.015);
}

.search-field {
  width: 185px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.search-field input::placeholder {
  color: #aab0bb;
}

.search-field kbd {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-soft);
  color: #a1a7b2;
  font-size: 10px;
  line-height: 1;
}

.select-field {
  position: relative;
  min-width: 124px;
}

.select-field select {
  min-width: 0;
  max-width: 130px;
  padding: 0 14px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 560;
}

.select-field::after {
  position: absolute;
  right: 9px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #a4aab5;
  border-bottom: 1.5px solid #a4aab5;
  content: "";
  pointer-events: none;
  transform: rotate(45deg) translateY(-2px);
}

.filter-button {
  border-color: var(--line);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease;
}

.filter-button:hover,
.filter-button[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.filters-toggle {
  display: none;
}

.board-filters {
  display: contents;
}

.filters-badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.filters-badge[hidden] {
  display: none;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 7px;
  padding: 0 10px 0 11px;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(101, 86, 244, 0.18);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.primary-button:hover {
  background: var(--accent-strong);
  box-shadow: 0 7px 16px rgba(101, 86, 244, 0.24);
  transform: translateY(-1px);
}

.button-shortcut {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
}

.status-menu-wrap {
  position: relative;
}

.status-menu {
  display: grid;
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  width: 205px;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 15px 35px rgba(29, 35, 51, 0.12);
}

.status-menu[hidden] {
  display: none;
}

.status-menu-heading {
  padding: 3px 7px 7px;
  color: #a0a6b2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  padding: 8px 7px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 11px;
  text-align: left;
}

.status-toggle:hover {
  background: var(--surface-soft);
}

.status-toggle input {
  accent-color: var(--accent);
}

.status-toggle-count {
  margin-left: auto;
  color: #a4aab5;
  font-size: 10px;
}

.board-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.board-heading-row h2 {
  display: inline;
  margin: 0;
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.board-count {
  margin-left: 9px;
  color: #a0a6b1;
  font-size: 10px;
}

.board-heading-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.drag-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #adb2bc;
  font-size: 10px;
}

.tap-hint {
  display: none;
  align-items: center;
  gap: 6px;
  color: #adb2bc;
  font-size: 10px;
}

.status-segments {
  display: none;
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(215px, 1fr));
  align-items: start;
  gap: 12px;
  margin-top: 13px;
  padding-bottom: 7px;
  overflow-x: auto;
  scrollbar-color: #d9dce4 transparent;
  scrollbar-width: thin;
}

.board:has(.board-column:nth-child(1):last-child),
.board:has(.board-column:nth-child(2):last-child),
.board:has(.board-column:nth-child(3):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.board-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  min-height: 360px;
  border-top: 2px solid var(--column-color, #bcc1ca);
  border-radius: 10px 10px 0 0;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 57px;
  padding: 0 4px 0 1px;
}

.column-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.column-status-marker {
  width: 8px;
  height: 8px;
  border: 2px solid var(--column-color, #a3a9b4);
  border-radius: 50%;
}

.column-title-copy {
  display: grid;
  gap: 0;
}

.column-title {
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 730;
  line-height: 1.1;
}

.column-title-en {
  color: #a2a8b3;
  font-size: 9px;
}

.column-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: #969daa;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.column-add-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 6px;
  background: transparent;
  color: #adb3bd;
  transition: background 150ms ease, color 150ms ease;
}

.column-add-button:hover {
  background: var(--surface-soft);
  color: var(--accent);
}

.column-header .column-count + .column-add-button {
  margin-left: 6px;
}

.column-dropzone {
  display: grid;
  align-content: start;
  min-height: 280px;
  gap: 8px;
  padding: 8px 0 10px;
  border-radius: 9px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.column-dropzone.is-drag-target {
  background: rgba(101, 86, 244, 0.05);
  box-shadow: inset 0 0 0 1px rgba(101, 86, 244, 0.14);
}

.empty-column-state {
  display: grid;
  place-items: center;
  min-height: 110px;
  margin: 1px 0;
  border: 1px dashed #dfe2ea;
  border-radius: 9px;
  color: #b0b5bf;
  font-size: 10px;
}

.task-card {
  display: grid;
  position: relative;
  gap: 12px;
  min-height: 137px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.task-card:hover,
.task-card:focus-visible {
  border-color: #d6d9e5;
  box-shadow: 0 7px 20px rgba(29, 35, 51, 0.07);
  transform: translateY(-2px);
}

.task-card:active {
  cursor: grabbing;
}

.task-card.is-dragging {
  opacity: 0.42;
  transform: rotate(1deg) scale(0.985);
}

.task-card.is-selected {
  border-color: rgba(101, 86, 244, 0.42);
  box-shadow: 0 0 0 3px rgba(101, 86, 244, 0.08), var(--shadow-sm);
}

.task-card.is-overdue {
  border-left: 3px solid var(--danger);
  padding-left: 12px;
}

.task-card.is-done {
  background: rgba(255, 255, 255, 0.7);
}

.task-card-topline,
.task-card-footer,
.card-assignee,
.card-due {
  display: flex;
  align-items: center;
}

.task-card-topline {
  justify-content: space-between;
  gap: 8px;
}

.project-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #949baa;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.project-label .project-dot {
  width: 5px;
  height: 5px;
}

.card-more {
  display: inline-grid;
  position: relative;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #b5bac3;
}

.task-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-card.is-done h3 {
  color: #737b89;
  text-decoration: line-through;
  text-decoration-color: #c3c7d0;
}

.task-card-footer {
  justify-content: space-between;
  gap: 7px;
  margin-top: auto;
}

.card-assignee {
  min-width: 0;
  gap: 6px;
  color: #949baa;
  font-size: 10px;
}

.card-assignee-name {
  overflow: hidden;
  max-width: 83px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-assignee-avatars {
  display: inline-flex;
  flex: 0 0 auto;
}

.card-assignee-avatars .avatar + .avatar {
  margin-left: -5px;
  box-shadow: 0 0 0 2px var(--surface);
}

.card-due {
  gap: 5px;
  color: #8c94a2;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-due.is-today {
  color: var(--warning);
  font-weight: 650;
}

.card-due.is-overdue {
  color: var(--danger);
  font-weight: 680;
}

.overdue-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: -4px;
  color: var(--danger);
  font-size: 9px;
  font-weight: 700;
}

.priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.02em;
  line-height: 1;
}

.priority-chip::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.priority-high {
  background: var(--danger-soft);
  color: #d35e6b;
}

.priority-normal {
  background: #f1f2f6;
  color: #7f8796;
}

.priority-low {
  background: #eef7f4;
  color: #4a9b81;
}

.add-task-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 33px;
  gap: 6px;
  margin-top: 1px;
  border-radius: 7px;
  background: transparent;
  color: #adb3bd;
  font-size: 10px;
  font-weight: 620;
  transition: background 150ms ease, color 150ms ease;
}

.add-task-inline:hover {
  background: var(--surface-soft);
  color: var(--accent);
}

.card-menu {
  display: grid;
  position: fixed;
  z-index: 50;
  min-width: 200px;
  gap: 1px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 54px rgba(29, 35, 51, 0.18);
}

.card-menu[hidden] {
  display: none;
}

.card-menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.card-menu-item:hover {
  background: var(--surface-soft);
}

.card-menu-item[aria-checked="true"] {
  color: var(--ink-strong);
  font-weight: 650;
}

.card-menu-check {
  margin-left: auto;
}

.card-menu-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--line);
}

.sheet-scrim,
.panel-scrim,
.sidebar-scrim {
  position: fixed;
  inset: 0;
  background: rgba(17, 22, 36, 0.42);
  transition: opacity 150ms ease;
}

.sheet-scrim {
  z-index: 49;
}

.panel-scrim {
  z-index: 29;
}

.sidebar-scrim {
  z-index: 39;
}

.sheet-scrim[hidden],
.panel-scrim[hidden],
.sidebar-scrim[hidden] {
  display: none;
}

.fab {
  display: none;
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(101, 86, 244, 0.45);
  transition: transform 120ms ease;
}

.fab:active {
  transform: scale(0.96);
}

.detail-panel {
  display: none;
  position: sticky;
  top: 0;
  align-self: start;
  min-width: 0;
  flex-direction: column;
  height: 100svh;
  max-height: 100svh;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.panel-open .detail-panel {
  display: flex;
}

body.panel-locked {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 23px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: #a0a6b1;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-header h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 730;
  letter-spacing: -0.025em;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.panel-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-color: #dfe2e8 transparent;
  scrollbar-width: thin;
}

.panel-hero {
  padding: 22px 22px 19px;
}

.panel-project-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #858d9b;
  font-size: 10px;
  font-weight: 650;
}

.panel-project-select select {
  max-width: 200px;
  padding: 0 14px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: #6d7584;
  font-size: 10px;
  font-weight: 680;
}

.panel-title-input {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.3;
  resize: none;
  overflow: hidden;
}

.panel-title-input::placeholder,
.panel-textarea::placeholder {
  color: #b7bcc5;
}

.panel-section {
  padding: 19px 22px;
  border-top: 1px solid var(--line);
}

.panel-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.panel-section-heading h3 {
  margin: 0;
  color: #8b92a0;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-section-heading span {
  color: #b0b5bf;
  font-size: 10px;
}

.property-list {
  display: grid;
  gap: 1px;
}

.property-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  min-height: 38px;
  gap: 9px;
}

.property-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9aa1ae;
  font-size: 10px;
}

.property-control,
.property-select,
.property-date {
  width: 100%;
  min-width: 0;
  min-height: 29px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 570;
  transition: border-color 150ms ease, background 150ms ease;
}

.property-control:hover,
.property-control:focus,
.property-select:hover,
.property-select:focus,
.property-date:hover,
.property-date:focus {
  border-color: var(--line);
  background: var(--surface-soft);
}

.property-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #a4aab5 50%), linear-gradient(135deg, #a4aab5 50%, transparent 50%);
  background-position: calc(100% - 11px) 12px, calc(100% - 7px) 12px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

.property-date {
  color-scheme: light;
}

.property-row-assignees {
  align-items: start;
  padding: 4px 0;
}

.property-row-assignees > .property-label {
  padding-top: 7px;
}

.assignee-picker {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
}

.assignee-option {
  position: relative;
  cursor: pointer;
}

.assignee-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.assignee-option > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 3px 7px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.assignee-option input:checked + span {
  border-color: rgba(101, 86, 244, 0.35);
  background: rgba(101, 86, 244, 0.08);
  color: var(--ink);
}

.assignee-option input:focus-visible + span {
  outline: 2px solid rgba(101, 86, 244, 0.48);
  outline-offset: 2px;
}

.status-value,
.priority-value,
.assignee-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel-textarea {
  display: block;
  width: 100%;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fcfcfd;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.65;
  resize: vertical;
  transition: border-color 150ms ease, background 150ms ease;
}

.panel-textarea:focus {
  border-color: rgba(101, 86, 244, 0.45);
  background: var(--surface);
}

.activity-list {
  display: grid;
  gap: 15px;
}

.activity-item {
  display: grid;
  position: relative;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
}

.activity-item:not(:last-child)::after {
  position: absolute;
  top: 19px;
  bottom: -16px;
  left: 8px;
  width: 1px;
  background: var(--line);
  content: "";
}

.activity-icon {
  display: inline-grid;
  position: relative;
  z-index: 1;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: #9da4b0;
}

.activity-copy {
  display: grid;
  gap: 1px;
  padding-top: 1px;
}

.activity-copy p {
  margin: 0;
  color: #707887;
  font-size: 10px;
  line-height: 1.4;
}

.activity-copy strong {
  color: var(--ink);
  font-weight: 650;
}

.activity-time {
  color: #adb3bd;
  font-size: 9px;
}

.empty-activity {
  color: #aab0ba;
  font-size: 10px;
}

.panel-footer {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.panel-footer-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 7px;
}

.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 680;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.danger-button[hidden] {
  display: none;
}

.secondary-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

.secondary-button.is-complete {
  border-color: rgba(39, 164, 119, 0.24);
  background: var(--success-soft);
  color: #2c936f;
}

.danger-button {
  min-height: 26px;
  padding: 0 6px;
  border-color: transparent;
  background: transparent;
  color: #b4bac3;
  font-weight: 560;
}

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

.empty-panel {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  color: #9da4b0;
  text-align: center;
}

.empty-panel .empty-panel-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.empty-panel p {
  max-width: 210px;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.toast-region {
  display: grid;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(29, 35, 51, 0.12);
  color: var(--ink);
  font-size: 11px;
  animation: toast-in 220ms ease both;
}

.toast.is-error {
  border-color: rgba(220, 100, 113, 0.25);
}

.toast-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.toast.is-error .toast-mark {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.icon {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.icon::before,
.icon::after {
  position: absolute;
  display: block;
  content: "";
}

.icon-plus::before,
.icon-plus::after {
  top: 7px;
  left: 3px;
  width: 9px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.icon-plus::after {
  transform: rotate(90deg);
}

.icon-chevron::before,
.icon-chevron::after {
  top: 5px;
  width: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.icon-chevron::before {
  left: 2px;
  transform: rotate(45deg);
}

.icon-chevron::after {
  right: 2px;
  transform: rotate(-45deg);
}

.icon-chevron-right {
  width: 9px;
  height: 12px;
}

.icon-chevron-right::before,
.icon-chevron-right::after {
  top: 4px;
  width: 5px;
  height: 1px;
  background: #afb4be;
}

.icon-chevron-right::before {
  left: 1px;
  transform: rotate(45deg);
}

.icon-chevron-right::after {
  top: 7px;
  left: 1px;
  transform: rotate(-45deg);
}

.icon-grid::before {
  top: 1px;
  left: 1px;
  width: 5px;
  height: 5px;
  border: 1.3px solid currentColor;
  border-radius: 2px;
  box-shadow: 7px 0 0 -1.3px var(--canvas), 7px 0 0 0 currentColor, 0 7px 0 -1.3px var(--canvas), 0 7px 0 0 currentColor, 7px 7px 0 -1.3px var(--canvas), 7px 7px 0 0 currentColor;
}

.icon-check-square::before {
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border: 1.3px solid currentColor;
  border-radius: 3px;
}

.icon-check-square::after {
  top: 4px;
  left: 4px;
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.icon-user::before {
  top: 1px;
  left: 5px;
  width: 5px;
  height: 5px;
  border: 1.3px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  bottom: 1px;
  left: 2px;
  width: 11px;
  height: 5px;
  border: 1.3px solid currentColor;
  border-radius: 7px 7px 4px 4px;
}

.icon-calendar::before {
  top: 2px;
  left: 1px;
  width: 12px;
  height: 11px;
  border: 1.3px solid currentColor;
  border-radius: 3px;
}

.icon-calendar::after {
  top: 5px;
  left: 2px;
  width: 10px;
  height: 1px;
  background: currentColor;
  box-shadow: 3px 3px 0 -0.2px currentColor;
}

.icon-bell::before {
  top: 2px;
  left: 3px;
  width: 9px;
  height: 10px;
  border: 1.3px solid currentColor;
  border-radius: 7px 7px 3px 3px;
}

.icon-bell::after {
  bottom: 1px;
  left: 2px;
  width: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 4px 2px 0 -0.3px currentColor;
}

.icon-search::before {
  top: 1px;
  left: 1px;
  width: 8px;
  height: 8px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  right: 1px;
  bottom: 2px;
  width: 6px;
  height: 1.4px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.icon-folder::before {
  top: 3px;
  left: 1px;
  width: 12px;
  height: 9px;
  border: 1.3px solid currentColor;
  border-radius: 2px;
}

.icon-folder::after {
  top: 2px;
  left: 2px;
  width: 5px;
  height: 3px;
  border-top: 1.3px solid currentColor;
  border-left: 1.3px solid currentColor;
  border-radius: 2px 0 0;
}

.icon-sliders::before {
  top: 2px;
  left: 2px;
  width: 11px;
  height: 1.3px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.icon-sliders::after {
  top: 0;
  left: 5px;
  width: 3px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: var(--surface);
  box-shadow: -4px 4px 0 -1px var(--surface), -4px 4px 0 0 currentColor, 4px 8px 0 -1px var(--surface), 4px 8px 0 0 currentColor;
}

.icon-menu::before {
  top: 2px;
  left: 1px;
  width: 13px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.icon-move::before {
  top: 6px;
  left: 1px;
  width: 13px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -4px 0 -0.1px currentColor, 0 4px 0 -0.1px currentColor;
}

.icon-move::after {
  top: 4px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(45deg);
}

.icon-refresh::before {
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border: 1.3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.icon-refresh::after {
  top: 1px;
  right: 1px;
  width: 4px;
  height: 4px;
  border-top: 1.3px solid currentColor;
  border-right: 1.3px solid currentColor;
  transform: rotate(15deg);
}

.icon-more::before {
  top: 6px;
  left: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 5px 0 0 currentColor, 10px 0 0 currentColor;
}

.icon-x::before,
.icon-x::after {
  top: 7px;
  left: 2px;
  width: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.icon-x::after {
  transform: rotate(-45deg);
}

.icon-note::before {
  top: 1px;
  left: 2px;
  width: 10px;
  height: 12px;
  border: 1.2px solid currentColor;
  border-radius: 2px;
}

.icon-note::after {
  top: 5px;
  left: 5px;
  width: 5px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 3px 0 currentColor;
}

.icon-clock::before {
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
}

.icon-clock::after {
  top: 4px;
  left: 7px;
  width: 1px;
  height: 5px;
  background: currentColor;
  box-shadow: 2px 3px 0 -0.15px currentColor;
  transform: rotate(-28deg);
  transform-origin: bottom center;
}

.icon-check::before {
  top: 3px;
  left: 2px;
  width: 10px;
  height: 6px;
  border-bottom: 1.7px solid currentColor;
  border-left: 1.7px solid currentColor;
  transform: rotate(-45deg);
}

.icon-trash::before {
  top: 4px;
  left: 3px;
  width: 9px;
  height: 9px;
  border: 1.2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.icon-trash::after {
  top: 2px;
  left: 2px;
  width: 11px;
  height: 1.2px;
  background: currentColor;
  box-shadow: 3px -2px 0 -0.1px currentColor;
}

.icon-info::before {
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
}

.icon-info::after {
  top: 4px;
  left: 7px;
  width: 1.5px;
  height: 5px;
  background: currentColor;
  box-shadow: 0 -3px 0 -0.1px currentColor;
}

.icon-log-out::before {
  top: 1px;
  left: 1px;
  width: 7px;
  height: 12px;
  border: 1.3px solid currentColor;
  border-right: 0;
  border-radius: 2px 0 0 2px;
}

.icon-log-out::after {
  top: 4px;
  right: 0;
  width: 9px;
  height: 7px;
  background: currentColor;
  clip-path: polygon(0 41%, 55% 41%, 55% 0, 100% 50%, 55% 100%, 55% 59%, 0 59%);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: transparent;
  color: #969daa;
  transition: background 150ms ease, color 150ms ease;
}

.icon-button:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.icon-button.subtle {
  width: 24px;
  height: 24px;
  color: #abb1bb;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.avatar-sm {
  width: 23px;
  height: 23px;
}

.avatar-xs {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.avatar-yamazaki {
  background: #e8e5ff;
  color: #6254d9;
}

.avatar-ozaki {
  background: #e5f5ef;
  color: #328967;
}

.avatar-member-3 { background: #fff0d8; color: #a15c0b; }
.avatar-member-4 { background: #fce5ec; color: #a94168; }
.avatar-member-5 { background: #e4effc; color: #356aa9; }

.avatar-current-user {
  background: #e8edf6;
  color: #51627e;
}

.avatar-unassigned {
  background: #f0f1f4;
  color: #a7adb7;
}

@media (max-width: 1320px) {
  :root {
    --sidebar-width: 220px;
    --panel-width: 340px;
  }

  .topbar,
  .workspace-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .board-controls {
    gap: 5px;
  }

  .search-field {
    width: 155px;
  }
}

@media (max-width: 1120px) {
  .app-shell,
  .app-shell.panel-open {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .app-shell.panel-open .detail-panel {
    display: flex;
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    height: 100svh;
    max-height: 100svh;
    width: min(var(--panel-width), calc(100vw - 64px));
    box-shadow: -18px 0 40px rgba(29, 35, 51, 0.14);
  }

  .board-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .board-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .app-shell,
  .app-shell.panel-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(280px, 84vw);
    transform: translateX(-104%);
    transition: transform 220ms ease;
    background: var(--surface);
    box-shadow: 18px 0 40px rgba(29, 35, 51, 0.12);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .topbar .sidebar-toggle {
    display: inline-grid;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-health-summary {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 56px;
    padding: 0 12px;
  }

  .topbar-actions {
    gap: 9px;
  }

  .notification-panel {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .profile-panel {
    position: fixed;
    top: 64px;
    right: 12px;
  }

  .demo-status,
  .breadcrumbs .breadcrumb-muted,
  .breadcrumbs .icon-chevron-right {
    display: none;
  }

  .workspace-content {
    padding: 18px 16px calc(90px + env(safe-area-inset-bottom));
  }

  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .page-intro h1 {
    margin: 6px 0 2px;
    font-size: 20px;
  }

  .page-subtitle {
    font-size: 11px;
  }

  .page-intro-meta {
    grid-auto-flow: column;
    justify-items: start;
    gap: 10px;
    padding: 0;
  }

  .eyebrow-line {
    display: none;
  }

  .overview-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-heading-actions {
    width: 100%;
  }

  .overview-heading-actions > button {
    justify-content: center;
    min-height: 34px;
    flex: 1;
  }

  .overview-focus-item {
    grid-template-columns: 3px minmax(0, 1fr) 12px;
  }

  .overview-focus-due {
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
    grid-auto-flow: column;
    justify-content: start;
    gap: 5px;
  }

  .overview-focus-item > .icon-chevron-right {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .overview-project-row {
    grid-template-columns: 8px minmax(0, 1fr) 36px;
  }

  .overview-project-progress {
    grid-column: 2 / -1;
    width: 100%;
  }

  .overview-project-percent {
    grid-column: 3;
    grid-row: 1;
  }

  .overview-member-row {
    grid-template-columns: 28px minmax(0, 1fr) 38px;
  }

  .overview-member-alert {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .summary-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 4px;
    border: 0;
    scrollbar-width: none;
  }

  .summary-item,
  .summary-item:first-child,
  .summary-item:last-child {
    flex: 0 0 auto;
    min-width: 118px;
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .board-toolbar {
    position: sticky;
    top: 56px;
    z-index: 10;
    margin: 0;
    padding: 8px 0;
    background: var(--canvas);
  }

  .board-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-field {
    height: 44px;
  }

  .search-field kbd {
    display: none;
  }

  .filters-toggle {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-height: 40px;
  }

  .board-filters {
    display: none;
  }

  .board-filters.is-open {
    display: grid;
    gap: 8px;
  }

  .board-filters .select-field,
  .board-filters .filter-button {
    width: 100%;
    min-height: 40px;
  }

  .select-field select {
    max-width: none;
    flex: 1;
  }

  .status-menu-wrap {
    width: 100%;
  }

  .status-menu {
    right: auto;
    left: 0;
  }

  #new-task-button,
  .board-controls .primary-button {
    display: none;
  }

  .card-menu {
    inset: auto 0 0 0;
    width: 100%;
    min-width: 0;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 44px rgba(29, 35, 51, 0.22);
  }

  .card-menu-item {
    min-height: 48px;
    font-size: 14px;
  }

  .board-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .board-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .status-segments {
    display: flex;
    position: sticky;
    top: 104px;
    z-index: 9;
    gap: 4px;
    margin-top: 10px;
    padding: 4px 0;
    background: var(--canvas);
  }

  .status-segment {
    display: grid;
    flex: 1;
    place-items: center;
    gap: 0;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--muted-strong);
    font-size: 11px;
    font-weight: 650;
  }

  .status-segment.is-active {
    border-color: var(--column-color);
    box-shadow: inset 0 -2px 0 var(--column-color);
    color: var(--ink-strong);
  }

  .segment-count {
    color: var(--muted);
    font-size: 10px;
  }

  .board {
    display: block;
    margin: 10px 0 0;
    padding: 0;
    overflow: visible;
  }

  .board-column {
    display: none;
    min-height: 0;
    border-top: 0;
  }

  #board[data-mobile-status="todo"] .board-column[data-status-column="todo"],
  #board[data-mobile-status="in_progress"] .board-column[data-status-column="in_progress"],
  #board[data-mobile-status="review"] .board-column[data-status-column="review"],
  #board[data-mobile-status="done"] .board-column[data-status-column="done"] {
    display: flex;
  }

  .column-header {
    display: none;
  }

  .column-dropzone {
    min-height: 96px;
    gap: 10px;
  }

  .empty-column-state {
    min-height: 0;
    padding: 28px 0;
  }

  .task-card {
    padding: 14px;
  }

  .task-card h3 {
    font-size: 14px;
  }

  .fab {
    display: flex;
  }

  .app-shell.panel-open .detail-panel {
    width: 100vw;
    box-shadow: none;
  }

  .panel-footer {
    gap: 8px;
  }

  .panel-footer button {
    min-height: 44px;
    white-space: nowrap;
    font-size: 12px;
  }

  .panel-footer-actions .primary-button {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }

  .panel-footer-actions .secondary-button {
    min-height: 44px;
  }

  .search-field input,
  .select-field select,
  .property-select,
  .property-date,
  .panel-title-input,
  .panel-textarea,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .profile-trigger-copy {
    display: none;
  }

  .profile-button {
    gap: 5px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .panel-header,
  .panel-hero,
  .panel-section {
    padding-right: 17px;
    padding-left: 17px;
  }

  .panel-footer {
    padding-right: 17px;
    padding-left: 17px;
  }

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

  .drag-hint {
    font-size: 9px;
  }
}

@media (pointer: coarse) {
  .icon-button,
  .column-add-button,
  .card-more {
    position: relative;
  }

  .icon-button::after,
  .column-add-button::after,
  .card-more::after {
    position: absolute;
    inset: -10px;
    content: "";
  }
}

@media (hover: none) {
  .drag-hint {
    display: none;
  }

  .tap-hint {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
