/* Briefs (briefs.js) and one brief drawn (brief-view.js), the same rows as the Home card. */
.briefs-page,.brief-editor{display:grid;gap:16px;min-width:0}
/* Each template's own look (the Founder, 8 October 2026, 22:55: "each with its own logic and look"). */
.look-since{--look:var(--purple);--look-soft:var(--soft)}
.look-morning{--look:#b45309;--look-soft:#fdf3e2}
.look-evening{--look:#be3a62;--look-soft:#fbe9ef}
.look-night{--look:#3f3c9e;--look-soft:#e9e8f8}
.look-budget{--look:var(--green);--look-soft:#e5f4ec}
.look-plain{--look:var(--purple);--look-soft:var(--soft)}
[data-theme=dark] .look-morning{--look:#f0b45c;--look-soft:rgba(240,180,92,.14)}
[data-theme=dark] .look-evening{--look:#f08aa8;--look-soft:rgba(240,138,168,.14)}
[data-theme=dark] .look-night{--look:#a9a6f5;--look-soft:rgba(169,166,245,.14)}
[data-theme=dark] .look-budget{--look:#6fd3a0;--look-soft:rgba(111,211,160,.14)}
.brief-look{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--look-soft);color:var(--look)}
.brief-look svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* My briefs and Templates: each row is one link over its whole width. */
.brief-section{display:grid;gap:12px;min-width:0}
.brief-section .card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.brief-section .card-head .btn{min-height:44px}
.brief-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.brief-list>li+li{border-top:1px solid var(--line)}
.brief-line{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 8px;margin:0 -8px;border-radius:12px;color:inherit;text-decoration:none;min-width:0;cursor:pointer}
.brief-line:hover{background:var(--soft)}
.brief-line:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.brief-line-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.brief-line-text strong{font-weight:700;overflow-wrap:anywhere}
.brief-line-text small{color:var(--muted);overflow-wrap:anywhere}
.brief-line-go{flex:0 0 20px;width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* One brief open: what it is, its one button, then the brief in its template's colour. */
.brief-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.brief-bar .meta{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}
.brief-bar .btn{min-height:44px}
.brief-out .brief .brief-mark{background:var(--look-soft);color:var(--look)}
.brief-out .card.brief{border-top:3px solid var(--look)}
/* Customize: the parts, each a switch, moved up or down; when it comes; Save and Home. */
.brief-head-card{display:grid;gap:4px}
.brief-head-line{display:flex;align-items:center;gap:12px;min-width:0}
.brief-head-line h2{margin:0;font-size:1.1rem;min-width:0;overflow-wrap:anywhere}
.brief-parts{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.brief-part{display:flex;align-items:center;gap:8px;padding:4px 4px 4px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);min-width:0}
.brief-part.is-on{border-color:var(--purple)}
.brief-part:not(.is-on) .brief-part-toggle span{color:var(--muted)}
.brief-part-toggle{flex:1 1 auto;display:flex!important;align-items:center;gap:12px;min-height:44px;min-width:0;cursor:pointer;font-weight:600}
.brief-part-toggle span{overflow-wrap:anywhere;min-width:0}
.brief-switch{appearance:none;-webkit-appearance:none;flex:0 0 40px;width:40px;height:24px;margin:0;border-radius:999px;background:var(--line);position:relative;cursor:pointer;transition:background .15s}
.brief-switch::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
.brief-switch:checked{background:var(--purple)}
.brief-switch:checked::after{transform:translateX(16px)}
.brief-switch:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.brief-part-move{display:flex;flex:0 0 auto}
.brief-part-move svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.brief-part[draggable=true]{cursor:grab}
.brief-save-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.brief-save-bar .btn{min-height:44px}
.brief-on-home{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--green)}
.brief-on-home svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.brief-delete-line{display:flex}
.brief-delete-line .btn{min-height:44px}
.brief-said{margin:0 0 4px;padding:0 10px;font-weight:600}
.brief{display:flex;flex-direction:column;gap:12px;--brief-row:#f7f7fa}
[data-theme=dark] .brief{--brief-row:var(--soft)}
.brief-heading{display:flex;align-items:center;gap:10px;min-width:0}.brief-heading-text{min-width:0;flex:1 1 auto}
.brief-heading h2{margin:0;font-size:1.05rem}
.brief-heading small{display:block;color:var(--muted);overflow-wrap:anywhere}
.brief-written{margin:0 0 12px}
.brief-fieldset{border:0;padding:0;margin:14px 0 0;min-width:0}
.brief-fieldset legend{font-weight:600;font-size:.875rem;margin-bottom:6px;padding:0}
.brief-checks{display:flex;flex-wrap:wrap;gap:8px}
.brief-check{display:inline-flex!important;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-weight:500;min-height:44px;max-width:100%}
.brief-check span{overflow-wrap:anywhere}
.brief-schedule{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.brief-schedule .input,.brief-editor .field .input{max-width:none;width:100%}
.brief-editor .field{margin-top:12px}
.brief-error{color:var(--red,#b42318);margin:0}
.brief-error:empty,.brief-said-status:empty{display:none}
.brief-said-status{margin:0}
/* Every other brief on Home after the first (morning-brief.js), parted by a hairline. */
.home-more-briefs{display:flex;flex-direction:column;gap:12px;min-width:0}
.home-briefs-card .home-more-briefs>.card{margin:0;padding:12px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
@media (max-width:420px){.card.brief,.brief-editor .card,.brief-section.card{padding:16px}.brief-bar .btn{width:100%;justify-content:center}}
