#task-center {
  min-width: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f7f8fa;
}
.tc-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px;
  color: var(--ink);
}
.tc-heading {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 0;
  height: auto;
  padding: 0;
  margin: 0 0 24px;
  border: 0;
  background: transparent;
}
.tc-heading h1 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.tc-heading > div:last-child { display: flex; gap: 8px; }
.tc-page button, .tc-page select { font-size: 12px; }
.tc-page button { min-height: 34px; border-radius: 8px; }
.tc-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tc-toolbar label { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.tc-toolbar select { width: auto; min-width: 128px; min-height: 34px; border-radius: 8px; }
.tc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.tc-list { display: grid; gap: 10px; }
.tc-card {
  display: grid;
  gap: 11px;
  text-align: left;
  padding: 16px;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e7ed;
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.tc-card:hover { border-color: #bdcddc; }
.tc-card[aria-pressed=true] { border-color: #97bdd8; box-shadow: inset 3px 0 var(--accent), 0 3px 12px #253f5606; }
.tc-card-top, .tc-detail-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #7c8794; }
.tc-card strong { font-size: 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.tc-card small, .tc-meta { color: var(--muted); font-size: 12px; line-height: 1.7; }
.tc-status { display: inline-flex; white-space: nowrap; border-radius: 5px; padding: 3px 7px; font-size: 11px; line-height: 1.4; font-weight: 500; }
.status-pending { background: #edf4fb; color: #37739e; }
.status-active { background: #ebf4f0; color: #4a7c66; }
.status-review { background: #fff3e3; color: #9a6a2f; }
.status-closed { background: #f0f2f4; color: #7c8590; }
.tc-detail { padding: 24px 28px; border: 1px solid #e2e7ed; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px #243b5003; }
.tc-detail header { position: static; display: block; height: auto; min-height: 0; padding: 0; border: 0; background: transparent; }
.tc-detail h2 { margin: 12px 0 20px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.5; }
.tc-people { display: flex; gap: 20px 40px; flex-wrap: wrap; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid #edf0f3; }
.tc-people div { display: grid; gap: 6px; }
.tc-people dt { font-size: 11px; color: var(--muted); }
.tc-people dd { margin: 0; font-size: 13px; }
.tc-detail h3 { margin: 20px 0 8px; font-size: 12px; color: #76828f; font-weight: 500; }
.tc-task-content h3 { margin-top: 0; }
.tc-content { font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.tc-source { display: grid; gap: 6px; border: 1px solid #e7ecf1; border-radius: 9px; padding: 12px 14px; margin-top: 18px; background: #f8fafc; }
.tc-source span, .tc-source small { font-size: 11px; color: var(--muted); }
.tc-source strong { font-size: 12px; font-weight: 500; }
.tc-source p { font-size: 13px; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.tc-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 20px 0; }
.tc-actions:empty { margin: 0; }
.tc-actions button:first-child { color: var(--accent); border-color: #cbdde9; background: #f1f7fb; }
.tc-history { margin-top: 24px; padding-top: 24px; border-top: 1px solid #edf0f3; }
.tc-history h3 { color: var(--ink); font-weight: 600; }
.tc-history article { position: relative; margin-left: 4px; padding: 8px 0 16px 18px; border-left: 1px solid #e4e9ef; font-size: 12px; }
.tc-history article::before { position: absolute; content: ''; left: -4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: #bdc9d5; box-shadow: 0 0 0 3px #fff; }
.tc-history article:last-child { border-left-color: transparent; padding-bottom: 0; }
.tc-history strong { font-weight: 500; }
.tc-history small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.tc-history p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; color: #596574; }
.tc-empty { padding: 60px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.tc-layout.is-empty { grid-template-columns: 1fr; }
.tc-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #dfe5eb;
  border-radius: 16px;
  box-shadow: 0 24px 80px #182c442e;
  color: var(--ink);
  overflow: hidden;
}
.tc-dialog::backdrop { background: #25344855; backdrop-filter: blur(3px); }
.tc-dialog form { display: flex; flex-direction: column; max-height: calc(100dvh - 42px); }
.tc-dialog header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 0;
  padding: 20px 24px 16px;
  border: 0;
  background: #fff;
  flex-shrink: 0;
}
.tc-dialog h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.tc-dialog [data-close] { padding: 0; width: 28px; min-height: 28px; border: 0; background: transparent; font-size: 23px; line-height: 1; color: #8b95a0; }
.tc-form { padding: 0 24px 20px; overflow: auto; min-height: 0; }
.tc-form label { display: grid; gap: 8px; margin: 14px 0 0; font-size: 12px; color: #596574; }
.tc-form input, .tc-form select, .tc-form textarea {
  width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 13px;
  color: var(--ink); background: #fff; border: 1px solid #dce3ea; border-radius: 8px;
  padding: 10px 12px; min-height: 38px;
}
.tc-form textarea { resize: vertical; min-height: 104px; line-height: 1.75; }
.tc-form input:focus, .tc-form select:focus, .tc-form textarea:focus { outline: 2px solid #006bb626; outline-offset: 1px; border-color: #85b2d1; }
.tc-form small { display: block; font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.tc-form:has([name=due]) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.tc-form:has([name=due]) label:has([name=kind]), .tc-form:has([name=due]) label:has([name=title]), .tc-form:has([name=due]) label:has(textarea), .tc-form:has([name=due]) small, .tc-form [role=alert] { grid-column: 1 / -1; }
.tc-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid #edf0f3; background: #fafbfc; flex-shrink: 0; }
.tc-dialog footer button { font-size: 12px; padding: 7px 16px; min-height: 34px; border-radius: 8px; }
.tc-dialog [role=alert] { color: #a43d36; font-size: 12px; line-height: 1.6; margin-bottom: 0; }
.tc-dialog [role=alert]:empty { display: none; }
.tc-dialog-source { padding: 12px 14px; border: 1px solid #e4ebf1; border-radius: 9px; background: #f7f9fc; margin: 4px 0 18px; }
.tc-dialog-source small { margin: 0 0 7px; }
.tc-dialog-source strong { font-size: 13px; font-weight: 600; }
.tc-dialog-source p { margin: 5px 0 0; font-size: 14px; color: #4e6173; line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .tc-page { padding: 20px 16px; }
  .tc-layout { grid-template-columns: 1fr; }
  .tc-list { grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); }
  .tc-heading { gap: 12px; margin-bottom: 18px; }
  .tc-toolbar { flex-wrap: wrap; gap: 12px; }
  .tc-detail { padding: 20px; }
}
@media (max-width: 480px) {
  .tc-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .tc-dialog form { max-height: calc(100dvh - 22px); }
  .tc-dialog header { padding: 18px 18px 14px; }
  .tc-form { padding: 0 18px 18px; }
  .tc-dialog footer { padding: 12px 18px; }
  .tc-form:has([name=due]) { grid-template-columns: 1fr; }
}

.tc-card .tc-card-main{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0}.tc-card-main strong{flex:0 1 auto}.tc-card-main small{font-size:11px;white-space:normal;overflow-wrap:anywhere}.tc-card .tc-card-due{font-size:11px;margin-top:-4px}

.tc-history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.tc-history-heading h3{margin:0}.tc-history-heading button{color:var(--accent);font-size:12px;white-space:nowrap;border:0;background:transparent;box-shadow:none;padding:4px 0}.tc-history-heading button:hover{background:transparent;color:#005a9a;text-decoration:underline;text-underline-offset:3px}

.tc-card .tc-card-main{column-gap:10px}.tc-card .tc-card-due{margin:0;font-size:10px;white-space:nowrap}

.replacement-collaboration-status{padding:8px 18px;margin:0;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}.tc-replacement dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.tc-replacement dl>div{display:grid;gap:4px}.tc-replacement dt,.tc-replacement small{font-size:12px;color:var(--muted)}.tc-replacement dd{margin:0;font-size:13px;overflow-wrap:anywhere}.tc-supply-dialog{width:min(640px,calc(100vw - 32px))}.tc-supply-dialog .tc-form{display:grid;grid-template-columns:1fr}.tc-supply-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.tc-supply-money{display:flex;gap:6px}.tc-supply-money input{min-width:0;flex:1}.tc-supply-money select{width:80px}.tc-recipient h3{font-size:13px;margin:0 0 8px}.tc-recipient p{white-space:pre-wrap;font-size:12px;line-height:1.7;margin:0;color:var(--muted)}.tc-supply-dialog footer>div{display:flex;gap:8px}
@media(max-width:650px){.tc-supply-grid{grid-template-columns:1fr}.tc-supply-dialog footer{flex-wrap:wrap}.tc-replacement dl{grid-template-columns:1fr}}

.tc-card.tc-todo-completed strong{text-decoration:line-through;color:#83909c}.tc-form [hidden]{display:none!important}
.tc-detail-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding:16px 0 0;border-top:1px solid #edf0f3;background:transparent}.tc-detail-footer button{color:#a44545;border-color:#eadcdc;background:#fff}.tc-detail-footer button:hover{background:#fff7f7;border-color:#d7abab}

.tc-stage-note{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.5}

.tc-task-content>[data-edit-content]{font-size:12px;color:var(--accent);margin:0 0 12px;padding:5px 10px}.tc-person-field{display:grid;gap:8px;min-width:0}.tc-person-field>span{font-size:12px;color:var(--muted)}.tc-person-picker{position:relative}.tc-person-picker summary{list-style:none;cursor:pointer;border:1px solid var(--line);padding:12px;border-radius:10px;background:white;font-size:13px}.tc-person-picker summary:after{content:'⌄';float:right}.tc-person-picker>div{margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}.tc-person-picker [data-person-options]{max-height:190px;overflow:auto;margin-top:12px;display:grid;gap:6px}.tc-person-picker [data-person-options] label{display:flex;align-items:center;gap:10px;padding:6px 2px}.tc-person-picker input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--accent)}.tc-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.tc-attachments button{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:12px}.tc-attachments small{display:inline;color:var(--muted);margin:0 0 0 6px}.tc-file-selection{display:grid;gap:8px;grid-column:1/-1}.tc-file-selection>div{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px 12px;background:#f5f7fa;border-radius:8px;min-width:0}.tc-file-selection span{overflow-wrap:anywhere;min-width:0;font-size:12px}.tc-file-selection button{font-size:12px;flex:none}.tc-image-preview{width:min(900px,calc(100vw - 24px));padding:16px}.tc-image-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px}.tc-image-preview h2{font-size:16px;overflow-wrap:anywhere;min-width:0;margin:0}.tc-image-preview img{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto}.tc-history article>p{white-space:pre-wrap;overflow-wrap:anywhere}
.tc-person-field{margin-top:14px;align-self:start}.tc-form label:has(input[name=due]){align-self:start}.tc-person-picker [data-person-options] label{margin:0}.tc-person-picker input[type=checkbox]{padding:0;min-height:0;box-shadow:none}.tc-form input[type=file]::file-selector-button{border:1px solid #dce3ea;background:#f7f9fb;color:#405568;border-radius:6px;padding:5px 10px;margin-right:10px;font:inherit;cursor:pointer}.tc-image-preview>a{display:inline-block;margin-top:12px;color:var(--accent);font-size:13px}.tc-image-preview>p:empty{display:none}

@media(min-width:761px){#task-center{height:100%;min-height:0;overflow:hidden}.tc-page{height:100%;min-height:0;display:flex;flex-direction:column;box-sizing:border-box}.tc-heading,.tc-toolbar,.tc-page>[data-message]{flex-shrink:0}.tc-layout{flex:1;min-height:0;overflow:hidden;align-items:stretch}.tc-list,.tc-layout>[data-detail]{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.tc-layout>[data-detail]{padding-right:4px}.tc-detail{min-height:100%;box-sizing:border-box}.tc-list{padding-right:6px}}.tc-polish-field{position:relative}.tc-polish-field textarea{padding-bottom:36px!important}.tc-polish-field>.os-text-link{position:absolute;right:14px;bottom:12px}.os-text-link{border:0!important;background:transparent!important;color:#006bb6!important;padding:3px 0!important;font-size:12px!important;box-shadow:none!important;cursor:pointer}.os-text-link:hover{text-decoration:underline}
@media(min-width:761px){.tc-list{grid-auto-rows:max-content;align-content:start}.tc-card{min-height:max-content}}
