:root {
  --blue: #579dff;
  --blue-hover: #85b8ff;
  --navy: #101214;
  --text: #e9f0f7;
  --muted: #9fadbc;
  --border: #38414a;
  --surface: #1d2125;
  --soft: #282e33;
  --soft-hover: #333c43;
  --danger: #f87168;
  --green: #4bce97;
  --shadow: 0 10px 34px rgb(0 0 0 / 42%);
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: #fff; color: var(--text); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { min-height: 32px; padding: 6px 12px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; }
button:hover { background: var(--blue-hover); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.ui-icon { width: 17px; height: 17px; flex: 0 0 17px; }
button:has(.ui-icon) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
input, select, textarea { width: 100%; min-height: 38px; margin-top: 6px; padding: 8px 10px; border: 1px solid #8590a2; border-radius: 6px; background: #fff; color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
label { display: grid; margin: 12px 0; color: #44546f; font-size: 13px; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
a { color: #0c66e4; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.push { flex: 1; }
.primary { background: linear-gradient(135deg, #0c66e4, #579dff); color: #fff; }
.secondary, .quiet, .detail-small { background: var(--soft); color: var(--text); }
.secondary:hover, .quiet:hover, .detail-small:hover { background: var(--soft-hover); }
.danger-button { background: #ffebe6; color: #ae2e24; }
.danger-button:hover { background: #ffbdad; }
.detail-muted { color: var(--muted); font-size: 12px; }
.icon-action { width: 34px; min-width: 34px; min-height: 34px; padding: 6px; }
.icon-action.danger-button { border: 1px solid #7a2e2a; background: #3d1f1d; color: #fca5a0; }
.icon-action.danger-button:hover { background: #5d1f1a; color: #fff; }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #f7f8f9, #deebff); }
.panel { width: min(400px, 100%); padding: 36px 40px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.panel h1 { margin: 30px 0 8px; text-align: center; }
.panel > p { color: var(--muted); text-align: center; }
.panel button[type="submit"] { width: 100%; margin-top: 8px; }
.auth-brand { display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 22px; cursor: default; }

/* Global navigation */
.topbar { width: 100%; height: 48px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; overflow: hidden; background: #0c66e4; color: #fff; box-shadow: 0 1px 2px rgb(9 30 66 / 28%); }
.brand { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; background: transparent; color: inherit; font-size: 17px; font-weight: 750; }
.brand:hover, .top-action:hover, .icon-button:hover { background: rgb(255 255 255 / 18%); }
.brand-logo { width: auto; height: 27px; display: block; object-fit: contain; }
.mobile-brand { display: none; min-width: 30px; min-height: 30px; padding: 2px; background: transparent; }
.mobile-brand-logo { width: 26px; height: 26px; display: block; object-fit: contain; }
.top-create { background: rgb(255 255 255 / 22%); }
.top-create:hover { background: rgb(255 255 255 / 32%); }
.top-action, .icon-button { min-height: 34px; padding: 5px 9px; background: transparent; color: #fff; font-size: 13px; }
.avatar { min-width: 30px; width: 30px; min-height: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: #dfe1e6; color: #172b4d; font-weight: 750; }
.avatar:hover { background: #fff; }
.notif-count { margin-left: 4px; padding: 1px 5px; border-radius: 10px; background: #ff5630; color: #fff; font-size: 10px; }
.mobile-toggle { display: none; }

/* Workspace shell */
.app { height: calc(100vh - 48px); display: grid; grid-template-columns: 245px minmax(0, 1fr); overflow: hidden; }
#sidebar { min-width: 0; display: flex; flex-direction: column; padding: 12px 10px; border-right: 1px solid var(--border); background: #f7f8f9; overflow-y: auto; }
.sidebar-brand { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; padding: 5px 2px; background: transparent; }
.sidebar-brand:hover { background: transparent; }
.sidebar-brand img { width: 100%; height: auto; max-height: 68px; object-fit: contain; object-position: center; }
.sidebar-admin { margin-top: auto; border-top: 1px solid var(--border); border-radius: 0; padding-top: 12px; }
.sidebar-home, .nav-item { width: 100%; min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 5px; background: transparent; color: #172b4d; text-align: left; }
.sidebar-home:hover, .nav-item:hover { background: #e9ebee; }
.nav-item.active { background: #e9f2ff; color: #0c66e4; }
.nav-section-caption { display: flex; align-items: center; justify-content: space-between; margin: 18px 7px 6px; color: #626f86; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.section-gap { margin-top: 22px; }
.plus { width: 25px; min-height: 25px; padding: 0; background: transparent; color: #44546f; font-size: 18px; }
.plus:hover { background: #dcdfe4; }
.nav-workspace-icon { width: 26px; height: 26px; display: grid; flex: 0 0 26px; place-items: center; border-radius: 4px; background: linear-gradient(135deg, #0c66e4, #579dff); color: #fff; font-size: 12px; font-weight: 800; }
.board-dot { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 3px; }
.sidebar-bottom { display: grid; gap: 2px; margin-top: 4px; padding: 10px 9px 4px; border-top: 1px solid var(--border); }
.sidebar-bottom small { color: var(--muted); }
.main { min-width: 0; height: 100%; overflow-x: hidden; overflow-y: auto; }

/* Workspace home */
.workspace-home { width: min(1120px, 100%); margin: 0 auto; padding: 38px 42px 70px; }
.workspace-header { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.workspace-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #0c66e4, #579dff); color: #fff; font-size: 30px; font-weight: 800; }
.workspace-heading h1 { margin: 2px 0 5px; }
.workspace-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.workspace-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 34px 0 16px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading > div > span { color: var(--muted); font-size: 13px; }
.board-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { position: relative; min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; padding: 14px; border-radius: 6px; background: var(--tile-background); color: #fff; text-align: left; box-shadow: inset 0 0 0 1000px rgb(9 30 66 / 8%); }
.tile::after { content: ""; position: absolute; inset: auto -35px -55px auto; width: 140px; height: 140px; border-radius: 50%; background: rgb(255 255 255 / 10%); }
.tile:hover { filter: brightness(.93); }
.tile-title { z-index: 1; font-size: 16px; font-weight: 750; }
.tile-sub, .tile-alert { z-index: 1; font-size: 12px; }
.tile-alert { padding: 3px 6px; border-radius: 3px; background: rgb(255 255 255 / 22%); }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; padding: 45px 20px; border: 1px dashed #b6c2cf; border-radius: 8px; background: #f7f8f9; text-align: center; }
.empty-icon { font-size: 34px; color: #626f86; }

/* Board */
#boardView { width: 100%; min-width: 0; min-height: 100%; display: flex; flex-direction: column; background: linear-gradient(rgb(255 255 255 / 14%), rgb(9 30 66 / 18%)), var(--board-color); }
.board-intro { min-width: 0; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 6px 12px; background: rgb(9 30 66 / 36%); color: #fff; white-space: nowrap; backdrop-filter: blur(4px); }
.board-toolbar, .board-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-toolbar, .board-navigation, .board-heading, .toolbar-actions, .board-tools, .project-overview { flex: 0 0 auto; }
.board-heading { min-width: 190px; flex: 1 1 auto; display: flex; align-items: center; gap: 8px; }
.board-title { min-width: 0; margin: 0; overflow: hidden; font-size: 18px; line-height: 1.2; text-overflow: ellipsis; }
.role-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 12px; background: #e9f2ff; color: #0c66e4; font-size: 11px; font-weight: 700; }
.toolbar-actions { display: flex; align-items: center; gap: 6px; }
.board-intro .toolbar-actions { margin-left: auto; }
.board-primary-actions { display: flex; align-items: center; gap: 6px; }
.board-member-avatars { min-width: 32px; min-height: 32px; display: flex; align-items: center; padding: 2px 5px; background: transparent; }
.board-member-avatars:hover { background: rgb(255 255 255 / 10%); }
.board-member-avatar { width: 27px; height: 27px; display: grid; place-items: center; margin-left: -6px; border: 2px solid #1d2125; border-radius: 50%; background: #384b63; color: #fff; font-size: 9px; font-weight: 800; }
.board-member-avatar:first-child { margin-left: 0; }
.board-member-avatar.more { background: #596773; }
.mobile-board-menu-button { display: none; letter-spacing: 1px; }
.board-action { min-height: 32px; background: rgb(255 255 255 / 20%); color: #fff; }
.board-action.icon-only { width: 34px; min-width: 34px; padding: 5px; font-size: 18px; }
.board-action:hover { background: rgb(255 255 255 / 32%); }
.board-action.emphasis { background: #fff; color: #172b4d; }
.project-overview { margin: 0; color: rgb(255 255 255 / 84%); font-size: 12px; }
.board-navigation { align-items: center; margin: 0; }
.view-tabs { display: flex; gap: 2px; }
.view-tab { min-height: 38px; padding: 8px 13px; border-radius: 4px 4px 0 0; background: transparent; color: #fff; }
.view-tab:hover { background: rgb(255 255 255 / 15%); }
.view-tab.active { background: #fff; color: #172b4d; }
.board-tools { max-width: none; display: flex; align-items: center; gap: 7px; padding: 0; }
.board-tools select { width: auto; min-height: 32px; margin: 0; border: 0; }
.filter-clear { min-height: 32px; padding: 5px 9px; background: rgb(255 255 255 / 20%); color: #fff; }
.filter-clear:hover { background: rgb(255 255 255 / 32%); }
.search-label { width: 180px; display: flex; align-items: center; gap: 5px; margin: 0; padding: 0 8px; border-radius: 3px; background: #fff; color: #44546f; }
.search-label input { min-height: 32px; margin: 0; padding: 5px 0; border: 0; outline: 0; }
.card-summary { min-width: 76px; color: #fff; font-size: 11px; }
.columns { flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding: 14px 16px 22px; }
.column { width: 272px; min-width: 272px; max-height: calc(100dvh - 154px); display: flex; flex-direction: column; padding: 8px; border-radius: 10px; background: #f1f2f4; box-shadow: 0 1px 1px rgb(9 30 66 / 16%); }
.list-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 7px 7px; }
.list-head h3 { margin: 0; overflow-wrap: anywhere; }
.list-actions { display: flex; align-items: center; gap: 3px; }
.list-menu { min-width: 28px; min-height: 28px; padding: 0 5px; background: transparent; color: #44546f; letter-spacing: -2px; }
.list-menu:hover { background: #dcdfe4; }
.list-count { min-width: 24px; padding: 2px 6px; border-radius: 10px; background: #dcdfe4; color: #44546f; font-size: 11px; text-align: center; }
.wip-over .list-count { background: #ffebe6; color: #ae2e24; }
.card-stack { min-height: 16px; overflow-y: auto; padding: 1px 3px 3px; scrollbar-width: thin; }
.card { width: 100%; display: block; margin: 0 0 8px; padding: 10px 11px; border-radius: 7px; background: #fff; color: #172b4d; text-align: left; box-shadow: 0 1px 1px rgb(9 30 66 / 22%); }
.card:hover { background: #fff; box-shadow: 0 2px 5px rgb(9 30 66 / 25%); }
.card.dragging { opacity: .45; transform: rotate(2deg); }
.card-cover { height: 34px; display: block; margin: -10px -11px 9px; border-radius: 7px 7px 0 0; }
.card-title { display: block; font-weight: 500; line-height: 1.35; }
.card-title.completed { color: #626f86; text-decoration: line-through; }
.card-description { display: -webkit-box; overflow: hidden; margin-top: 5px; color: #626f86; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.priority-marker, .milestone-badge, .swimlane-tag, .card-visible-tag { display: inline-block; margin: 0 4px 6px 0; padding: 3px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.priority-marker.p-low { background: #d3f1a7; color: #164b35; } .priority-marker.p-medium { background: #f8e6a0; color: #533f04; } .priority-marker.p-high { background: #fedec8; color: #702e00; } .priority-marker.p-urgent { background: #ffd5d2; color: #ae2e24; }
.milestone-badge { background: #e9f2ff; color: #0c66e4; }
.swimlane-tag, .card-visible-tag { background: #dcdfe4; color: #44546f; }
.card-tags, .card-indicators, .card-footer { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.indicator, .date-chip { color: #44546f; font-size: 11px; }
.date-chip { padding: 3px 5px; border-radius: 3px; background: #f1f2f4; }
.date-chip.overdue { background: #ffebe6; color: #ae2e24; }
.task-progress-track { width: 100%; height: 5px; display: block; margin-top: 8px; overflow: hidden; border-radius: 4px; background: #dcdfe4; }
.task-progress-fill { height: 100%; display: block; background: #1f845a; }
.task-progress-label { color: #626f86; font-size: 10px; }
.overdue-warning, .due-soon-warning { width: max-content; max-width: 100%; display: inline-flex; align-items: center; margin-top: 7px; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 750; line-height: 1.25; }
.overdue-warning { background: #5d1f1a; color: #ffd5d2; }
.due-soon-warning { background: #5f4b00; color: #f8e6a0; }
.addCard { width: 100%; margin-top: 2px; background: transparent; color: #44546f; text-align: left; }
.addCard:hover { background: #dcdfe4; }
.list-empty, .empty-column { color: #626f86; }
.list-empty { padding: 8px; font-size: 12px; }

/* Alternate views */
#alternateView { min-height: calc(100vh - 150px); padding: 0; background: #fff; overflow: auto; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 6px; }
.task-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.task-table th, .task-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); text-align: left; }
.task-table th { background: #f7f8f9; color: #44546f; font-size: 12px; }
.task-table tr:hover td { background: #f7f8f9; }
.calendar-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin-bottom: 14px; }
.calendar-controls h2 { margin: 0; text-transform: capitalize; text-align: center; }
.calendar-controls > span { text-align: right; }
.calendar-nav { display: flex; gap: 5px; }
.calendar-grid { min-width: 770px; display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.calendar-day-head { padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #f7f8f9; color: #626f86; font-size: 11px; text-align: center; }
.calendar-blank, .calendar-cell { min-height: 118px; padding: 7px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.calendar-blank { background: #f7f8f9; }
.calendar-cell.today { background: #e9f2ff; }
.calendar-date { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; }
.calendar-cell.today .calendar-date { background: var(--blue); color: #fff; }
.calendar-task { width: 100%; min-height: 27px; margin-top: 5px; padding: 4px 6px; overflow: hidden; background: #e9f2ff; color: #0c66e4; font-size: 11px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.calendar-task:hover { background: #cce0ff; }
.calendar-task.completed { color: #626f86; text-decoration: line-through; }
.unscheduled-tray { margin-top: 18px; }
.planner-view { max-width: 900px; margin: 0 auto; }
.planner-heading { margin-bottom: 20px; }
.planner-heading h2 { margin-bottom: 4px; }
.planner-day { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; margin-bottom: 20px; }
.planner-date { grid-row: 1 / span 99; display: grid; align-content: start; gap: 3px; padding: 10px 0; }
.planner-card { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--border); background: #fff; color: #172b4d; text-align: left; }
.planner-card:hover { background: #f7f8f9; }
.planner-card.completed strong { color: #626f86; text-decoration: line-through; }
.priority-dot { width: 8px; height: 8px; border-radius: 50%; background: #b6c2cf; }
.priority-dot.p-low { background: #4bce97; } .priority-dot.p-medium { background: #e2b203; } .priority-dot.p-high { background: #fea362; } .priority-dot.p-urgent { background: #f15b50; }
.due-badge { padding: 2px 5px; border-radius: 3px; background: #ffebe6; color: #ae2e24; font-size: 10px; }

/* Dialogs and forms */
dialog { width: min(620px, calc(100vw - 24px)); max-height: 90vh; padding: 24px; overflow: auto; border: 0; border-radius: 8px; background: #fff; color: #172b4d; box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(9 30 66 / 54%); }
dialog h2 { margin-bottom: 18px; }
.modalActions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modalActions button { min-width: 92px; }
#modalBody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-field { min-width: 0; gap: 6px; margin: 0 0 14px; }
.form-field > input, .form-field > select, .form-field > textarea { margin-top: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field-color { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.color-picker { width: 88px; }
.card-dialog { width: min(1000px, 96vw); padding: 0; overflow: hidden; }
.panel-dialog { width: min(760px, 94vw); }
.card-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid var(--border); background: #f7f8f9; }
.card-dialog-head h2 { margin: 0; }
.card-eyebrow { color: #626f86; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.card-detail-body { height: min(680px, calc(90vh - 74px)); padding: 0; overflow: hidden; }
.panel-body { padding: 0 22px 22px; }
.panel-body > .detail-section:first-child, .panel-body > p:first-child, .panel-body > .archive-row:first-child { margin-top: 22px; }
.panel-tabs { display: flex; gap: 3px; margin: 0 -22px 16px; padding: 0 22px; border-bottom: 1px solid var(--border); background: #f7f8f9; overflow-x: auto; }
.panel-tab { min-height: 42px; flex: 0 0 auto; border-radius: 0; background: transparent; color: #44546f; }
.panel-tab:hover { background: #e9ebee; }
.panel-tab.active { color: #0c66e4; box-shadow: inset 0 -2px #0c66e4; }
.panel-tab-content { max-height: calc(90vh - 145px); overflow: hidden; }
.panel-tab-panel { max-height: calc(90vh - 145px); overflow-y: auto; padding: 0 2px 8px; }
.card-tabs { display: flex; gap: 2px; padding: 10px 20px 0; border-bottom: 1px solid var(--border); background: #f7f8f9; overflow-x: auto; }
.card-tab { min-height: 38px; flex: 0 0 auto; border-radius: 4px 4px 0 0; background: transparent; color: #44546f; }
.card-tab:hover { background: #e9ebee; }
.card-tab.active { background: #fff; color: #0c66e4; box-shadow: inset 0 -2px #0c66e4; }
.card-tab-content { height: calc(100% - 49px); overflow: hidden; }
.card-tab-panel { height: 100%; padding: 20px 22px; overflow-y: auto; }
.card-tab-panel .detail-section { max-width: 760px; margin-right: auto; margin-left: auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.detail-main, .detail-aside { min-width: 0; }
.detail-section { min-width: 0; margin-bottom: 15px; padding: 16px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.detail-section h3 { margin-bottom: 12px; }
.detail-description { padding: 11px; border-radius: 4px; background: #f7f8f9; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.detail-meta, .detail-actions, .panel-actions, .team-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 9px 0; }
.detail-meta span { padding: 5px 7px; border-radius: 3px; background: #f1f2f4; font-size: 12px; }
.detail-row, .archive-row, .file-row, .team-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.archive-row { padding: 11px; border: 1px solid var(--border); border-radius: 5px; }
.detail-row select, .team-actions select { width: auto; max-width: 210px; margin: 0; }
.detail-small { min-height: 30px; padding: 5px 8px; }
.detail-option, .check-item { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 13px; }
.detail-option input, .check-item input { width: auto; min-height: 0; margin: 0; }
.check-item span:nth-child(2) { flex: 1; }
.item-done { color: #626f86; text-decoration: line-through; }
.inline-form { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.inline-form input { min-width: 130px; flex: 1; margin: 0; }
.inline-form select { width: auto; margin: 0; }
.comment-entry { padding: 10px 0; border-top: 1px solid var(--border); }
.comment-entry p { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.label-chip { padding: 3px 7px; border-radius: 3px; background: #b6c2cf; font-size: 11px; font-weight: 700; }
.tag-blue { background: #579dff; } .tag-green { background: #4bce97; } .tag-yellow { background: #f5cd47; } .tag-orange { background: #fea362; } .tag-red { background: #f87168; } .tag-purple { background: #9f8fef; }
.upload-form { display: grid; gap: 8px; margin-top: 10px; }
.empty-note { padding: 15px; border: 1px dashed #b6c2cf; border-radius: 5px; color: #626f86; }
.team-person { min-width: 0; display: flex; align-items: center; gap: 9px; }
.team-person > span:last-child { min-width: 0; display: grid; gap: 2px; }
.team-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #dfe1e6; color: #172b4d; font-weight: 750; }
.access-note { padding: 10px 12px; border-radius: 4px; background: #e9f2ff; color: #0c66e4; font-size: 12px; }
.invite-copy { display: flex; align-items: center; gap: 8px; }
.invite-copy input { flex: 1; margin: 0; }
.activity-line, .inbox-line { width: 100%; display: flex; align-items: center; gap: 10px; margin: 5px 0; padding: 11px; border: 1px solid var(--border); background: #fff; color: #172b4d; text-align: left; }
.activity-line:hover { background: #f7f8f9; }
.activity-line small { margin-left: auto; }
#toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 4px; background: #172b4d; color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s; }
#toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .mobile-toggle { display: inline-block; }
  .app { grid-template-columns: 1fr; }
  #sidebar { position: fixed; z-index: 30; top: 48px; bottom: 0; left: 0; width: 260px; transform: translateX(-103%); transition: transform .2s; box-shadow: var(--shadow); }
  #sidebar.open { transform: translateX(0); }
  .workspace-home { padding: 24px 20px 50px; }
  .workspace-header { grid-template-columns: 54px minmax(0, 1fr); }
  .workspace-icon { width: 52px; height: 52px; font-size: 24px; }
  .workspace-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .board-navigation { align-items: stretch; flex-direction: column; }
  .board-tools { overflow-x: auto; }
  .column { max-height: calc(100vh - 250px); }
}

@media (max-width: 620px) {
  .topbar { height: 42px; gap: 3px; padding: 4px 6px; }
  .mobile-brand { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-brand-logo { width: 24px; height: 24px; }
  .app { height: calc(100dvh - 42px); }
  #sidebar { top: 42px; }
  .top-action { min-width: 34px; padding: 5px 7px; font-size: 0; }
  .top-create { display: none; }
  #logoutBtn { display: none !important; }
  .workspace-header { grid-template-columns: 1fr; }
  .workspace-icon { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .board-tiles { grid-template-columns: 1fr; }
  .board-toolbar { align-items: center; flex-direction: row; }
  .board-intro { gap: 5px; overflow: hidden; padding: 5px 7px; }
  .board-heading { min-width: 0; gap: 5px; }
  .board-title { font-size: 15px; }
  .role-pill { min-height: 21px; padding: 2px 6px; font-size: 9px; }
  .toolbar-actions { width: auto; flex: 0 0 auto; gap: 4px; overflow: visible; }
  .board-primary-actions, .board-member-avatars { display: none !important; }
  .mobile-board-menu-button { display: inline-flex; }
  .board-action.icon-only { width: 32px; min-width: 32px; min-height: 32px; }
  .mobile-board-menu { top: 43px; right: 6px; }
  .dock-tools-menu { top: 43px; right: 6px; }
  .board-visibility-menu { top: 43px; right: 6px; }
  .view-tabs { overflow-x: auto; }
  .view-tab { white-space: nowrap; }
  .search-label { min-width: 160px; }
  .columns { gap: 10px; padding: 10px 10px 66px; scroll-snap-type: x proximity; }
  .column { width: calc(100vw - 32px); min-width: calc(100vw - 32px); max-height: calc(100dvh - 132px); scroll-snap-align: start; }
  .view-dock { bottom: 8px; max-width: calc(100vw - 16px); padding: 4px; }
  .view-dock .view-tab { min-width: 38px; min-height: 36px; padding: 6px 9px; }
  .view-dock .view-tab span { display: none; }
  .dock-divider { margin: 4px 0; }
  .dock-popover { bottom: 56px; }
  #modalBody, .detail-layout { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .card-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .planner-day { grid-template-columns: 1fr; }
  .planner-date { grid-row: auto; }
  .team-row, .archive-row { align-items: flex-start; flex-direction: column; }
  .team-actions { width: 100%; }
  .team-actions select { flex: 1; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Tema escuro 2.2.3 — superfícies e contraste inspirados em ferramentas Kanban. */
body, .main { background: #101214; color: var(--text); }
input, select, textarea { border-color: #596773; background: #22272b; color: var(--text); }
input::placeholder, textarea::placeholder { color: #8993a4; }
label, .panel-tab, .card-tab { color: #b6c2cf; }
a { color: #85b8ff; }
.secondary, .quiet, .detail-small { background: var(--soft); color: var(--text); }
.danger-button { background: #42221f; color: #ff9c8f; }
.danger-button:hover { background: #5d2925; }
.auth { background: #101214; }
.panel, dialog, .detail-section { background: #1d2125; color: var(--text); }
.topbar { background: #1d2125; border-bottom: 1px solid #38414a; }
#sidebar { border-color: var(--border); background: #161a1d; }
.sidebar-home, .nav-item, .plus { color: #b6c2cf; }
.sidebar-home:hover, .nav-item:hover, .plus:hover { background: #282e33; }
.nav-item.active { background: #1c2f46; color: #85b8ff; }
.empty-state, .card-dialog-head, .panel-tabs, .card-tabs { background: #161a1d; }
#boardView { position: relative; height: 100%; min-height: 0; overflow: hidden; background: #101214; }
.board-intro { background: #1d2125; box-shadow: 0 1px 0 #38414a; backdrop-filter: none; }
.search-label, .search-label input { background: #22272b; color: var(--text); }
.role-pill, .access-note { background: #1c2f46; color: #85b8ff; }
.view-tab.active, .board-action.emphasis { background: #1c2f46; color: #85b8ff; }
.column { border: 1px solid rgb(255 255 255 / 12%); border-top-color: rgb(255 255 255 / 20%); background: var(--list-color, #35414b); color: #fff; box-shadow: 0 3px 12px rgb(0 0 0 / 34%); }
.list-menu, .addCard { color: #fff; }
.list-menu:hover, .addCard:hover { background: rgb(0 0 0 / 22%); }
.list-count, .swimlane-tag, .card-visible-tag { background: rgb(0 0 0 / 30%); color: #fff; }
.card { border: 1px solid #44515c; border-left: 5px solid var(--task-color, #738496); background: #22272b; background: color-mix(in srgb, var(--task-color, #738496) 14%, #22272b); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 55%); }
.card:hover { border-color: #6b7a86; border-left-color: var(--task-color, #738496); background: #282e33; background: color-mix(in srgb, var(--task-color, #738496) 20%, #282e33); box-shadow: 0 3px 9px rgb(0 0 0 / 45%); }
.card-description, .card-title.completed, .task-progress-label, .list-empty, .empty-column { color: var(--muted); }
.date-chip, .detail-meta span { background: #282e33; color: #b6c2cf; }
#alternateView { display: grid; grid-template-columns: repeat(var(--companion-count, 1), minmax(320px, 1fr)); background: #101214; color: var(--text); }
#alternateView[hidden] { display: none; }
.view-pane { min-width: 0; height: 100%; padding: 16px; overflow: auto; border-right: 1px solid var(--border); background: #101214; }
.view-pane:last-child { border-right: 0; }
.task-table th, .calendar-day-head, .calendar-blank { background: #161a1d; color: #9fadbc; }
.task-table tr:hover td, .planner-card:hover { background: #282e33; }
.calendar-cell, .planner-card { background: #1d2125; color: var(--text); }
.calendar-cell.today { background: #1c2f46; }
.calendar-task { background: #1c2f46; color: #85b8ff; }
.calendar-task:hover { background: #263f5d; }
dialog::backdrop { background: rgb(0 0 0 / 72%); }
.card-dialog-head, .panel-tabs, .card-tabs { border-color: var(--border); }
.panel-tab:hover, .card-tab:hover { background: #282e33; }
.panel-tab.active { color: #85b8ff; box-shadow: inset 0 -2px #579dff; }
.card-tab.active { background: #1d2125; color: #85b8ff; box-shadow: inset 0 -2px #579dff; }
.detail-description { background: #161a1d; }
.team-avatar { background: #333c43; color: #e9f0f7; }
.activity-line, .inbox-line { background: #1d2125; color: var(--text); }
.activity-line:hover { background: #282e33; }
#toast { background: #e9f0f7; color: #101214; }
.swal2-popup { background: #1d2125 !important; color: #e9f0f7 !important; }
.swal2-title, .swal2-html-container { color: #e9f0f7 !important; }
.swal2-input { border-color: #596773 !important; background: #22272b !important; color: #e9f0f7 !important; }
.auth-shell { width: min(1060px, 100%); min-height: 610px; display: grid; grid-template-columns: minmax(300px, .78fr) minmax(440px, 1.22fr); overflow: hidden; border: 1px solid #38414a; border-radius: 16px; background: #161a1d; box-shadow: 0 24px 80px rgb(0 0 0 / 55%); }
.auth-visual { min-height: 560px; overflow: hidden; background: #07111e; }
.auth-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 58% center; }
.auth-shell .panel { width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 50px 44px; border-radius: 0; box-shadow: none; }
.auth-shell .panel h1 { margin: 18px 0 8px; text-align: left; }
.auth-shell .panel > p { text-align: left; }
.auth-shell .auth-brand { min-height: 48px; justify-content: flex-start; padding: 0; }
.auth-brand-logo { width: min(300px, 78%); height: auto; display: block; }
.auth-kicker { margin-top: 28px; color: #85b8ff; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.board-content { flex: 1; min-height: 0; overflow: hidden; padding-bottom: 64px; background: #1d2732; background-image: var(--board-gradient, linear-gradient(135deg,#0c66e4,#1c4c7a 45%,#101214)); }
.board-content > .columns { height: 100%; }
.board-content > #alternateView { height: 100%; min-height: 0; }
.board-content.split-layout { display: grid; grid-template-columns: minmax(300px, var(--companion-width, 38%)) 8px minmax(420px, 1fr); grid-template-areas: "alternate resizer board"; }
.board-content.split-layout > .columns { grid-area: board; min-width: 0; }
.board-content.split-layout > #alternateView { grid-area: alternate; border-right: 1px solid var(--border); }
.board-content.companion-only > #alternateView { width: 100%; }
.view-resizer { grid-area: resizer; position: relative; z-index: 4; cursor: col-resize; touch-action: none; background: #101214; }
.view-resizer::after { content: ""; position: absolute; inset: 0 2px; border-radius: 4px; background: #596773; opacity: .55; }
.view-resizer:hover::after, .view-resizer:focus-visible::after { background: #579dff; opacity: 1; }
.view-dock { position: absolute; z-index: 8; bottom: 14px; left: 50%; display: flex; gap: 4px; padding: 5px; border: 1px solid #45515d; border-radius: 12px; background: #101214; box-shadow: 0 5px 18px rgb(0 0 0 / 48%); transform: translateX(-50%); }
.view-dock .view-tab { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; color: #b6c2cf; white-space: nowrap; }
.view-dock .view-tab:hover { background: #282e33; color: #fff; }
.view-dock .view-tab.active { background: #1c2f46; color: #85b8ff; box-shadow: inset 0 -2px #579dff; }
.dock-divider { width: 1px; min-width: 1px; align-self: stretch; margin: 4px 2px; background: #45515d; }
.dock-popover { position: absolute; z-index: 10; bottom: 68px; left: 50%; width: min(360px, calc(100vw - 28px)); max-height: min(62vh, 540px); overflow: auto; padding: 12px; border: 1px solid #45515d; border-radius: 12px; background: #22272b; color: var(--text); box-shadow: 0 12px 34px rgb(0 0 0 / 55%); transform: translateX(-50%); }
.dock-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dock-popover-head button { min-width: 30px; min-height: 30px; padding: 4px; background: transparent; color: #b6c2cf; }
.dock-board-list { display: grid; gap: 5px; }
.dock-board-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; background: #282e33; color: var(--text); text-align: left; }
.dock-board-option:hover { background: #333c43; }
.dock-board-option.active { background: #1c2f46; color: #85b8ff; box-shadow: inset 3px 0 #579dff; }
.dock-tools-menu .project-overview { margin-bottom: 10px; }
.dock-tools-menu { top: 52px; right: 12px; bottom: auto; left: auto; transform: none; }
.dock-tools-menu .board-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dock-tools-menu .search-label { width: 100%; grid-column: 1 / -1; }
.dock-tools-menu .search-label input { width: 100%; }
.dock-tools-menu .board-tools select { width: 100%; }
.dock-tools-menu .filter-clear { width: 100%; }
.dock-tools-menu .card-summary { align-self: center; }
.mobile-board-menu { position: absolute; z-index: 11; top: 48px; right: 8px; width: min(300px, calc(100vw - 16px)); display: grid; gap: 5px; padding: 10px; border: 1px solid #45515d; border-radius: 10px; background: #22272b; box-shadow: 0 12px 30px rgb(0 0 0 / 55%); }
.mobile-board-menu[hidden] { display: none; }
.mobile-board-menu .dock-popover-head { margin-bottom: 4px; }
.mobile-board-action { width: 100%; justify-content: flex-start; background: transparent; color: var(--text); text-align: left; }
.mobile-board-action:hover { background: #333c43; }
.mobile-board-action.emphasis { background: #1c2f46; color: #85b8ff; }
.board-visibility-menu { position: absolute; z-index: 12; top: 48px; right: 180px; width: min(390px, calc(100vw - 20px)); display: grid; gap: 5px; padding: 12px; border: 1px solid #45515d; border-radius: 10px; background: #22272b; box-shadow: 0 12px 30px rgb(0 0 0 / 55%); }
.board-visibility-menu[hidden] { display: none; }
.visibility-option { width: 100%; display: grid; gap: 4px; padding: 11px 12px; background: transparent; color: var(--text); text-align: left; }
.visibility-option span { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.visibility-option:hover { background: #333c43; }
.visibility-option.active { background: #1c2f46; color: #85b8ff; box-shadow: inset 3px 0 #579dff; }
#welcomeNewBoard { border: 1px solid #85b8ff; background: linear-gradient(135deg, #579dff, #85b8ff); color: #07111e; font-weight: 800; box-shadow: 0 2px 7px rgb(0 0 0 / 30%); }
#welcomeNewBoard span, #welcomeNewBoard .ui-icon { color: #07111e; }
#welcomeNewBoard:hover { background: linear-gradient(135deg, #85b8ff, #b6dcff); color: #07111e; }
.sidebar-collapsed .app { grid-template-columns: 0 minmax(0, 1fr); }
.sidebar-collapsed #sidebar { width: 0; padding-right: 0; padding-left: 0; overflow: hidden; border: 0; }
.mobile-toggle { display: inline-flex; }
.card-quick-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.card-complete { width: 22px; min-width: 22px; min-height: 22px; padding: 0; border: 1px solid #738496; border-radius: 50%; background: transparent; color: transparent; }
.card-complete:hover { border-color: #85b8ff; background: #1c2f46; }
.card-complete.done { border-color: #4bce97; background: #216e4e; color: #fff; }
.card-avatars { display: flex; justify-content: flex-end; margin-left: auto; }
.card-avatar { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -5px; border: 2px solid #22272b; border-radius: 50%; background: #384b63; color: #fff; font-size: 10px; font-weight: 800; }
.calendar-mode { width: auto; min-width: 120px; margin: 0; }
.agenda-list { display: grid; gap: 8px; }
.agenda-day { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.agenda-items { display: grid; gap: 6px; }
.agenda-items .planner-card { border-radius: 5px; }
.calendar-grid.calendar-range { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card-visible-tag[data-color="blue"] { background: #1c4c7a; color: #b6dcff; }
.card-visible-tag[data-color="green"] { background: #164b35; color: #baf3db; }
.card-visible-tag[data-color="yellow"] { background: #5f4b00; color: #f8e6a0; }
.card-visible-tag[data-color="orange"] { background: #702e00; color: #fedec8; }
.card-visible-tag[data-color="red"] { background: #5d1f1a; color: #ffd5d2; }
.card-visible-tag[data-color="purple"] { background: #352c63; color: #dfd8fd; }

/* Seletores visuais: as legendas ficam disponíveis a leitores de tela e no tooltip. */
.form-field-palette { gap: 9px; }
.palette-grid { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 9px; }
.palette-swatch { position: relative; min-width: 44px; min-height: 46px; padding: 0; border: 2px solid transparent; border-radius: 7px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%), 0 1px 2px rgb(0 0 0 / 35%); }
.palette-swatch:hover { filter: brightness(1.14); transform: translateY(-1px); }
.palette-swatch.selected { border-color: #85b8ff; box-shadow: 0 0 0 2px #0c66e4, inset 0 0 0 1px rgb(255 255 255 / 24%); }
.palette-swatch.selected::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 900; text-shadow: 0 1px 3px #000; }
.admin-user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.admin-user-main { min-width: 0; display: grid; gap: 8px; }
.admin-user-heading { display: flex; align-items: center; gap: 9px; }
.workspace-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.workspace-pill { padding: 3px 7px; border: 1px solid #45515d; border-radius: 999px; background: #282e33; color: #b6c2cf; font-size: 11px; }

/* Cartão completo e atalho contextual de edição. */
.card { position: relative; }
.card.full-color { border-color: color-mix(in srgb, var(--task-color) 82%, #101214); border-left-color: color-mix(in srgb, var(--task-color) 82%, #101214); background: var(--task-color); color: #101214; }
.card.full-color:hover { border-color: #fff; border-left-color: #fff; background: var(--task-color); filter: brightness(1.05); }
.card.full-color .card-description, .card.full-color .card-title.completed, .card.full-color .indicator { color: #172b4d; }
.card.full-color .task-progress-track { background: rgb(16 18 20 / 28%); }
.card-edit { position: absolute; z-index: 3; top: 7px; right: 7px; width: 30px; min-width: 30px; min-height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid #596773; border-radius: 50%; background: #1d2125; color: #e9f0f7; box-shadow: 0 2px 6px rgb(0 0 0 / 35%); opacity: 0; transform: translateY(-3px); pointer-events: none; transition: opacity .15s, transform .15s, background .15s; }
.card-edit .ui-icon { width: 15px; height: 15px; }
.card:hover .card-edit, .card:focus-within .card-edit { opacity: 1; transform: translateY(0); pointer-events: auto; }
.card-edit:hover { background: #0c66e4; }
.recurrence-chip { padding: 3px 6px; border-radius: 4px; background: #352c63; color: #dfd8fd; font-weight: 750; }

/* Dropdown de notificações ancorado ao sino do header. */
.notification-dropdown { position: fixed; z-index: 60; top: 52px; right: 52px; width: min(430px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 68px)); overflow: hidden; border: 1px solid #45515d; border-radius: 10px; background: #1d2125; color: var(--text); box-shadow: 0 14px 38px rgb(0 0 0 / 58%); }
.notification-dropdown[hidden] { display: none; }
.notification-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.notification-head h2 { margin: 0; font-size: 19px; }
.notification-head button { min-width: 30px; padding: 4px; }
.notification-actions { display: flex; justify-content: flex-end; padding: 7px 12px; border-bottom: 1px solid var(--border); background: #161a1d; }
.notification-actions button { color: #85b8ff; }
.notification-list { max-height: min(535px, calc(100vh - 165px)); overflow-y: auto; padding: 9px; }
.notification-list .inbox-line { align-items: flex-start; border-radius: 7px; }
.notification-list .inbox-line.unread { border-color: #0c66e4; background: #1c2f46; box-shadow: inset 3px 0 #579dff; }
.notification-identity { min-width: 0; display: grid; flex: 1; gap: 4px; }
.notification-identity span { overflow-wrap: anywhere; }
.notification-list .panel-actions { flex: 0 0 auto; margin: 0; justify-content: flex-end; }

/* Scrollbars discretas para manter o foco no conteúdo. */
* { scrollbar-width: thin; scrollbar-color: #3b444c transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { border-radius: 999px; background: #3b444c; }
*:hover::-webkit-scrollbar-thumb { background: #56616b; }
*::-webkit-scrollbar-corner { background: transparent; }

@media (max-width: 620px) {
  .board-visibility-menu { top: 43px; right: 6px; left: auto; width: min(360px, calc(100vw - 12px)); }
}

@media (max-width: 800px) {
  .auth-shell { width: min(430px, 100%); min-height: 0; grid-template-columns: 1fr; }
  .auth-visual { min-height: 180px; max-height: 220px; }
  .auth-shell .panel { padding: 32px 28px; }
  .board-content.split-layout { display: block; overflow: auto; }
  .board-content.split-layout > .columns, .board-content.split-layout > #alternateView { height: min(58vh, 560px); border-right: 0; border-bottom: 1px solid var(--border); }
  #alternateView { grid-template-columns: repeat(var(--companion-count, 1), minmax(300px, 1fr)); }
  .view-resizer { display: none; }
  .view-dock { max-width: calc(100vw - 24px); overflow-x: auto; }
  .view-dock .view-tab { padding-inline: 10px; }
  .palette-grid { grid-template-columns: repeat(3, minmax(44px, 1fr)); }
  .admin-user-row { grid-template-columns: 1fr; }
  .notification-dropdown { right: 8px; }
  .notification-list .inbox-line { flex-direction: column; }
}

@media (max-width: 620px) {
  .view-dock { max-width: calc(100vw - 16px); }
  .view-dock .view-tab { min-width: 44px; min-height: 42px; padding-inline: 10px; }
  .view-dock .ui-icon { width: 22px; height: 22px; flex-basis: 22px; stroke-width: 2.2; }
}
