.op-workspace, .op-dialog {
  --op-ink: #202333;
  --op-muted: #647084;
  --op-border: #dddfe9;
  --op-violet: #664bb1;
  color: var(--op-ink);
  min-width: 0;
}
.op-workspace h1, .op-workspace h2, .op-workspace h3, .op-workspace p,
.op-dialog h2, .op-dialog p { margin: 0; overflow-wrap: anywhere; }
.op-workspace h1 { font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.3; }
.op-workspace h2, .op-dialog h2 { font-size: 1.13rem; line-height: 1.45; font-weight: 670; }
.op-workspace .op-sub, .op-dialog .op-sub { font-size: .9rem; color: var(--op-muted); line-height: 1.7; }
.op-workspace .op-sub, .op-help, .op-notes, .op-preview { overflow-wrap: anywhere; }
.op-pagehead, .op-headline, .op-ref, .op-dhead, .op-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.op-pagehead { margin-bottom: 25px; }
.op-pagehead p, .op-detailhead .op-headline p { margin-top: 5px; }
.op-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.op-workspace .op-btn, .op-dialog .op-btn {
  appearance: none; display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  min-height: 36px; padding: 7px 12px; border: 1px solid var(--op-border);
  border-radius: 8px; background: white; font: inherit; font-size: .88rem; font-weight: 550;
  color: var(--op-ink); line-height: 1.45; text-decoration: none; cursor: pointer;
}
.op-workspace .op-btn:hover, .op-dialog .op-btn:hover { border-color: #b2a2d9; }
.op-workspace .op-btn:disabled, .op-dialog .op-btn:disabled { opacity: .6; cursor: default; }
.op-workspace .op-primary, .op-dialog .op-primary { color: #fff; background: var(--op-violet); border-color: var(--op-violet); }
.op-workspace .op-text-danger, .op-dialog .op-text-danger { color: #a44857; }
.op-dialog .op-danger { color: #fff; background: #a33f51; border-color: #a33f51; }
.op-workspace :is(a,button,select):focus-visible, .op-dialog :is(input,textarea,select,button):focus-visible {
  outline: 3px solid #ad95e3; outline-offset: 2px;
}
.op-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.op-grid .op-project-card, .op-empty, .op-panel, .op-detailhead {
  padding: 20px; border: 1px solid var(--op-border); border-radius: 14px; background: #fff;
}
.op-grid .op-project-card { display: grid; gap: 12px; color: var(--op-ink); text-decoration: none; align-content: start; }
.op-project-card:hover { box-shadow: 0 4px 14px #3e315312; border-color: #baabde; }
.op-card-top { justify-content: flex-start; gap: 10px; }
.op-folder { width: 30px; height: 24px; border-radius: 4px; background: #d2c6ed; border: 1px solid #a08acb; position: relative; margin: 4px 0; }
.op-folder::before { content: ""; position: absolute; width: 14px; height: 4px; left: -1px; bottom: 100%; border: 1px solid #a08acb; border-bottom: none; border-radius: 3px 4px 0 0; background: #d2c6ed; }
.op-account { font-size: .89rem; color: var(--op-muted); overflow-wrap:anywhere; }
.op-preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--op-muted); font-size: .9rem; line-height: 1.6; }
.op-progress { display: block; width: 100%; height: 5px; border: 0; background: #eae6f3; border-radius: 6px; }
.op-progress::-webkit-progress-bar { background: #eae6f3; border-radius: 6px; }
.op-progress::-webkit-progress-value { background: #9882cb; border-radius: 6px; }
.op-progress::-moz-progress-bar { background: #9882cb; border-radius: 6px; }
.op-detailhead { display: grid; gap: 15px; }
.op-back, .op-link { color: var(--op-violet); font-size: .92rem; font-weight: 570; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
.op-brief, .op-notes, .op-help { color: #455064; font-size: .97rem; line-height: 1.7; white-space: pre-wrap; }
.op-section { display: grid; gap: 13px; margin-top: 20px; }
.op-kanban { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: start; }
.op-column { background: #f0f1f6; border: 1px solid #e2e3ea; border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.op-column h3 { display: flex; align-items: center; gap: 7px; font-size: .95rem; }
.op-column h3 small { margin-left:auto; font-size: .85rem; color: #677184; font-weight: 550; }
.op-dot { height: 8px; width: 8px; border-radius: 50%; background: #9aa1ae; }
.op-doing .op-dot { background: #9172c5; }
.op-done .op-dot { background: #4e9a80; }
.op-column-empty { padding: 12px 0; font-size: .88rem; color: var(--op-muted); }
.op-task { background: #fff; border: 1px solid #e0e1e8; border-radius: 9px; padding: 11px; display: grid; gap: 8px; min-width: 0; }
.op-workspace .op-task-title { min-height: 0; padding: 0; text-align:left; justify-content:flex-start; border: 0; overflow-wrap: anywhere; font-size: .96rem; }
.op-workspace .op-task-title:hover { color: var(--op-violet); }
.op-dialog select, .op-workspace .op-state {
  appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23647084' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m5 6.5 3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
}
.op-workspace .op-state { width:fit-content; max-width:100%; color:#435064; background-color:#fff; border:1px solid var(--op-border); border-radius:6px; padding-block:3px; padding-left:7px; font: inherit; font-size:.86rem; }
.op-ref { padding-block:10px; border-top:1px solid var(--op-border); }
.op-ref > div { min-width:0; overflow-wrap:anywhere; }
.op-dialog { box-sizing:border-box; width:min(600px,calc(100% - 24px)); max-height:90dvh; max-width:none; margin:auto; padding:0; border:1px solid var(--op-border); border-radius:15px; box-shadow:0 15px 60px #2023344a; background:#fff; font:400 1rem/1.5 "Inter","Microsoft YaHei",sans-serif; }
.op-dialog::backdrop { background:rgb(24 27 44 / 43%); }
.op-dhead,.op-dfoot { padding:14px 20px; }
.op-dhead { border-bottom:1px solid var(--op-border); }
.op-dialog .op-dismiss { width:34px; height:34px; min-height:34px; border:0; font-size:1.4rem; padding:0; }
.op-dfoot { justify-content:flex-end; position:sticky; bottom:0; background:white; border-top:1px solid var(--op-border); }
.op-fields { padding:17px 20px; display:grid; gap:13px; }
.op-field { display:grid; gap:5px; color:#435064; font-size:.89rem; }
.op-field :is(input,textarea,select) { box-sizing:border-box; width:100%; min-width:0; min-height:38px; border:1px solid var(--op-border); border-radius:7px; background-color:white; padding:7px 10px; color:var(--op-ink); font:inherit; }
.op-field select { padding-right:30px; }
.op-field textarea { resize:vertical; }
.op-dialog .op-error,.op-message { font-size:.9rem; line-height:1.6; border-radius:6px; padding:8px 12px; }
.op-dialog .op-error { margin:0 20px 15px; background:#fff0f2; color:#a23a4c; }
.op-workspace .op-message { background:#eeeaf8; color:#584187; margin-bottom:13px; }
.op-workspace [hidden],.op-dialog [hidden] { display:none!important; }
.op-suggestion { display:flex; align-items:flex-start; gap:9px; padding:11px; background:#f7f6fb; border-radius:8px; }
.op-suggestion input { accent-color:var(--op-violet); margin-top:5px; }
.op-suggestion span span { display:block; }
.op-suggestion strong { font-size:.94rem; }
@media (max-width:900px) {
  .op-headline { align-items:flex-start; flex-wrap:wrap; }
}
@media (max-width:670px) {
  .op-pagehead { align-items:flex-start; gap:8px; flex-wrap:wrap; }
  .op-kanban { grid-template-columns:1fr; }
  .op-task-title,.op-field :is(input,textarea,select) { font-size:1rem; }
  .op-detailhead,.op-panel,.op-grid .op-project-card { padding:15px; }
  .op-dhead,.op-dfoot { padding-inline:14px; }
  .op-fields { padding:14px; }
}
