/* Existing green/neutral palette; attention colors keep a single meaning. */
.feedback-brand{padding:0;background:transparent;color:var(--text);font:inherit;display:flex;align-items:center;gap:12px;text-align:left}
.feedback-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}
.feedback-menu button{border:1px solid var(--border);background:var(--card);color:var(--text);padding:24px;text-align:left;border-radius:12px;min-height:100px}
.feedback-menu strong{display:block;font-size:18px;margin-bottom:8px}.feedback-menu span{color:var(--muted);font-size:14px;line-height:1.6}
.feedback-menu button:hover{border-color:var(--accent)}
.feedback-notice{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border);font-size:14px;line-height:1.65}
.feedback-notice button{flex-shrink:0}.feedback-memo label{display:block;font-size:14px;margin:16px 0 8px}
.feedback-memo textarea{width:100%;box-sizing:border-box;resize:vertical}.feedback-memo-actions{display:flex;align-items:center;gap:16px;margin-top:16px;flex-wrap:wrap}
.feedback-memo-actions span{font-size:14px;color:var(--muted)}
.ux-queue-tools{margin:16px 0}.ux-queue-tools>.ux-actions{margin-bottom:12px}
.bulk-bar{gap:12px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:10px;flex-wrap:wrap}
.feedback-select{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;min-height:44px;flex:1}
.feedback-select input{flex-shrink:0}.bulk-bar button:disabled{opacity:.45;cursor:default}
.failure-detail{background:var(--attention-surface,#fff1ef)!important;color:var(--text)!important;border-left:3px solid var(--red);padding:12px;line-height:1.7;overflow-wrap:anywhere}
.failure-detail *{color:inherit!important}.failure-detail-label{font-weight:600}
html[data-theme="dark"] .failure-detail{--attention-surface:#3a2726;color:#fff2ee!important}
.failure-banner-btn{background:var(--action)!important;color:var(--on-action)!important}
.schedule-actions button[onclick^="postNow"]{background:var(--card)!important;color:var(--text)!important;border:1px solid var(--border)}
.feedback-monthly{margin-bottom:24px}.feedback-report-picker{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.feedback-table-wrap{max-width:100%;overflow-x:auto;margin:12px 0 20px}.feedback-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.feedback-table caption{text-align:left;font-weight:600;padding:8px 0}.feedback-table th,.feedback-table td{border:1px solid var(--border);padding:10px!important;text-align:right}
.feedback-table th{background:var(--bg);font-weight:600;line-height:1.5}.feedback-table th:first-child,.feedback-table td:first-child{text-align:left}
.feedback-table td{white-space:nowrap}.feedback-table th{white-space:nowrap}.feedback-metric-note{line-height:1.7}
.feedback-next-action{padding:16px 0;border-top:1px solid var(--border);margin-top:16px;font-size:14px;line-height:1.7}.feedback-next-action p{margin:8px 0 14px}.feedback-next-action button{margin:0 8px 8px 0}
#ap-report-extra p,#ap-report-extra summary,#panel-myinfo .ux-fold,.intake-field{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#panel-myinfo .ux-fold{line-height:1.8!important;-webkit-line-clamp:2;max-height:none}
#lib-paste{margin-bottom:16px}#lib-manual-btn{margin-top:0}.intake-field textarea{line-height:1.8;word-break:normal;overflow-wrap:anywhere}
.intake-field .ux-more,.intake-field+.ux-more{display:block;margin-top:8px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:640px){.feedback-menu{gap:10px}.feedback-menu button{padding:18px 14px;min-height:110px}.feedback-menu strong{font-size:16px}.feedback-menu span{font-size:13px}.feedback-notice{align-items:center;padding:10px 0}.feedback-notice>span{flex:1 1 auto;min-width:0}.feedback-notice button{white-space:nowrap}.feedback-select{flex-basis:100%}.feedback-table{font-size:12px}.feedback-table th,.feedback-table td{padding:8px!important}.feedback-brand{font-size:17px}.feedback-memo-actions{align-items:flex-start;flex-direction:column}}

.feedback-refresh{color:var(--muted);font-size:13px;padding:8px;flex-shrink:0}.feedback-row-extra{font-size:13px;color:var(--muted)}.feedback-row-extra summary{cursor:pointer;padding:8px}.feedback-row-extra button{margin-top:8px;white-space:normal}

/* Home remains reachable from the fixed bottom navigation / desktop sidebar. */
.header-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
#feedback-materials-title{font-size:var(--font-section);margin:1.5rem 0 1rem}
#intake-update-method h3{font-size:1rem;margin:0 0 .5rem}
#intake-writing-style .intake-help{margin:.5rem 0}
@media(max-width:760px){.header-nav .tab{font-size:.8125rem!important;padding-inline:.1rem}.header-nav .tab span{white-space:nowrap}}

/* 11/4 review of the 11/2 feedback (Claude Code). */
/* Failure notice: one line on every tab, so Home keeps its four entrances on a phone's first screen (11/14); hidden while the failed list is open. */
#failure-banner .failure-banner-short,#failure-banner .feedback-refresh[hidden]{display:none}
body #failure-banner{padding:4px 8px 4px 16px;gap:8px;align-items:center;flex-wrap:nowrap;margin-bottom:16px}
body #failure-banner .failure-banner-icon,body #failure-banner .failure-banner-sub,body #failure-banner .failure-banner-long,body #failure-banner .failure-banner-btn:disabled{display:none}
body #failure-banner .failure-banner-text{min-width:0}
body #failure-banner .failure-banner-title{margin:0;font-size:14px;line-height:1.5}
body #failure-banner .failure-banner-btn{background:transparent!important;color:var(--text)!important;text-decoration:underline;text-underline-offset:4px;padding:8px;min-height:44px;font-size:14px!important;white-space:nowrap}
body #failure-banner .failure-banner-short{display:inline}
body[data-view="schedule"][data-queue-filter="failed"] #failure-banner{display:none!important}
/* Queue filters: one row, one look. Attention tabs carry a count badge. */
#panel-schedule .ux-queue-tabs{display:flex;overflow-x:auto;scrollbar-width:none}
#panel-schedule .ux-queue-tabs::-webkit-scrollbar{display:none}
#panel-schedule .ux-queue-tabs .filter-btn{flex:1 0 auto;padding-inline:.6rem;white-space:nowrap}
#panel-schedule .ux-queue-tabs .filter-btn[hidden]{display:none!important}
.ux-queue-alert [data-queue-count]{display:inline-flex;align-items:center;justify-content:center;min-width:1.5em;height:1.5em;padding:0 .4em;border-radius:999px;background:var(--red);color:var(--card);font-weight:600}
@media(max-width:600px){#panel-schedule .ux-queue-tabs .filter-btn{padding-inline:.35rem}}
/* The calendar and bulk edit act on scheduled posts, not on failures. */
body[data-queue-filter="failed"] #calendar-toggle-btn,body[data-queue-filter="failed"] #bulk-edit-btn{display:none}
/* Failure reason reads at the same size as the post. */
.failure-detail{font-size:14px!important}
.failure-detail-at{margin-top:4px;font-size:13px}
.feedback-row-extra summary{white-space:nowrap}
/* Monthly report: one card; the month's numbers, then the next step. A saved report's own
   policy and next-step text give way to the live review below them. */
.feedback-monthly #monthly-review{border-top:1px solid var(--border);padding-top:20px;margin:24px 0 0}
.feedback-monthly .mp-title h4{font-size:1.125rem;margin:4px 0 12px}
.mp-review-next{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.feedback-monthly:has(#monthly-review:not([hidden]):not(:empty)) .feedback-report-policy,.feedback-monthly:has(#monthly-review:not([hidden]):not(:empty)) .feedback-next-action{display:none}
/* The month picker switches what is shown, like the 予約投稿 filters, so it uses the same tab look
   (a dark fill would read as a second main button next to 投稿を作る). */
.feedback-report-picker{gap:0;border-bottom:1px solid var(--border)}
#ap-reports button{background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;color:var(--muted)!important;padding:.6rem 1.1rem}
#ap-reports [aria-pressed="true"]{color:var(--green)!important;border-bottom-color:var(--green)!important;font-weight:600}
.feedback-analysis-more{margin-top:24px}
/* Keep a short phrase on one line so a word or a sentence's last kana never wraps alone. */
.ux-phrase{display:inline-block}

/* 11/6 (docs/UI-RULES-20261106.md): three kinds of buttons, one frame deep. */
/* Text links: one look wherever they appear (home, ネタ帳, 投稿作成, windows). */
.ux-text-button,.intake-panel .intake-text-button,.intake-text-button,.pf-link,.mp-link{border:0;background:transparent;color:var(--text);text-decoration:underline;text-underline-offset:4px;font-weight:400;cursor:pointer}
/* Undoable-only actions: a secondary button with red text, not a red frame. */
.btn-danger,.ux-danger-text{color:var(--red)!important;background:var(--card)!important;border:1px solid var(--border)!important}
/* Folds share one quiet look. */
.feedback-row-extra summary,.lib-item-edit summary,.ux-fold-plain summary{cursor:pointer;color:var(--text);font-size:1rem;min-height:44px;display:list-item;padding:10px 0}
.feedback-row-extra[open]>summary{margin-bottom:4px}
.feedback-row-extra>button{display:block;margin:8px 0 0}
/* On phones the bell sits at the left, so its panel opens rightward and stays on screen (11/15). */
@media(max-width:640px){#notif-panel{left:0;right:auto;width:min(320px,calc(100vw - 32px))}}
/* In the reservation list the fold takes the rest of the row, so 作り直す・予約を取り消す keep one line on phones. */
#schedule-list .schedule-actions>.feedback-row-extra{grid-column:2/-1;min-width:0}
#schedule-list .feedback-row-extra>button.btn-sm{display:inline-block;margin:8px 8px 0 0;white-space:nowrap}
.ux-fold-plain{margin-top:16px;border-top:1px solid var(--border);padding-top:4px}
.ux-fold-plain .ux-help{margin:4px 0 12px}
/* Inside a card: no second frame. Rows and notes are divided by lines and space. */
.feedback-analysis-details .card{border:0;border-top:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;padding:20px 0 4px;margin:0}
.feedback-analysis-details .ux-learning{border:0;padding-top:0;margin-bottom:.5rem}
.feedback-monthly .mp-observing{background:transparent;padding:0;border:0;margin:8px 0 16px}
#ap-library-card .ux-material-notice{background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:0 0 16px}
.ux-material-notice button{margin-top:8px}
.lib-item{border-top:1px solid var(--border);padding:14px 0 4px}
.lib-item-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:6px;font-size:13px;color:var(--muted)}
.lib-item-edit{margin-top:4px}
.lib-item-edit .ux-actions{display:flex;gap:12px;flex-wrap:wrap}
.bulk-bar{border:0;border-radius:0;padding:4px 0;border-bottom:1px solid var(--border);background:transparent!important}
/* お仕事のこと, once registered: 変更 › sits on the title line (as 作り方 does on 投稿作成);
   文章から更新 › and 質問に答えて更新 › share one line of links below the summary. */
#ux-interview-card{position:relative}
.intake-panel #intake-edit-business{position:absolute;top:1.25rem;right:1.5rem;margin:0;padding:.25rem 0;min-height:44px}
#intake-update-method:not([hidden]),#intake-update-method .intake-entry-actions{display:contents}
.intake-panel #intake-update-method .intake-text-button{display:inline-flex;align-items:center;width:auto;margin:4px 20px 0 0;padding:.5rem 0}
/* 作り方 is the only box on the start screen; the material note is a plain line above it. */
.pf-note{background:transparent;padding:0}
.pf-more{justify-self:start;margin-top:4px}
/* Windows: one way out, written as a word. */
.intake-dismiss-text{margin-left:auto;flex:none;min-height:48px}
