:root {
    --bg: #eeeeee;
    --panel: #ffffff;
    --text: #202124;
    --muted: #6f747a;
    --line: #d8d8d8;
    --accent: #ff7900;
    --accent-dark: #d95f00;
    --accent-soft: #fff0db;
    --warn: #a15c00;
    --ok: #16704a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

.app-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}

.app-shell.auth-shell {
    align-items: flex-start;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 16vh 24px 24px;
    width: 100%;
}

.auth-shell .main {
    margin: 0 auto;
    max-width: 640px;
    padding: 0;
    width: 100%;
}

.auth-shell .page-header {
    display: block;
    text-align: center;
}

.auth-shell .form-panel.narrow {
    max-width: none;
}

.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    padding: 24px 0 20px;
}

.brand {
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 20px 22px;
}

.nav {
    display: grid;
    gap: 0;
}

.nav-link {
    border-bottom: 1px solid var(--line);
    border-left: 4px solid transparent;
    color: #111111;
    font-size: 13px;
    font-weight: 750;
    min-height: 44px;
    padding: 12px 20px 12px 16px;
    text-decoration: none;
}

.nav-link.active,
.nav-link:hover {
    background: var(--accent-soft);
    border-left-color: var(--accent);
    color: #111111;
}

.account-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    font-size: 12px;
    gap: 8px;
    margin: auto 20px 0;
    padding: 12px;
}

.account-box span {
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-box a {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1b184;
    border-radius: 6px;
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    text-decoration: none;
}

.account-box a:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.main {
    padding: 36px 38px;
}

.main:has(.comment-update-form) {
    padding-bottom: 360px;
}

.main:has(.comment-update-form.is-collapsed) {
    padding-bottom: 104px;
}

body.is-task-detail-modal-open {
    overflow: hidden;
}

body.is-goal-sheet-modal-open {
    overflow: hidden;
}

body.is-user-edit-modal-open {
    overflow: hidden;
}

.task-detail-modal-backdrop {
    align-items: flex-start;
    background: rgba(32, 35, 38, 0.62);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 42px 48px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 120;
}

.task-detail-modal-backdrop[hidden] {
    display: none;
}

.task-detail-modal {
    background: #ffffff;
    border: 1px solid #c7ccd1;
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    height: calc(100vh - 84px);
    position: relative;
    width: min(1120px, calc(100vw - 96px));
}

.task-detail-modal.is-task-form-modal {
    width: min(980px, calc(100vw - 96px));
}

.task-detail-modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 42px;
    font-weight: 300;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: -54px;
    top: -8px;
    width: 44px;
    z-index: 2;
}

.task-detail-modal-close:hover {
    color: #f2f4f6;
}

.task-detail-modal-content {
    background: #f4f5f6;
    border-radius: inherit;
    height: 100%;
    overflow-y: auto;
    padding: 24px 26px 120px;
}

.task-detail-modal-content:has(.comment-update-form:not(.is-collapsed)) {
    padding-bottom: 360px;
}

.task-detail-modal-content .page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    margin: -24px -26px 18px;
    padding: 18px 26px 16px;
}

.task-detail-modal-content .form-panel {
    margin: 0;
}

.task-detail-modal-content .task-detail-actions {
    justify-content: flex-end;
}

.task-detail-modal-content .comment-update-form {
    bottom: 0;
    box-sizing: border-box;
    left: 50%;
    position: absolute;
    right: 0;
    transform: translateX(-50%);
    width: 98%;
    z-index: 4;
}

.task-detail-modal-loading,
.task-detail-modal-error {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 280px;
}

.task-detail-modal-error {
    color: var(--warn);
}

.page-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.eyebrow {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 0;
}

h2 {
    font-size: 18px;
    margin-bottom: 0;
}

.status-pill {
    border-radius: 999px;
    border: 1px solid;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
}

.status-pill.ok {
    background: #edf8f3;
    border-color: #bfe4d1;
    color: var(--ok);
}

.status-pill.warn {
    background: #fff4df;
    border-color: #f0ce91;
    color: var(--warn);
}

.summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.summary-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.summary-grid.compact .summary-card {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.summary-card,
.panel,
.form-panel {
    background: var(--panel);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.summary-card {
    min-height: 148px;
    padding: 18px;
}

.summary-card .label {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.summary-card strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.summary-grid.compact .summary-card strong {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 0;
}

.summary-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 0;
}

.dashboard-header {
    margin-bottom: 18px;
}

.dashboard-summary {
    margin-bottom: 16px;
}

.dashboard-summary-card {
    border: 1px solid transparent;
    min-height: 132px;
}

.dashboard-summary-card.is-alert {
    border-color: #f0b7a8;
}

.dashboard-summary-card.is-alert strong {
    color: #b52611;
}

.dashboard-grid {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    margin-bottom: 16px;
}

.dashboard-side {
    display: grid;
    gap: 16px;
}

.dashboard-panel {
    padding: 16px;
}

.dashboard-panel-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.dashboard-panel-header h2 {
    font-size: 17px;
}

.dashboard-panel-header .button {
    font-size: 12px;
    min-height: 32px;
    padding: 5px 10px;
}

.dashboard-empty {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    padding: 14px;
}

.dashboard-task-list {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-task-row {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    display: grid;
    gap: 10px;
    grid-template-columns: 112px minmax(0, 1fr) 118px 82px;
    min-height: 54px;
    padding: 9px 12px;
    text-decoration: none;
}

.dashboard-task-row:last-child {
    border-bottom: 0;
}

.dashboard-task-row:hover {
    background: #f8fafc;
}

.dashboard-task-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.dashboard-task-main strong {
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-task-main span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-date {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.dashboard-date.is-overdue {
    color: #b52611;
}

.dashboard-date.is-today {
    color: var(--accent-dark);
}

.dashboard-goal {
    display: grid;
    gap: 12px;
}

.dashboard-goal > div {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 12px;
}

.dashboard-goal > div span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.dashboard-goal > div strong {
    color: #00856f;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.dashboard-goal dl {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.dashboard-goal dl div {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.dashboard-goal dl div:last-child {
    border-bottom: 0;
}

.dashboard-goal dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.dashboard-goal dd {
    font-size: 13px;
    font-weight: 900;
    margin: 0;
}

.dashboard-total {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-status-list {
    display: grid;
    gap: 9px;
}

.dashboard-status-row {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 104px minmax(0, 1fr) 42px;
}

.dashboard-status-meter {
    background: #eef2f5;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.dashboard-status-meter span {
    background: var(--accent);
    display: block;
    height: 100%;
}

.dashboard-status-row strong {
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.dashboard-ratio-row {
    grid-template-columns: 96px minmax(0, 1fr) 52px;
}

.dashboard-type-label {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-recent-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-recent-item {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 9px;
    min-height: 138px;
    padding: 12px;
    text-decoration: none;
}

.dashboard-recent-item:hover {
    background: #ffffff;
    border-color: #b8c2cc;
}

.dashboard-recent-item strong {
    display: -webkit-box;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-recent-item small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-top: auto;
}

.task-status-filter {
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 10px 12px;
    white-space: nowrap;
}

.task-status-filter-label {
    color: var(--text);
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
}

.task-status-filter-link {
    align-items: center;
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 32px;
    padding: 6px 10px;
    text-decoration: none;
}

.task-status-filter-link:hover {
    background: #f1f3f5;
}

.task-status-filter-link.active {
    background: #333333;
    color: #ffffff;
}

.task-status-filter-link span,
.task-status-filter-link strong {
    font-size: 13px;
    line-height: 1;
}

.task-status-filter-link strong {
    font-weight: 800;
}

.panel {
    padding: 20px;
}

.form-panel {
    padding: 22px;
}

.form-panel.narrow {
    max-width: 460px;
}

.panel-header {
    border-bottom: 1px solid var(--line);
    margin: -2px 0 16px;
    padding-bottom: 12px;
}

.setup-list {
    margin: 0;
    padding-left: 22px;
}

.setup-list li {
    margin-bottom: 8px;
}

.toolbar {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.toolbar-title {
    color: var(--text);
    min-width: 86px;
    text-align: center;
}

.filter-panel {
    margin-bottom: 16px;
}

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

.filter-form label {
    display: grid;
    gap: 7px;
}

.filter-form label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.period-switcher label {
    align-items: center;
    display: flex;
    gap: 8px;
}

.period-switcher span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.period-switcher select {
    min-height: 40px;
    min-width: 150px;
    width: auto;
}

.button,
button {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    text-decoration: none;
}

.button.primary,
button[type="submit"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.button.danger {
    background: #ffffff;
    border-color: #d8a2a2;
    color: #9b1c1c;
}

.inline-form {
    margin: 0;
}

.inline-form button {
    min-height: 34px;
    padding: 6px 10px;
}

.task-master-panel {
    margin-bottom: 18px;
}

.task-master-create-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 360px) auto;
    max-width: 520px;
}

.task-master-create-form label {
    display: grid;
    gap: 7px;
}

.task-master-create-form label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.task-master-create-form input,
.task-master-row-form input {
    width: min(100%, 360px);
}

.task-master-create-form button,
.task-master-row-form button,
.task-master-delete-form button {
    min-height: 36px;
    padding: 7px 12px;
}

.task-master-list-panel {
    margin-top: 18px;
}

.task-master-row-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
}

.task-master-delete-form {
    margin: 0;
}

.muted-text {
    color: var(--muted);
    font-size: 13px;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.stack-form label {
    display: grid;
    gap: 7px;
}

.stack-form label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stack-form .check-row {
    align-items: center;
    display: flex;
    gap: 8px;
}

.stack-form .check-row input {
    min-height: auto;
    width: auto;
}

input,
select,
textarea {
    background: #f3f6f8;
    border: 1px solid #aeb8c2;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    min-height: 42px;
    padding: 8px 11px;
    width: 100%;
}

input,
textarea {
    cursor: text;
}

select,
input[type="date"],
input[type="month"],
input[type="number"],
input[type="checkbox"],
input[type="radio"],
button {
    cursor: pointer;
}

input:hover,
select:hover {
    background: #eef2f5;
    border-color: #8f9aa5;
}

input:focus,
select:focus,
textarea:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.13);
    outline: 0;
}

input::placeholder,
textarea::placeholder {
    color: #9aa1a9;
}

textarea {
    resize: vertical;
}

.alert {
    background: #fff4df;
    border: 1px solid #f0ce91;
    border-radius: 6px;
    color: var(--warn);
    font-weight: 700;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.notice {
    background: #e8f6ef;
    border: 1px solid #b6e3cd;
    border-radius: 6px;
    color: var(--ok);
    font-weight: 700;
    margin-bottom: 14px;
    padding: 10px 12px;
}

.token-reveal {
    background: #f7fafb;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 14px;
}

.token-reveal span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.token-reveal code {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    overflow-x: auto;
    padding: 10px;
    white-space: nowrap;
}

.task-form {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.task-form label {
    display: grid;
    gap: 7px;
    grid-column: span 6;
}

.task-form label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.parent-task-context {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.parent-task-context > div {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    padding: 15px 18px;
}

.parent-task-context > div > span,
.parent-task-context dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.parent-task-context strong {
    align-items: center;
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    font-size: 18px;
    gap: 8px;
    line-height: 1.45;
}

.parent-task-context dl {
    display: grid;
    grid-template-columns: 150px minmax(120px, 1fr) 260px;
    margin: 0;
}

.parent-task-context dl div {
    border-right: 1px solid var(--line);
    display: grid;
    gap: 6px;
    padding: 13px 18px;
}

.parent-task-context dl div:last-child {
    border-right: 0;
}

.parent-task-context dd {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.parent-task-context .status-badge {
    color: #ffffff;
}

.edit-task-context {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.edit-task-context-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 18px;
}

.edit-task-context-head h2 {
    font-size: 19px;
    line-height: 1.45;
    margin: 8px 0 0;
}

.edit-task-context dl {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 260px 150px 180px;
    margin: 0;
}

.edit-task-context dl div {
    border-right: 1px solid var(--line);
    display: grid;
    gap: 6px;
    padding: 13px 18px;
}

.edit-task-context dl div:last-child {
    border-right: 0;
}

.edit-task-context dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.edit-task-context dd {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.task-edit-form {
    align-items: end;
    column-gap: 20px;
    row-gap: 18px;
}

.task-edit-form .field-title {
    max-width: 920px;
}

.task-edit-form .field-compact {
    grid-column: span 3;
}

.task-edit-form .field-medium {
    grid-column: span 6;
}

.task-edit-form .field-status,
.task-edit-form .field-progress,
.task-edit-form .field-hours {
    grid-column: span 2;
}

.task-edit-form .field-parent {
    grid-column: span 4;
}

.task-edit-form .field-person,
.task-edit-form .field-date {
    grid-column: span 2;
}

.form-section-title {
    align-items: center;
    color: var(--text);
    display: flex;
    font-size: 13px;
    font-weight: 900;
    gap: 10px;
    margin-top: 4px;
}

.form-section-title::after {
    background: var(--line);
    content: "";
    flex: 1;
    height: 1px;
}

.task-edit-form input,
.task-edit-form select,
.task-edit-form textarea {
    background-color: #f3f6f8;
    font-size: 13px;
    min-height: 38px;
    padding: 7px 10px;
}

.task-edit-form input:focus,
.task-edit-form select:focus,
.task-edit-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.14);
    outline: 0;
}

.task-edit-form textarea {
    line-height: 1.55;
    min-height: 170px;
}

.task-edit-form .markdown-editor-field {
    grid-column: 1 / -1;
    max-width: none;
}

.task-delete-panel {
    align-items: center;
    background: #fffafa;
    border: 1px solid #e7b9b9;
    border-radius: 8px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 13px 14px;
}

.task-delete-panel > div {
    display: grid;
    gap: 3px;
}

.task-delete-panel strong {
    color: #8f1d1d;
    font-size: 13px;
    font-weight: 900;
}

.task-delete-panel span {
    color: var(--muted);
    font-size: 12px;
}

.task-delete-panel form {
    margin: 0;
}

.task-delete-panel button.danger {
    background: #ffffff;
    border-color: #d18b8b;
    color: #9b1c1c;
    font-size: 13px;
    min-height: 34px;
    padding: 6px 12px;
}

.task-delete-panel button.danger:not(:disabled):hover {
    background: #fff0f0;
    border-color: #b85f5f;
}

.task-delete-panel button.danger:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.markdown-editor {
    background: #f3f6f8;
    border: 1px solid #aeb8c2;
    border-radius: 8px;
    overflow: hidden;
}

.markdown-editor-field {
    position: relative;
}

.markdown-editor-toolbar {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
}

.markdown-tool {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-height: 30px;
    padding: 5px 10px;
    user-select: none;
}

.markdown-tool:hover {
    background: #eef2f5;
    border-color: #aeb8c2;
    color: var(--text);
}

.markdown-tool:focus {
    box-shadow: none;
    outline: 0;
}

.markdown-tool[data-md-action]:not([data-md-action="preview"]),
.markdown-tool[data-md-action]:not([data-md-action="preview"]).is-active,
.markdown-tool[data-md-action]:not([data-md-action="preview"]):active,
.markdown-tool[data-md-action]:not([data-md-action="preview"]):focus {
    background: #ffffff;
    border-color: var(--line);
    color: var(--text);
}

.markdown-tool[data-md-action]:not([data-md-action="preview"]):hover {
    background: #eef2f5;
    border-color: #aeb8c2;
    color: var(--text);
}

.markdown-tool[data-md-action="preview"].is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.markdown-editor textarea {
    background: #f3f6f8;
    border: 0;
    border-radius: 0;
    display: block;
    min-height: 280px;
    padding: 14px 16px;
}

.markdown-editor textarea:focus {
    box-shadow: inset 0 0 0 2px rgba(255, 121, 0, 0.24);
}

.markdown-editor-preview {
    background: #f3f6f8;
    min-height: 280px;
    padding: 14px;
}

.markdown-preview-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.markdown-editor-preview .markdown-body {
    background: #ffffff;
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    min-height: 236px;
    padding: 16px;
}

.span-2 {
    grid-column: span 12;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.task-detail-actions {
    margin-bottom: 14px;
}

.task-detail-overview {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    padding: 0;
}

.task-detail-overview-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 15px 18px;
}

.task-detail-title-group {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.task-number-chip,
.task-list-number-chip,
.task-number-cell {
    align-items: center;
    background: #eef2f5;
    border: 1px solid #cbd3da;
    border-radius: 999px;
    color: #68737d;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-width: 96px;
    padding: 5px 9px;
    white-space: nowrap;
}

.task-detail-progress {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
}

.task-detail-progress strong {
    align-items: center;
    background: #eef2f3;
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    height: 28px;
    justify-content: center;
    min-width: 34px;
    padding: 0 10px;
}

.task-detail-progress strong.progress-stars {
    color: var(--accent);
}

.auto-progress-stars,
.task-detail-progress strong.auto-progress-stars,
.task-info-meta-chip.is-progress.is-auto {
    background: #e4f4ed;
    border: 1px solid #63b98f;
    border-radius: 999px;
    color: #16704a;
    justify-content: center;
    min-height: 24px;
    min-width: 0;
    padding: 0 10px;
    text-align: center;
    width: auto;
}

.task-detail-progress strong.auto-progress-stars {
    min-width: 0;
    width: auto;
}

.task-detail-meta {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
}

.task-detail-meta div {
    border-right: 1px solid var(--line);
    padding: 14px 18px;
}

.task-detail-meta div:last-child {
    border-right: 0;
}

.task-detail-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.task-detail-meta dd {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.task-detail-source-meta {
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0;
}

.task-detail-source-meta div {
    border-right: 1px solid var(--line);
    padding: 12px 18px;
}

.task-detail-source-meta div:last-child {
    border-right: 0;
}

.task-detail-source-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.task-detail-source-meta dd {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.task-detail-grid {
    align-items: stretch;
    margin-bottom: 18px;
}

.task-detail-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.task-detail-grid > .task-detail-panel {
    height: 100%;
}

.task-detail-panel + .task-detail-panel {
    margin-top: 18px;
}

.task-detail-grid > .task-detail-panel + .task-detail-panel {
    margin-top: 0;
}

.task-detail-panel-header {
    margin-top: 0;
}

.task-description-panel {
    padding: 18px 22px 20px;
}

.task-description-panel .task-detail-panel-header {
    margin: 0 0 12px;
    padding-bottom: 10px;
}

.task-description-panel .task-detail-panel-header h2 {
    font-size: 16px;
    line-height: 1.3;
}

.task-description-panel .markdown-body {
    line-height: 1.45;
}

.task-description-panel .markdown-body p,
.task-description-panel .markdown-body ul,
.task-description-panel .markdown-body ol {
    margin-bottom: 6px;
}

.task-description-panel .markdown-body h3,
.task-description-panel .markdown-body h4 {
    margin: 10px 0 6px;
}

.task-file-panel {
    padding: 16px 18px 18px;
}

.task-file-panel-header {
    margin: 0 0 12px;
    padding-bottom: 10px;
}

.task-file-panel-header h2 span,
.comment-panel-header h2 span {
    color: var(--muted);
    font-weight: 600;
}

.task-file-list,
.comment-file-list {
    display: grid;
    gap: 7px;
}

.comment-file-list {
    margin-top: 12px;
}

.task-file-row {
    align-items: center;
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 6px;
    line-height: 1.4;
}

.task-file-row.is-deleted {
    color: var(--muted);
}

.task-file-label {
    color: var(--muted);
    font-weight: 700;
}

.task-file-icon {
    align-items: center;
    background: #eef2f5;
    border: 1px solid #cbd3da;
    border-radius: 4px;
    color: #68737d;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    min-width: 30px;
    padding: 0 5px;
}

.task-file-name,
.task-file-download {
    color: #00856f;
    font-weight: 800;
    text-decoration: none;
}

.task-file-name:hover,
.task-file-download:hover {
    text-decoration: underline;
}

.task-file-original,
.task-file-size {
    color: var(--muted);
    font-size: 12px;
}

.task-file-delete-form {
    display: inline-flex;
    margin: 0;
}

.task-file-delete-form button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #69727c;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    min-height: 0;
    padding: 0 4px;
}

.task-file-delete-form button:hover {
    color: #d13b2f;
}

.task-file-thumb {
    display: inline-block;
    margin: 4px 0 6px 78px;
    max-width: 220px;
}

.task-file-thumb img {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: block;
    max-height: 140px;
    max-width: 220px;
    object-fit: contain;
}

.task-file-upload-form {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d7dde3;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 10px;
}

.task-file-upload-form input[type="file"] {
    background: #ffffff;
    border: 1px solid #c7d0d8;
    border-radius: 6px;
    flex: 1 1 auto;
    font-size: 12px;
    min-height: 34px;
    min-width: 0;
    padding: 5px 7px;
}

.task-file-upload-form input[type="file"]::file-selector-button {
    background: #eef2f5;
    border: 1px solid #c7d0d8;
    border-radius: 5px;
    color: #3d464f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    margin-right: 8px;
    min-height: 24px;
    padding: 3px 8px;
}

.task-file-upload-form button {
    border-radius: 6px;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    min-height: 34px;
    min-width: 126px;
    padding: 7px 12px;
    white-space: nowrap;
}

.comment-attachment-field {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.comment-attachment-field input[type="file"] {
    background: #ffffff;
    border: 1px solid #aeb8c2;
    border-radius: 6px;
    font-size: 12px;
    min-height: 36px;
    padding: 6px 8px;
}

.comment-attachment-field input[type="file"]::file-selector-button {
    background: #eef2f5;
    border: 1px solid #c7d0d8;
    border-radius: 5px;
    color: #3d464f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    margin-right: 8px;
    min-height: 24px;
    padding: 3px 8px;
}

.definition-list {
    display: grid;
    gap: 10px 16px;
    grid-template-columns: 120px 1fr;
    margin: 0;
}

.definition-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.definition-list dd {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.pre-line {
    color: var(--text);
    font-size: 13px;
    margin-bottom: 0;
    white-space: pre-wrap;
}

.markdown-body {
    color: var(--text);
    font-size: 13px;
    max-width: 980px;
}

.markdown-body > *:first-child {
    margin-top: 0;
}

.markdown-body > *:last-child {
    margin-bottom: 0;
}

.markdown-body h3,
.markdown-body h4 {
    color: var(--text);
    font-weight: 800;
    line-height: 1.4;
    margin: 18px 0 9px;
}

.markdown-body h3 {
    border-left: 4px solid var(--accent);
    font-size: 15px;
    padding-left: 10px;
}

.markdown-body h4 {
    color: #3c4043;
    font-size: 14px;
}

.markdown-body p {
    margin: 0 0 11px;
}

.markdown-body ul,
.markdown-body ol {
    background: #f7f8f9;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 0 12px;
    padding: 10px 16px 10px 28px;
}

.markdown-body li {
    margin-bottom: 5px;
    padding-left: 2px;
}

.markdown-body li:last-child {
    margin-bottom: 0;
}

.markdown-body code {
    background: #eef2f3;
    border: 1px solid #d9e0e3;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 5px;
}

.markdown-body a {
    background: #fff3a3;
    border-radius: 4px;
    color: #00856f;
    font-weight: 700;
    padding: 1px 4px;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.markdown-body blockquote {
    background: #fff8ed;
    border-left: 4px solid var(--accent);
    color: #4b4f54;
    margin: 0 0 12px;
    padding: 10px 14px;
}

.markdown-table-wrap {
    margin: 10px 0 12px;
    overflow-x: auto;
}

.markdown-body table {
    border-collapse: collapse;
    min-width: 420px;
    width: 100%;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.markdown-body th {
    background: #f3f6f8;
    font-weight: 900;
}

.markdown-body td {
    background: #ffffff;
}

.markdown-body hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 14px 0;
}

.comment-list {
    border-top: 1px solid var(--line);
    margin-bottom: 18px;
}

.comment-item {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 16px;
    grid-template-columns: 54px 1fr;
    padding: 24px 0;
}

.comment-item.imported-comment {
    background: transparent;
}

.comment-panel-header h2 span {
    color: var(--muted);
    font-weight: 600;
}

.comment-avatar {
    align-items: center;
    background: #6f3aa2;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    line-height: 1;
    width: 46px;
}

.comment-avatar-imported {
    background: #8d99a6;
}

.comment-meta {
    align-items: start;
    color: var(--text);
    display: flex;
    gap: 2px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.comment-meta > div {
    display: grid;
    gap: 2px;
}

.comment-meta strong {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.comment-meta span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.comment-delete-form {
    margin: 0;
    margin-left: auto;
}

.comment-delete-form button {
    background: #f5f6f7;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #6f7782;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    min-width: 0;
    padding: 5px 8px;
}

.comment-delete-form button:hover {
    background: #eceff2;
    border-color: #cfd6de;
    color: #4f5965;
}

.comment-content .markdown-body {
    max-width: none;
}

.mention-chip {
    background: #dff5ee;
    border-radius: 4px;
    color: #00856f;
    display: inline-block;
    font-weight: 800;
    line-height: 1.2;
    padding: 1px 4px;
}

.comment-form {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
}

.comment-form label {
    display: grid;
    gap: 7px;
}

.comment-form label span,
.comment-form .markdown-editor-field > span,
.comment-notify-users > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.comment-update-form {
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    column-gap: 18px;
    grid-template-columns: minmax(0, 1fr) 360px;
    left: 270px;
    margin: 0;
    padding: 14px 16px 16px;
    position: fixed;
    right: 38px;
    z-index: 40;
}

.comment-update-form.is-collapsed {
    grid-template-columns: 1fr;
    padding: 12px 16px;
}

.comment-update-form.is-collapsed .comment-form label span,
.comment-update-form.is-collapsed .markdown-editor-field > span,
.comment-update-form.is-collapsed .markdown-editor-toolbar,
.comment-update-form.is-collapsed .markdown-editor-preview,
.comment-update-form.is-collapsed .comment-notify-users,
.comment-update-form.is-collapsed .comment-attachment-field,
.comment-update-form.is-collapsed .comment-update-column,
.comment-update-form.is-collapsed .comment-update-actions {
    display: none;
}

.comment-update-form.is-collapsed .markdown-editor {
    background: transparent;
    border: 0;
    border-radius: 0;
}

.comment-update-form.is-collapsed .comment-markdown-editor textarea {
    background: #ffffff;
    border: 1px solid #aeb8c2;
    border-radius: 6px;
    height: 42px;
    min-height: 42px;
    overflow: hidden;
    padding: 9px 12px;
}

.comment-editor-column {
    min-width: 0;
}

.comment-update-column {
    align-items: end;
    display: grid;
    gap: 10px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comment-update-column label {
    gap: 5px;
}

.comment-update-column label:first-child {
    grid-column: 1 / -1;
}

.comment-update-column select,
.comment-update-column input {
    font-size: 13px;
    min-height: 38px;
    padding: 7px 10px;
}

.comment-update-column input[type="number"] {
    text-align: right;
}

.comment-update-actions {
    justify-content: center;
    grid-column: 1 / -1;
}

.comment-notify-users {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    position: relative;
}

.user-picker-toggle {
    background: #ffffff;
    border: 1px solid #aeb8c2;
    border-radius: 6px;
    color: var(--text);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 12px;
    width: 100%;
}

.user-picker-caret {
    color: var(--muted);
    font-size: 10px;
}

.user-picker-menu {
    background: #ffffff;
    border: 1px solid #aeb8c2;
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    bottom: calc(100% + 4px);
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    z-index: 20;
}

.user-picker-menu-head {
    align-items: center;
    background: #e6e6e6;
    display: flex;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
}

.user-picker-menu-head span,
.user-picker-menu-head strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.user-picker-menu-head strong {
    margin-left: auto;
}

.user-picker-icon {
    color: var(--muted);
}

.user-picker-options {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}

.user-picker-option {
    align-items: center;
    cursor: pointer;
    display: flex !important;
    gap: 8px !important;
    grid-template-columns: none !important;
    min-height: 34px;
    padding: 5px 12px;
}

.user-picker-option:hover {
    background: #f3f6f8;
}

.user-picker-option input {
    display: none;
}

.user-picker-option > span:last-child {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.user-picker-avatar {
    align-items: center;
    background: #6f3aa2;
    border-radius: 50%;
    color: #ffffff !important;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px !important;
    font-weight: 800 !important;
    height: 24px;
    justify-content: center;
    line-height: 1;
    width: 24px;
}

.user-picker-option:has(input:checked) {
    background: #fff8ed;
}

.user-picker-option:has(input:checked) .user-picker-avatar {
    background: var(--accent);
}

.user-picker-toggle [data-user-picker-summary] {
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mention-suggest-menu {
    background: #ffffff;
    border: 1px solid #aeb8c2;
    border-radius: 6px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    left: 0;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    top: 24px;
    width: min(320px, 100%);
    z-index: 45;
}

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

.mention-suggest-option {
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    display: block;
    font-size: 13px;
    font-weight: 700;
    min-height: 32px;
    padding: 7px 9px;
    text-align: left;
    width: 100%;
}

.mention-suggest-option:hover,
.mention-suggest-option.is-active {
    background: #fff8ed;
    color: #8c4a00;
}

.comment-markdown-editor textarea {
    min-height: 150px;
    resize: none;
}

.comment-markdown-editor .markdown-editor-preview {
    background: #fff7d6;
    min-height: 150px;
}

.comment-markdown-editor .markdown-editor-preview .markdown-body {
    background: #fffdf2;
    border: 1px solid #f0d98a;
    border-radius: 6px;
    min-height: 106px;
}

.task-detail-child-table table {
    font-size: 13px;
    min-width: 720px;
}

.task-detail-child-table th,
.task-detail-child-table td {
    padding: 9px 10px;
    text-align: center;
    vertical-align: middle;
}

.task-detail-child-table th:first-child,
.task-detail-child-table td:first-child {
    text-align: left;
}

.task-detail-child-table a {
    color: #00856f;
    font-weight: 700;
    text-decoration: none;
}

.task-detail-child-table a:hover {
    text-decoration: underline;
}

.task-info-tree {
    display: grid;
    gap: 0;
}

.task-info-panel-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.task-info-panel-header h2 {
    margin: 0;
}

.task-info-add-button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 12px;
}

.task-info-tree-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 14px;
}

.task-info-tree-row:last-child {
    border-bottom: 0;
}

.task-info-tree-row.is-current {
    background: #edf8f2;
}

.task-info-tree-row.is-current .task-number-chip {
    background: #eef2f5;
    border-color: #cbd3da;
    color: #68737d;
}

.task-info-tree-row.is-child {
    padding-left: 36px;
}

.task-info-tree-row.is-grandchild {
    padding-left: 64px;
}

.task-info-tree a {
    align-items: center;
    color: #00856f;
    display: inline-flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.task-info-title {
    min-width: 0;
}

.task-info-tree a:hover {
    text-decoration: underline;
}

.task-info-row-meta {
    align-items: center;
    display: grid;
    flex: 0 0 auto;
    gap: 6px;
    grid-template-columns: 86px 120px minmax(76px, auto);
    white-space: nowrap;
}

.task-info-meta-chip {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 26px;
    min-width: 0;
    overflow: hidden;
    padding: 5px 9px;
    text-overflow: ellipsis;
}

.task-info-meta-chip.is-progress {
    color: var(--accent-dark);
}

.task-info-meta-chip.is-progress.is-auto {
    min-height: 26px;
    width: auto;
}

.task-info-meta-chip.is-status {
    background: var(--status-badge-bg, #f8fafc);
    border-color: var(--status-badge-border, var(--line));
    color: var(--text);
}

.task-info-meta-chip.is-status.status-not_started {
    --status-badge-bg: #fde3e0;
    --status-badge-border: #f4766d;
}

.task-info-meta-chip.is-status.status-in_progress {
    --status-badge-bg: #dcecf8;
    --status-badge-border: #3f8dcc;
}

.task-info-meta-chip.is-status.status-pre_shared {
    --status-badge-bg: #ddf1eb;
    --status-badge-border: #4bb494;
}

.task-info-meta-chip.is-status.status-check_waiting {
    --status-badge-bg: #ffe0e9;
    --status-badge-border: #ff2364;
}

.task-info-meta-chip.is-status.status-review_requested {
    --status-badge-bg: #d7eee9;
    --status-badge-border: #00856f;
}

.task-info-meta-chip.is-status.status-revision_waiting {
    --status-badge-bg: #f7ddf4;
    --status-badge-border: #d86fcb;
}

.task-info-meta-chip.is-status.status-adjusting {
    --status-badge-bg: #ffe1d9;
    --status-badge-border: #ef2b00;
}

.task-info-meta-chip.is-status.status-processed {
    --status-badge-bg: #def2ed;
    --status-badge-border: #56bba5;
}

.task-info-meta-chip.is-status.status-request_waiting {
    --status-badge-bg: #f4dfd6;
    --status-badge-border: #bf4a1f;
}

.task-info-meta-chip.is-status.status-client_waiting {
    --status-badge-bg: #ffe4d9;
    --status-badge-border: #ff5a1f;
}

.task-info-meta-chip.is-status.status-blocked,
.task-info-meta-chip.is-status.status-stay {
    --status-badge-bg: #e4e4e4;
    --status-badge-border: #333333;
}

.task-info-meta-chip.is-status.status-completed {
    --status-badge-bg: #eef3d4;
    --status-badge-border: #99ad22;
}

.task-info-meta-chip.is-status.status-unknown {
    --status-badge-bg: #e8edf1;
    --status-badge-border: #8d99a6;
}

.menu-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 6px;
    padding: 14px;
    text-decoration: none;
}

.menu-item:hover {
    border-color: var(--accent);
}

.menu-item strong {
    font-size: 16px;
}

.menu-item span {
    color: var(--muted);
    font-size: 13px;
}

.admin-sort-table {
    min-width: 620px;
}

.admin-sort-table th,
.admin-sort-table td {
    vertical-align: middle;
}

.admin-sort-table .admin-sort-order {
    width: 140px;
}

.admin-sort-table tbody tr {
    cursor: grab;
}

.admin-sort-table tbody tr.is-dragging {
    opacity: 0.45;
}

.admin-sort-table tbody tr.drag-over td {
    background: #fff2df;
}

.admin-sort-order-content {
    align-items: center;
    display: flex;
    gap: 10px;
}

.drag-handle {
    align-items: center;
    background: #eef2f5;
    border: 1px solid #cbd3da;
    border-radius: 6px;
    color: var(--muted);
    display: inline-flex;
    font-size: 16px;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    line-height: 1;
    width: 32px;
}

.sort-position {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    min-width: 28px;
}

.task-list-group-form {
    display: grid;
    gap: 16px;
}

.team-member-sort-form {
    display: grid;
    gap: 0;
}

.team-summary-table-wrap {
    overflow-x: visible;
}

.team-summary-table {
    font-size: 13px;
    min-width: 0;
    table-layout: fixed;
}

.team-summary-table th,
.team-summary-table td {
    padding: 8px 9px;
    vertical-align: middle;
}

.team-summary-table th:first-child,
.team-summary-table td:first-child {
    text-align: left;
}

.team-summary-table th:last-child,
.team-summary-table td:last-child {
    text-align: center;
    width: 96px;
}

.team-member-sort-table {
    font-size: 13px;
    min-width: 980px;
    table-layout: fixed;
}

.team-member-sort-table th,
.team-member-sort-table td {
    padding: 8px 9px;
    vertical-align: middle;
}

.team-member-sort-table .admin-sort-order {
    width: 116px;
}

.team-member-sort-table th:nth-child(2),
.team-member-sort-table td:nth-child(2) {
    width: 180px;
}

.team-member-sort-table th:nth-child(4),
.team-member-sort-table td:nth-child(4) {
    width: 140px;
}

.team-member-sort-table th:nth-child(5),
.team-member-sort-table td:nth-child(5) {
    width: 104px;
}

.team-member-sort-table th:nth-child(6),
.team-member-sort-table td:nth-child(6) {
    width: 84px;
}

.team-role-badge {
    align-items: center;
    background: #eef2f5;
    border: 1px solid #cbd3da;
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    padding: 5px 9px;
}

.team-role-badge.is-leader {
    background: #edf8f3;
    border-color: #bfe4d1;
    color: var(--ok);
}

.team-member-sort-actions {
    justify-content: flex-end;
    margin-top: 0;
    padding: 10px 12px 12px;
}

.team-member-sort-actions button,
.team-member-sort-table .button {
    font-size: 12px;
    min-height: 30px;
    padding: 5px 10px;
}

.team-member-sort-table .drag-handle {
    font-size: 14px;
    height: 28px;
    width: 28px;
}

.team-member-sort-table .sort-position {
    font-size: 12px;
    min-width: 20px;
}

.team-member-group > form[id^="remove-team-"] {
    display: none;
}

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

table {
    border-collapse: collapse;
    min-width: 1000px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.empty-state {
    color: var(--muted);
    margin: 0;
}

.task-group-list {
    display: grid;
    gap: 18px;
}

.task-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.task-group table {
    font-size: 13px;
    min-width: 1120px;
    table-layout: fixed;
}

.task-col-title {
    width: 600px;
}

.task-col-status {
    width: 132px;
}

.task-col-assignee {
    width: 96px;
}

.task-col-date {
    width: 104px;
}

.task-col-progress {
    width: 88px;
}

.task-col-hours {
    width: 74px;
}

.task-group th,
.task-group td {
    padding: 8px 9px;
    text-align: center;
    vertical-align: middle;
}

.task-group th:first-child,
.task-group td:first-child {
    padding-left: 15px;
    text-align: left;
}

.task-group-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px 14px 22px;
}

.task-group-title {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    min-width: 0;
}

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

.flag-icon::before {
    background: #e96f38;
    content: "";
    height: 24px;
    left: 2px;
    position: absolute;
    top: 0;
    width: 3px;
}

.flag-icon::after {
    border-bottom: 7px solid transparent;
    border-left: 10px solid #e96f38;
    border-top: 7px solid transparent;
    content: "";
    left: 5px;
    position: absolute;
    top: 2px;
}

.task-group-title strong {
    color: var(--text);
    font-size: 18px;
}

.count-pill {
    align-items: center;
    background: #d9dddf;
    border-radius: 999px;
    color: var(--text);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 7px;
}

.task-group-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.task-group tr.child-task td {
    background: #f7f8f9;
}

.task-group tr.child-task td:first-child {
    box-shadow: inset 4px 0 0 #d8dde2;
}

.task-group tr.grandchild-task td {
    background: #f1f3f5;
}

.task-group tr.grandchild-task td:first-child {
    box-shadow: inset 4px 0 0 #c1c8cf;
}

.task-group tbody tr:hover td {
    background: #fff2df;
}

.task-group tbody tr.child-task:hover td {
    background: #eceff2;
}

.task-group tbody tr.grandchild-task:hover td {
    background: #e4e8ec;
}

.task-group .status-badge {
    box-sizing: border-box;
    font-size: 11px;
    height: 24px;
    min-width: 84px;
    padding: 1px 9px 0;
}

.progress-stars {
    align-items: center;
    color: var(--accent);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    letter-spacing: 1px;
    line-height: 1;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    width: auto;
}

.progress-stars.auto-progress-stars,
.task-detail-progress strong.progress-stars.auto-progress-stars,
.task-info-meta-chip.is-progress.is-auto {
    color: #0f5f3f;
}

.status-badge {
    align-items: center;
    background: var(--status-badge-bg, #e8edf1);
    border: 1px solid var(--status-badge-border, #8d99a6);
    border-radius: 999px;
    color: #1f252b;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-width: 92px;
    padding: 7px 12px;
    white-space: nowrap;
}

.status-not_started {
    background: #f4766d;
}

.status-in_progress {
    background: #3f8dcc;
}

.status-pre_shared {
    background: #4bb494;
}

.status-check_waiting {
    background: #ff2364;
}

.status-review_requested {
    background: #00856f;
}

.status-revision_waiting {
    background: #d86fcb;
}

.status-adjusting {
    background: #ef2b00;
}

.status-processed {
    background: #56bba5;
}

.status-request_waiting {
    background: #bf4a1f;
}

.status-client_waiting {
    background: #ff5a1f;
}

.status-blocked,
.status-stay {
    background: #333333;
}

.status-completed {
    background: #99ad22;
}

.status-unknown {
    background: #8d99a6;
}

.status-badge.status-not_started {
    --status-badge-bg: #fde3e0;
    --status-badge-border: #f4766d;
}

.status-badge.status-in_progress {
    --status-badge-bg: #dcecf8;
    --status-badge-border: #3f8dcc;
}

.status-badge.status-pre_shared {
    --status-badge-bg: #ddf1eb;
    --status-badge-border: #4bb494;
}

.status-badge.status-check_waiting {
    --status-badge-bg: #ffe0e9;
    --status-badge-border: #ff2364;
}

.status-badge.status-review_requested {
    --status-badge-bg: #d7eee9;
    --status-badge-border: #00856f;
}

.status-badge.status-revision_waiting {
    --status-badge-bg: #f7ddf4;
    --status-badge-border: #d86fcb;
}

.status-badge.status-adjusting {
    --status-badge-bg: #ffe1d9;
    --status-badge-border: #ef2b00;
}

.status-badge.status-processed {
    --status-badge-bg: #def2ed;
    --status-badge-border: #56bba5;
}

.status-badge.status-request_waiting {
    --status-badge-bg: #f4dfd6;
    --status-badge-border: #bf4a1f;
}

.status-badge.status-client_waiting {
    --status-badge-bg: #ffe4d9;
    --status-badge-border: #ff5a1f;
}

.status-badge.status-blocked,
.status-badge.status-stay {
    --status-badge-bg: #e4e4e4;
    --status-badge-border: #333333;
}

.status-badge.status-completed {
    --status-badge-bg: #eef3d4;
    --status-badge-border: #99ad22;
}

.status-badge.status-unknown {
    --status-badge-bg: #e8edf1;
    --status-badge-border: #8d99a6;
}

.status-badge.status-not_started,
.status-badge.status-in_progress,
.status-badge.status-pre_shared,
.status-badge.status-check_waiting,
.status-badge.status-review_requested,
.status-badge.status-revision_waiting,
.status-badge.status-adjusting,
.status-badge.status-processed,
.status-badge.status-request_waiting,
.status-badge.status-client_waiting,
.status-badge.status-blocked,
.status-badge.status-stay,
.status-badge.status-completed,
.status-badge.status-unknown {
    background: var(--status-badge-bg);
    border-color: var(--status-badge-border);
}

.task-title-cell {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    min-width: 0;
    padding-left: calc(var(--task-depth, 0) * 28px);
}

.task-title-cell a {
    color: #00856f;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.task-title-cell a:hover {
    text-decoration: underline;
}

.tree-branch {
    border-bottom: 1px dashed var(--line);
    border-left: 2px solid var(--line);
    height: 18px;
    margin-left: -18px;
    width: 18px;
}

.is-completed .task-title-cell a {
    color: var(--muted);
}

tr.is-completed {
    color: var(--muted);
}

.team-member-list {
    display: grid;
    gap: 14px;
}

.team-admin-grid {
    gap: 14px;
}

.team-admin-grid .form-panel,
.team-admin-grid .panel,
.team-admin-members-panel {
    padding: 16px;
}

.team-admin-grid .panel-header,
.team-admin-members-panel > .panel-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.team-admin-grid .stack-form {
    gap: 12px;
}

.team-admin-grid table,
.team-admin-members-panel table {
    font-size: 13px;
}

.user-admin-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    margin-bottom: 16px;
}

.user-form-header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.user-form-header p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 6px 0 0;
}

.user-admin-table {
    font-size: 13px;
    min-width: 760px;
}

.user-admin-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    padding: 9px 10px;
    white-space: nowrap;
}

.user-admin-table td {
    padding: 9px 10px;
    vertical-align: middle;
}

.user-name-link {
    background: transparent;
    border: 0;
    color: #00856f;
    cursor: pointer;
    display: inline;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    min-height: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
}

.user-name-link:hover {
    text-decoration: underline;
}

.user-status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    padding: 5px 9px;
}

.user-status-badge.is-active {
    background: #edf8f3;
    border: 1px solid #bfe4d1;
    color: var(--ok);
}

.user-status-badge.is-inactive {
    background: #eef2f5;
    border: 1px solid #cbd3da;
    color: var(--muted);
}

.user-admin-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 132px;
}

.user-admin-actions .button,
.user-admin-actions button {
    min-height: 34px;
    padding: 6px 10px;
    white-space: nowrap;
}

.user-edit-modal-backdrop {
    align-items: flex-start;
    background: rgba(32, 35, 38, 0.62);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 56px 32px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 135;
}

.user-edit-modal-backdrop[hidden] {
    display: none;
}

.user-edit-modal {
    background: #ffffff;
    border: 1px solid #c7ccd1;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    padding: 20px;
    position: relative;
    width: min(520px, calc(100vw - 64px));
}

.user-edit-modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 36px;
    font-weight: 300;
    height: 40px;
    justify-content: center;
    line-height: 1;
    min-height: 0;
    padding: 0;
    position: absolute;
    right: -48px;
    top: -8px;
    width: 40px;
}

.user-edit-modal-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.user-edit-modal-header h2 {
    font-size: 20px;
    margin: 0;
}

.user-edit-form {
    gap: 12px;
}

@media (max-width: 980px) {
    .user-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .user-edit-modal-backdrop {
        padding: 44px 14px;
    }

    .user-edit-modal {
        max-height: calc(100vh - 88px);
        width: calc(100vw - 28px);
    }

    .user-edit-modal-close {
        color: var(--text);
        right: 6px;
        top: 6px;
    }
}

.team-member-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
}

.team-member-group h3 {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    margin: 0;
    padding: 12px 14px;
}

.gantt-shell {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.gantt-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 24px;
}

.gantt-main .page-header {
    flex: 0 0 auto;
    margin-bottom: 16px;
}

.gantt-main .toolbar {
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.gantt-main .filter-panel {
    flex: 0 0 auto;
    margin-bottom: 12px;
    padding: 14px 16px;
}

.gantt-filter-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(150px, 0.75fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(170px, 0.9fr) auto;
}

.gantt-filter-form label {
    min-width: 0;
}

.gantt-filter-form label span {
    font-size: 12px;
}

.gantt-filter-form input,
.gantt-filter-form select {
    background: #f3f6f8;
    border-color: #aeb8c2;
    font-size: 13px;
    height: 36px;
    min-height: 36px;
    min-width: 0;
    padding: 6px 10px;
}

.gantt-filter-form .filter-actions {
    align-items: end;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    min-width: 168px;
}

.gantt-filter-form .filter-actions .button,
.gantt-filter-form .filter-actions button {
    font-size: 13px;
    height: 36px;
    justify-content: center;
    min-height: 36px;
    min-width: 78px;
    padding: 0 12px;
    white-space: nowrap;
}

.gantt-main .summary-grid {
    flex: 0 0 auto;
    margin-bottom: 12px;
}

.gantt-main .summary-card {
    min-height: 104px;
    padding: 14px;
}

.gantt-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.gantt-table {
    --gantt-day-width: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.gantt-header {
    border-bottom: 1px solid var(--line);
    display: grid;
    flex: 0 0 64px;
    grid-template-columns: 600px minmax(0, 1fr);
    min-height: 0;
    position: relative;
    z-index: 5;
}

.gantt-body-scroll {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 600px minmax(0, 1fr);
    min-height: 0;
    overflow-y: auto;
}

.gantt-left {
    background: #ffffff;
    border-right: 0;
    display: grid;
    grid-auto-rows: 40px;
    overflow: visible;
    z-index: 2;
}

.gantt-left-head,
.gantt-left-row {
    display: grid;
    grid-template-columns: 380px 100px 120px;
    min-height: 0;
}

.gantt-left-head {
    background: #ffffff;
    border-right: 0;
}

.gantt-chart-head-scroll {
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.gantt-chart-scroll {
    min-height: 0;
    overflow-x: auto;
    overflow-y: clip;
    position: relative;
}

.gantt-chart-head-scroll::before,
.gantt-chart-scroll::before {
    background: var(--line);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 1px;
    z-index: 6;
}

.gantt-chart-grid {
    display: grid;
    grid-auto-rows: 40px;
    min-width: calc(var(--gantt-days) * var(--gantt-day-width));
    overflow: hidden;
    width: calc(var(--gantt-days) * var(--gantt-day-width));
}

.gantt-head,
.gantt-task,
.gantt-meta,
.gantt-status {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    height: 40px;
    min-height: 0;
    padding: 6px 8px;
}

.gantt-head {
    background: #f7fafb;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    height: 64px;
    justify-content: center;
    text-align: center;
}

.gantt-task {
    font-weight: 700;
    overflow: hidden;
    padding-left: 14px;
}

.gantt-task-title {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
    padding-left: calc(var(--task-depth, 0) * 20px);
}

.gantt-task-title a {
    color: #00856f;
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gantt-task-title .task-number-cell {
    color: #68737d;
    font-size: 12px;
    min-width: 96px;
    padding: 5px 9px;
}

.gantt-task-title a:hover {
    text-decoration: underline;
}

.gantt-task.is-completed a,
.gantt-task.is-completed .task-number-cell {
    color: var(--muted);
}

.gantt-meta {
    color: var(--muted);
    font-size: 12px;
    justify-content: center;
    text-align: center;
}

.gantt-status {
    justify-content: center;
}

.gantt-status .status-badge {
    box-sizing: border-box;
    font-size: 11px;
    height: 24px;
    min-width: 84px;
    padding: 1px 9px 0;
}

.gantt-days {
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(var(--gantt-days), var(--gantt-day-width));
    min-width: calc(var(--gantt-days) * var(--gantt-day-width));
    width: calc(var(--gantt-days) * var(--gantt-day-width));
}

.gantt-month-row {
    align-items: center;
    background: #f7fafb;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    color: var(--text);
    display: grid;
    font-size: 13px;
    font-weight: 800;
    grid-template-columns: repeat(var(--gantt-days), var(--gantt-day-width));
    height: 26px;
    min-width: calc(var(--gantt-days) * var(--gantt-day-width));
    width: calc(var(--gantt-days) * var(--gantt-day-width));
}

.gantt-month-segment {
    align-items: center;
    border-left: 1px solid var(--line);
    display: flex;
    grid-column: span var(--month-span);
    height: 26px;
    padding: 0 8px;
}

.gantt-month-segment:first-child {
    border-left: 0;
}

.gantt-row {
    align-items: center;
    background-image: none;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(var(--gantt-days), var(--gantt-day-width));
    height: 40px;
    overflow: hidden;
    position: relative;
}

.gantt-left-row.is-group {
    background: #ffffff;
    border-bottom: 1px solid #bfc5ca;
    height: 40px;
}

.gantt-row.is-group {
    background: #ffffff;
    background-image: none;
    border-bottom: 0;
    height: 40px;
}

.gantt-row.is-group .gantt-cell {
    background: #ffffff;
    border-bottom-color: #bfc5ca;
    border-left-color: transparent;
    box-shadow: none;
}

.gantt-row.is-group .gantt-cell.weekend,
.gantt-row.is-group .gantt-cell.today {
    background: #ffffff;
}

.gantt-left-row.is-group {
    grid-template-columns: 1fr;
}

.gantt-group-title {
    align-items: center;
    color: var(--text);
    display: flex;
    font-size: 15px;
    font-weight: 900;
    gap: 8px;
    min-width: 0;
    padding: 7px 14px 7px 20px;
}

.gantt-group-marker {
    background: var(--accent);
    border-radius: 3px;
    display: inline-block;
    height: 14px;
    transform: rotate(45deg);
    width: 14px;
}

.gantt-group-count {
    align-items: center;
    background: #dfe3e6;
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    min-width: 26px;
    padding: 0 7px;
}

.gantt-group-meta {
    display: none;
}

.gantt-day,
.gantt-cell {
    border-left: 1px solid var(--line);
    height: 40px;
    min-height: 40px;
}

.gantt-day:first-child,
.gantt-cell:first-child {
    border-left: 0;
}

.gantt-day {
    border-bottom: 1px solid var(--line);
    height: 38px;
    min-height: 38px;
}

.gantt-day {
    align-items: center;
    background: #f7fafb;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.15;
}

.gantt-day small {
    font-size: 9px;
    font-weight: 700;
    margin-top: 2px;
}

.gantt-cell {
    border-bottom: 1px solid var(--line);
    grid-row: 1;
    position: relative;
}

.gantt-day.weekend,
.gantt-cell.weekend {
    background: #e4e9ed;
}

.gantt-day.today,
.gantt-cell.today {
    background: #fff6d8;
}

.gantt-cell.today::after {
    background: #ff7900;
    content: "";
    height: 100%;
    left: 50%;
    opacity: 0.35;
    position: absolute;
    top: 0;
    width: 2px;
}

.gantt-left-row.is-child-task .gantt-task,
.gantt-left-row.is-child-task .gantt-meta,
.gantt-left-row.is-child-task .gantt-status,
.gantt-row.is-child-task .gantt-cell {
    background: #f7f8f9;
}

.gantt-left-row.is-child-task .gantt-task {
    box-shadow: inset 4px 0 0 #d8dde2;
}

.gantt-left-row.is-grandchild-task .gantt-task,
.gantt-left-row.is-grandchild-task .gantt-meta,
.gantt-left-row.is-grandchild-task .gantt-status,
.gantt-row.is-grandchild-task .gantt-cell {
    background: #f1f3f5;
}

.gantt-left-row.is-grandchild-task .gantt-task {
    box-shadow: inset 4px 0 0 #c1c8cf;
}

.gantt-row.is-child-task .gantt-cell.weekend,
.gantt-row.is-grandchild-task .gantt-cell.weekend {
    background: #e4e9ed;
}

.gantt-row.is-child-task .gantt-cell.today,
.gantt-row.is-grandchild-task .gantt-cell.today {
    background: #fff6d8;
}

.gantt-bar {
    align-items: center;
    background: var(--gantt-bar-bg, #eef2f5);
    border: 1px solid var(--gantt-bar-border, #8d99a6);
    box-sizing: border-box;
    border-radius: 6px;
    color: #1f252b;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    height: 22px;
    left: calc((var(--bar-start) - 1) * var(--gantt-day-width) + 3px);
    line-height: 22px;
    margin: 0;
    overflow: visible;
    padding: 0 7px;
    position: absolute;
    text-shadow: none;
    top: 9px;
    touch-action: none;
    user-select: none;
    white-space: nowrap;
    width: calc(var(--bar-span) * var(--gantt-day-width) - 6px);
    z-index: 1;
}

.gantt-bar:not(.continues-before):not(.continues-after) {
    cursor: move;
}

.gantt-bar.is-moving,
.gantt-bar.is-resizing {
    box-shadow: 0 0 0 2px rgba(255, 121, 0, 0.28);
    z-index: 4;
}

.gantt-bar.is-resizing {
    cursor: ew-resize;
}

.gantt-bar.is-moving {
    cursor: move;
}

.gantt-bar.is-saving {
    opacity: 0.72;
}

.gantt-bar.is-error {
    box-shadow: 0 0 0 2px rgba(214, 48, 49, 0.32);
}

.gantt-resize-handle {
    bottom: -1px;
    cursor: ew-resize;
    position: absolute;
    top: -1px;
    width: 9px;
    z-index: 3;
}

.gantt-resize-handle::after {
    background: rgba(31, 37, 43, 0.32);
    border-radius: 999px;
    content: "";
    height: 12px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
}

.gantt-resize-handle.is-start {
    left: -1px;
}

.gantt-resize-handle.is-start::after {
    left: 3px;
}

.gantt-resize-handle.is-end {
    right: -1px;
}

.gantt-resize-handle.is-end::after {
    right: 3px;
}

.gantt-bar.status-not_started {
    --gantt-bar-bg: #fde3e0;
    --gantt-bar-border: #f4766d;
}

.gantt-bar.status-in_progress {
    --gantt-bar-bg: #dcecf8;
    --gantt-bar-border: #3f8dcc;
}

.gantt-bar.status-pre_shared {
    --gantt-bar-bg: #ddf1eb;
    --gantt-bar-border: #4bb494;
}

.gantt-bar.status-check_waiting {
    --gantt-bar-bg: #ffe0e9;
    --gantt-bar-border: #ff2364;
}

.gantt-bar.status-review_requested {
    --gantt-bar-bg: #d7eee9;
    --gantt-bar-border: #00856f;
}

.gantt-bar.status-revision_waiting {
    --gantt-bar-bg: #f7ddf4;
    --gantt-bar-border: #d86fcb;
}

.gantt-bar.status-adjusting {
    --gantt-bar-bg: #ffe1d9;
    --gantt-bar-border: #ef2b00;
}

.gantt-bar.status-processed {
    --gantt-bar-bg: #def2ed;
    --gantt-bar-border: #56bba5;
}

.gantt-bar.status-request_waiting {
    --gantt-bar-bg: #f4dfd6;
    --gantt-bar-border: #bf4a1f;
}

.gantt-bar.status-client_waiting {
    --gantt-bar-bg: #ffe4d9;
    --gantt-bar-border: #ff5a1f;
}

.gantt-bar.status-blocked,
.gantt-bar.status-stay {
    --gantt-bar-bg: #e4e4e4;
    --gantt-bar-border: #333333;
}

.gantt-bar.status-completed {
    --gantt-bar-bg: #eef3d4;
    --gantt-bar-border: #99ad22;
}

.gantt-bar.status-unknown {
    --gantt-bar-bg: #e8edf1;
    --gantt-bar-border: #8d99a6;
}

.gantt-bar-label {
    display: block;
    min-width: max-content;
    overflow: visible;
    padding-left: 0;
    pointer-events: none;
    white-space: nowrap;
}

.gantt-bar.continues-before {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.gantt-bar.continues-after {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.file-manager-panel {
    padding: 16px;
}

.file-search-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    margin-bottom: 14px;
}

.file-search-form label {
    display: grid;
    gap: 6px;
}

.file-search-form label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.file-folder-list {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.file-folder-row {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    display: grid;
    gap: 10px;
    grid-template-columns: 28px 116px minmax(0, 1fr) 64px 132px;
    min-height: 50px;
    padding: 9px 12px;
    text-decoration: none;
}

.file-folder-row:last-child {
    border-bottom: 0;
}

.file-folder-row:hover {
    background: #fff7ec;
}

.file-folder-icon {
    color: #68737d;
    font-size: 18px;
    font-weight: 900;
}

.file-folder-row strong {
    color: #00856f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-folder-row span,
.file-folder-row time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.file-folder-upload {
    margin: 0 0 14px;
}

.file-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}

.file-table {
    font-size: 13px;
    min-width: 900px;
}

.file-table th,
.file-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.file-table a {
    color: #00856f;
    font-weight: 800;
    text-decoration: none;
}

.file-table a:hover {
    text-decoration: underline;
}

.goal-form-panel {
    padding: 20px 22px 22px;
}

.goal-info-strip {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
    overflow: hidden;
}

.goal-info-strip div {
    border-right: 1px solid var(--line);
    display: grid;
    gap: 4px;
    padding: 11px 14px;
}

.goal-info-strip div:last-child {
    border-right: 0;
}

.goal-info-strip span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.goal-info-strip strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.goal-list-panel {
    padding: 16px;
}

.goal-work-settings-panel {
    margin-bottom: 16px;
    padding: 16px;
}

.goal-work-settings-form {
    display: grid;
    gap: 14px;
}

.goal-list-panel .panel-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.goal-list-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}

.goal-list-table {
    font-size: 13px;
    min-width: 1220px;
    table-layout: fixed;
}

.goal-list-table th,
.goal-list-table td {
    border-right: 1px solid var(--line);
    padding: 8px 9px;
    vertical-align: middle;
}

.goal-list-table th:last-child,
.goal-list-table td:last-child {
    border-right: 0;
}

.goal-list-table thead th {
    background: #f7f9fb;
    text-align: center;
}

.goal-list-member-head {
    width: 150px;
}

.goal-list-group-head {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.goal-list-table th:not(:first-child),
.goal-list-table td:not(:first-child) {
    text-align: center;
}

.goal-list-table tbody td:first-child {
    font-size: 14px;
    text-align: left;
}

.goal-member-link {
    background: transparent;
    border: 0;
    color: #00856f;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
}

.goal-member-link:hover {
    color: #006e5c;
    text-decoration: underline;
}

.goal-team-summary-row td {
    background: #f8fafc;
    font-weight: 800;
}

.goal-sheet-modal-backdrop {
    align-items: flex-start;
    background: rgba(32, 35, 38, 0.62);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 40px 48px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 130;
}

.goal-sheet-modal-backdrop[hidden] {
    display: none;
}

.goal-sheet-modal {
    background: #ffffff;
    border: 1px solid #c7ccd1;
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    height: calc(100vh - 80px);
    position: relative;
    width: min(1120px, calc(100vw - 96px));
}

.goal-sheet-modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 42px;
    font-weight: 300;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: -54px;
    top: -8px;
    width: 44px;
    z-index: 2;
}

.goal-sheet-modal-content {
    background: #f4f5f6;
    border-radius: inherit;
    height: 100%;
    overflow-y: auto;
    padding: 22px 24px 30px;
}

.goal-sheet-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: -22px -24px 18px;
    padding: 18px 24px 16px;
}

.goal-sheet-header h2 {
    font-size: 20px;
    line-height: 1.4;
    margin: 0;
}

.goal-sheet-section {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
}

.goal-sheet-section h3 {
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 14px;
    padding-bottom: 10px;
}

.goal-score-row {
    align-items: end;
    background: #f8fafc;
    border: 1px solid #d5dde5;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 140px);
    margin-bottom: 12px;
    padding: 12px;
    width: 100%;
}

.goal-score-row label {
    display: grid;
    gap: 6px;
}

.goal-score-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.goal-score-row input,
.goal-score-row select {
    background: #ffffff;
    font-size: 14px;
    min-height: 44px;
    padding: 8px 11px;
}

.goal-bonus-row {
    align-items: start;
    background: #f8fafc;
    border: 1px solid #d5dde5;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 140px minmax(0, 1fr);
    margin-top: 12px;
    padding: 12px;
    width: 100%;
}

.goal-bonus-row > label {
    display: grid;
    gap: 6px;
}

.goal-bonus-row > label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.goal-bonus-row select {
    background: #ffffff;
    font-size: 14px;
    min-height: 44px;
    padding: 8px 11px;
}

.goal-sheet-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goal-copy-card {
    background: #f8fafc;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
}

.goal-copy-card-wide {
    grid-column: 1 / -1;
}

.goal-copy-card-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.goal-copy-card-head strong {
    font-size: 13px;
    font-weight: 900;
}

.goal-copy-card-head .button {
    font-size: 12px;
    min-height: 30px;
    padding: 5px 10px;
}

.goal-copy-card textarea {
    background: #ffffff;
    border-color: #cbd3da;
    color: var(--text);
    font-size: 13px;
    line-height: 1.65;
    min-height: 132px;
    resize: vertical;
}

.goal-manual-form {
    display: grid;
    gap: 14px;
}

.goal-manual-item {
    background: #f8fafc;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 14px;
}

.goal-manual-item legend {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    padding: 0 6px;
}

.goal-manual-head {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: 112px 112px 112px;
}

.goal-manual-head label {
    display: grid;
    gap: 6px;
}

.goal-manual-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.goal-manual-head input,
.goal-manual-head select {
    background: #ffffff;
    font-size: 13px;
    min-height: 36px;
    padding: 7px 9px;
}

.goal-manual-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goal-manual-field {
    background: #ffffff;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 10px;
}

.goal-manual-field textarea {
    background: #ffffff;
    border-color: #cbd3da;
    color: var(--text);
    font-size: 13px;
    line-height: 1.65;
    min-height: 132px;
    resize: vertical;
}

.goal-empty-action {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.goal-bulk-form {
    display: grid;
    gap: 18px;
}

.goal-work-settings {
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    padding: 14px;
}

.goal-work-settings .form-section-title {
    grid-column: 1 / -1;
    margin: 0;
}

.goal-work-settings label {
    align-items: end;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 20px;
}

.goal-work-settings label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    grid-column: 1 / -1;
}

.goal-work-settings input {
    font-size: 13px;
    font-weight: 800;
    min-height: 36px;
    padding: 7px 9px;
}

.goal-work-settings em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.goal-period-line {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 16px;
    padding: 12px 14px;
}

.goal-period-line label {
    align-items: center;
    display: flex;
    gap: 10px;
}

.goal-period-line select {
    min-height: 36px;
    min-width: 150px;
    width: auto;
}

.goal-period-line span {
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.goal-period-chip {
    align-items: center;
    background: #eef2f5;
    border: 1px solid #cbd3da;
    border-radius: 999px;
    color: #68737d;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 6px 12px;
    white-space: nowrap;
}

.goal-period-line small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.goal-entry-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}

.goal-entry-table {
    border-collapse: collapse;
    min-width: 980px;
    table-layout: fixed;
    width: 100%;
}

.goal-entry-table th,
.goal-entry-table td {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    color: var(--text);
    padding: 11px 14px;
    vertical-align: middle;
}

.goal-entry-table th:last-child,
.goal-entry-table td:last-child {
    border-right: 0;
}

.goal-entry-table tbody tr:last-child th,
.goal-entry-table tbody tr:last-child td {
    border-bottom: 0;
}

.goal-entry-table thead th {
    background: #f7f9fb;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    height: 48px;
    text-align: center;
}

.goal-member-head,
.goal-entry-table tbody th {
    width: 230px;
}

.goal-entry-table tbody th {
    background: #fbfcfd;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.goal-entry-table tbody th strong {
    display: inline-block;
}

.goal-leader-badge {
    background: #edf8f3;
    border: 1px solid #bfe4d1;
    border-radius: 999px;
    color: var(--ok);
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    margin-left: 8px;
    padding: 4px 8px;
    vertical-align: middle;
}

.goal-entry-table label {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 88px 160px 22px;
    justify-content: center;
    margin: 0;
}

.goal-entry-table td:first-of-type {
    padding-bottom: 7px;
    padding-top: 7px;
}

.goal-entry-table td:first-of-type label {
    margin-bottom: 7px;
}

.goal-entry-table td:first-of-type label:last-child {
    margin-bottom: 0;
}

.goal-entry-table td:last-child label {
    grid-template-columns: 88px 160px;
}

.goal-entry-table label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.goal-entry-table input {
    background: #f3f6f8;
    border: 1px solid #aeb8c2;
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    min-height: 38px;
    padding: 7px 10px;
    width: 160px;
}

.goal-entry-table input[readonly] {
    background: #eef2f5;
    color: var(--muted);
}

.goal-entry-table em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.goal-team-row th,
.goal-team-row td {
    background: #f8fafc;
}

.goal-form-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    margin: -4px 0 0;
}

.goal-existing-notice {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px;
}

.goal-existing-notice p {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

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

    .task-detail-modal-backdrop {
        padding: 24px 18px;
    }

    .task-detail-modal {
        height: calc(100vh - 48px);
        width: calc(100vw - 36px);
    }

    .task-detail-modal-close {
        background: rgba(32, 35, 38, 0.72);
        border-radius: 999px;
        font-size: 30px;
        height: 36px;
        right: 10px;
        top: 10px;
        width: 36px;
    }

    .task-detail-modal-content {
        padding: 20px 18px 112px;
    }

    .task-detail-modal-content .page-header {
        margin: -20px -18px 16px;
        padding: 18px 62px 16px 18px;
    }

    .sidebar {
        border-bottom: 1px solid var(--line);
        border-right: 0;
    }

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

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

    .dashboard-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .goal-info-strip {
        grid-template-columns: 1fr;
    }

    .goal-info-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .goal-info-strip div:last-child {
        border-bottom: 0;
    }

    .toolbar {
        justify-content: flex-start;
    }

    .goal-empty-action,
    .goal-existing-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .task-detail-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-detail-source-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-detail-meta div:nth-child(2n) {
        border-right: 0;
    }

    .task-detail-source-meta div:nth-child(2n) {
        border-right: 0;
    }

    .parent-task-context dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .parent-task-context dl div:nth-child(2n) {
        border-right: 0;
    }

    .edit-task-context dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .edit-task-context dl div:nth-child(2n) {
        border-right: 0;
    }

    .task-edit-form .field-compact,
    .task-edit-form .field-status,
    .task-edit-form .field-progress,
    .task-edit-form .field-hours,
    .task-edit-form .field-parent,
    .task-edit-form .field-person,
    .task-edit-form .field-date {
        grid-column: span 6;
    }

    .comment-update-form {
        left: 18px;
        right: 18px;
    }
}

@media (max-width: 560px) {
    .main {
        padding: 18px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .dashboard-task-row {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .dashboard-date {
        text-align: left;
    }

    .dashboard-recent-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-status-row {
        grid-template-columns: 104px minmax(0, 1fr) 34px;
    }

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

    .task-form label,
    .task-edit-form .field-compact,
    .task-edit-form .field-medium,
    .task-edit-form .field-status,
    .task-edit-form .field-progress,
    .task-edit-form .field-hours,
    .task-edit-form .field-parent,
    .task-edit-form .field-person,
    .task-edit-form .field-date {
        grid-column: span 1;
    }

    .span-2 {
        grid-column: span 1;
    }

    .task-edit-form .field-title {
        max-width: none;
    }

    .form-actions {
        justify-content: flex-start;
    }

    .parent-task-context dl {
        grid-template-columns: 1fr;
    }

    .parent-task-context dl div {
        border-right: 0;
    }

    .edit-task-context-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .edit-task-context dl {
        grid-template-columns: 1fr;
    }

    .edit-task-context dl div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .edit-task-context dl div:last-child {
        border-bottom: 0;
    }

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

    .filter-actions {
        justify-content: flex-start;
    }

    .task-detail-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-detail-meta {
        grid-template-columns: 1fr;
    }

    .task-detail-source-meta {
        grid-template-columns: 1fr;
    }

    .task-detail-meta div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .task-detail-source-meta div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .task-detail-meta div:last-child {
        border-bottom: 0;
    }

    .task-detail-source-meta div:last-child {
        border-bottom: 0;
    }

    .comment-item {
        grid-template-columns: 42px 1fr;
        gap: 12px;
        padding: 20px 0;
    }

    .comment-update-form {
        grid-template-columns: 1fr;
        max-height: 72vh;
        overflow-y: auto;
    }

    .comment-update-column {
        grid-template-columns: 1fr;
    }

    .comment-avatar {
        font-size: 18px;
        height: 38px;
        width: 38px;
    }

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

    .task-master-create-form {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .task-master-create-form input,
    .task-master-row-form input {
        width: 100%;
    }

    .task-master-row-form {
        align-items: stretch;
        flex-direction: column;
    }
}

.task-master-panel + .task-master-list-panel {
    margin-top: 22px;
}

.task-master-panel .task-master-create-form {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: none;
}

.task-master-panel .task-master-create-form label {
    flex: 0 1 360px;
}

.task-master-panel .task-master-create-form input,
.task-master-list-panel .task-master-row-form input {
    max-width: 360px;
    width: 360px;
}

.task-master-panel .task-master-create-form button,
.task-master-list-panel .task-master-row-form button,
.task-master-list-panel .task-master-delete-form button {
    flex: 0 0 auto;
    width: auto;
}

.task-master-list-panel .task-master-row-form {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

@media (max-width: 560px) {
    .task-master-panel .task-master-create-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .task-master-panel .task-master-create-form input,
    .task-master-list-panel .task-master-row-form input {
        max-width: none;
        width: 100%;
    }

    .task-master-list-panel .task-master-row-form {
        align-items: stretch;
        flex-direction: column;
    }
}
