.cw { --cw-line:#e4dfd2; line-height:1.65; user-select:text; -webkit-user-select:text; }
.cw h2 { font-size:24px; font-weight:750; letter-spacing:.02em; }
.cw h3 { font-size:18px; margin:0 0 10px; }
.cw p { margin:6px 0 12px; overflow-wrap:anywhere; }
.cw small,.cw .cw-muted { color:var(--sub); font-size:12px; }
.cw .cw-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0; }
.cw button { min-height:44px; padding:9px 14px; border:1px solid var(--cw-line); border-radius:12px; background:#fffcf6; color:var(--text); font:inherit; font-size:14px; cursor:pointer; }
.cw button:focus-visible,.cw input:focus-visible,.cw textarea:focus-visible,.cw select:focus-visible { outline:3px solid #bbd2aa; outline-offset:2px; }
.cw button:disabled { opacity:.55; cursor:wait; }
.cw button.cw-primary { background:var(--ink); color:#fff; border-color:var(--ink); }
.cw button.cw-link { padding:4px 2px; border:0; background:transparent; color:var(--ink-dark); text-align:left; }
.cw .cw-card { background:var(--card); border:1px solid var(--cw-line); border-radius:18px; padding:18px; margin:12px 0; box-shadow:var(--shadow); overflow-wrap:anywhere; }
.cw .cw-guide { background:#eff3e8; border-color:#d5dfc9; }
.cw .cw-warning { background:#fff4df; border-color:#ecd9ae; }
.cw .cw-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 4px; }
.cw .cw-toolbar { display:flex; gap:8px; margin:14px 0; }
.cw .cw-toolbar input { flex:1; width:0; }
.cw .cw-tabs { display:flex; border-bottom:1px solid var(--cw-line); gap:14px; margin:18px 0; }
.cw .cw-tabs button { border:0; background:transparent; border-radius:0; padding:8px 0; font-weight:600; color:var(--sub); }
.cw .cw-tabs button[aria-selected="true"] { color:var(--ink-dark); border-bottom:3px solid var(--ink); }
.cw .cw-name { font-size:18px; font-weight:700; color:var(--text); }
.cw .cw-meta span { white-space:nowrap; }
.cw .cw-chip { display:inline-block; padding:2px 8px; border-radius:8px; background:#eef0e7; color:#627054; font-size:12px; margin:0 6px 6px 0; }
.cw .cw-empty { text-align:center; padding:26px 14px; }
.cw .cw-empty p { text-align:left; }
.cw label { display:block; margin:14px 0 6px; font-size:14px; font-weight:600; }
.cw input,.cw textarea,.cw select { width:100%; font:inherit; font-size:16px; padding:11px; border:1px solid #d8d4c7; border-radius:10px; background:#fffefa; color:var(--text); box-sizing:border-box; }
.cw textarea { min-height:92px; resize:vertical; }
.cw .cw-toolbar select { width:auto; max-width:115px; }
.cw blockquote { margin:8px 0; padding:8px 12px; border-left:3px solid #c9d5ba; background:#f2f2ec; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
.cw details { margin:12px 0; }
.cw summary { cursor:pointer; color:var(--ink-dark); min-height:36px; }
.cw .cw-timeline { border-left:2px solid #d8decd; padding-left:15px; margin-left:4px; }
.cw .cw-alert { color:#983f2c; background:#fff0e9; padding:12px; border-radius:10px; margin:12px 0; }
.cw .cw-success { background:#eaf2e2; padding:10px; border-radius:10px; }
.cw .cw-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cw .cw-pair .cw-card { padding:12px; min-width:0; }
.cw .cw-progress { width:100%; height:6px; accent-color:var(--ink); }
.cw .cw-num { font-size:26px; color:var(--ink-dark); font-weight:700; }
.cw .cw-statement { margin:12px 0; white-space:pre-wrap; }
.cw .cw-table-wrap { overflow-x:auto; margin:12px 0; }
.cw .cw-table { width:100%; border-collapse:collapse; font-size:13px; }
.cw .cw-table th,.cw .cw-table td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--cw-line); overflow-wrap:anywhere; }
.cw .cw-table tr.cw-warning td { background:#fff4df; }
.cw .cw-danger-zone { margin-top:28px; }
.cw button.cw-danger { background:#983f2c; border-color:#983f2c; color:#fff; }
.cw [hidden] { display:none!important; }
.large-text-mode .cw { font-size:18px; }
.large-text-mode .cw small,.large-text-mode .cw .cw-muted { font-size:14px; }
.large-text-mode .cw button,.large-text-mode .cw label { font-size:16px; }
.large-text-mode .cw h3 { font-size:20px; }
@media(max-width:350px) { .cw .cw-pair { grid-template-columns:1fr; } .cw .cw-card { padding:14px; } .cw .cw-head { flex-wrap:wrap; } }
