/* Brclio Design System app template and components 14 / 16 / 18 / 27.
   © 2026 Brclio · CC BY-NC-SA 4.0 */
:root { --blue: #2b7fd8; --blue-deep: #1e5ba8; --yellow: #f4d758; --red: #e84a5f; --cream: #fefcf6; --cream-dark: #faf6eb; --ink: #1a1a2e; --ink-light: #4a4a5a; --ink-faint: #706f77; --line: #deddd5; --serif: "Noto Serif SC", "Songti SC", "SimSun", serif; --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 14px/1.8 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); }
a { color: inherit; text-underline-offset: 5px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button, input, select, textarea { max-width: 100%; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 200; padding: 12px 20px; background: var(--yellow); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--cream); }
.app-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand img { border: 1px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--blue); }
.brand-copy { display: grid; }
.brand-copy strong { font: 900 15px/1.5 var(--serif); }
.brand-copy small { font: 600 8px/1.8 Georgia, serif; letter-spacing: .14em; color: var(--ink-faint); }
.app-navigation { display: flex; gap: 23px; }
.app-navigation a { display: grid; place-items: center; min-height: 44px; font-size: 12px; white-space: nowrap; text-decoration: none; position: relative; }
.app-navigation a::after { position: absolute; content: ""; left: 0; right: 0; bottom: 5px; height: 4px; background: var(--yellow); opacity: 0; }
.app-navigation a:hover::after, .app-navigation [aria-current="page"]::after { opacity: 1; }
.app-navigation [aria-current="page"] { font-weight: 700; }
.header-admin { font-size: 12px; white-space: nowrap; text-decoration: none; }
.header-admin:hover { text-decoration: underline; }
.board-main { padding-block: clamp(28px, 4vw, 48px) 50px; }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: .14em; font-weight: 600; color: var(--blue-deep); margin-bottom: 8px; }
.board-heading h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.5; }
.board-heading p { color: var(--ink-light); margin-top: 6px; font-size: 13px; }
.account-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; min-width: 0; }
#feedback-account-label { max-width: 230px; font-size: 12px; color: var(--ink-faint); overflow-wrap: anywhere; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 41px; border: 1px solid transparent; border-radius: 5px; padding: 8px 15px; font-size: 12px; font-weight: 600; text-decoration: none; }
.button-primary { background: var(--blue-deep); color: var(--cream); }
.button-primary:hover:not(:disabled) { background: #184e90; }
.button-secondary { border-color: var(--line); background: var(--cream); color: var(--ink); }
.button-secondary:hover:not(:disabled) { background: #f3eddd; }
.text-button { border: 0; background: transparent; color: var(--blue-deep); padding: 7px 4px; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.text-button:hover:not(:disabled) { background: #f4eed9; }
.board-note { display: flex; gap: 12px; padding: 14px 18px; margin-bottom: 24px; border-radius: 5px; background: #f5edcf; color: #595039; font-size: 12px; }
.board-note > span { font-size: 18px; }
.board-note p span { display: block; }
.notice { margin-bottom: 20px; padding: 12px 16px; border-radius: 5px; background: #edf4fb; color: var(--blue-deep); }
.notice[data-tone="error"], .status-text[data-tone="error"] { color: #ae3144; }
.board-filters { margin-bottom: 25px; }
.status-filters { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.status-filters button { position: relative; display: inline-flex; gap: 8px; align-items: center; padding: 12px 17px; border: 0; color: var(--ink-light); background: transparent; font-size: 13px; white-space: nowrap; }
.status-filters button[aria-pressed="true"] { color: var(--blue-deep); font-weight: 600; box-shadow: inset 0 -3px var(--blue); }
.status-filters button:hover { background: #f4efdf; }
.status-filters span { padding-inline: 5px; color: var(--ink-faint); font-size: 11px; }
.search-form { display: grid; grid-template-columns: minmax(100px, 1fr) 170px auto; gap: 10px; margin-top: 17px; }
input, select, textarea { min-width: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--cream); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { width: 100%; resize: vertical; min-height: 114px; line-height: 1.85; }
textarea[readonly] { background: #f3eddd; }
.board-workspace { display: grid; grid-template-columns: minmax(270px, .85fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 46px); align-items: start; }
.issue-index, .issue-pane { min-width: 0; }
.list-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-heading h2, .section-heading h3 { font-size: 17px; }
.status-text { font-size: 12px; color: var(--ink-faint); line-height: 1.9; overflow-wrap: anywhere; min-height: 1em; }
#feedback-list-status { margin: 8px 0 12px; }
.issue-list { max-height: 750px; overflow-y: auto; padding-right: 5px; }
.feedback-issue-link { display: grid; gap: 8px; padding: 18px 14px; border-bottom: 1px solid var(--line); text-decoration: none; overflow-wrap: anywhere; }
.feedback-issue-link:hover { background: #f6f0e3; }
.feedback-issue-link[aria-current="true"] { background: #edf4fb; border-radius: 5px; }
.issue-item-top { display: flex; gap: 10px; align-items: start; justify-content: space-between; }
.issue-item-top strong { font-size: 14px; line-height: 1.8; }
.issue-preview { font-size: 12px; color: var(--ink-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.issue-item-meta { font-size: 11px; color: var(--ink-faint); }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.badge { display: inline-block; padding: 2px 8px; background: #ece9df; color: #65615a; border-radius: 20px; font-size: 10px; white-space: nowrap; }
.badge[data-status="new"] { background: #f6edcb; color: #796125; }
.badge[data-status="in_progress"] { background: #e7eff9; color: #285d98; }
.badge[data-status="resolved"] { background: #e8eee3; color: #476540; }
.badge-private { background: #eee8d8; color: #665738; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.pagination > span { font-size: 11px; color: var(--ink-faint); }
.pagination .button { min-height: 35px; padding: 6px 12px; }
.detail-empty { padding: clamp(35px, 5vw, 65px) 24px; text-align: center; background: var(--cream-dark); border-radius: 7px; color: var(--ink-faint); }
.detail-empty > span { display: block; color: var(--blue); font-size: 34px; }
.detail-empty h2 { font-size: 19px; color: var(--ink); margin: 8px 0; }
.detail-empty p { font-size: 12px; }
.issue-detail { padding-top: 3px; scroll-margin-top: 115px; }
.detail-actions { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-actions > div { display: flex; flex-shrink: 0; gap: 8px; }
.issue-detail > h2 { font-size: clamp(20px, 2vw, 25px); line-height: 1.65; margin-bottom: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.small-text { font-size: 11px; line-height: 1.85; color: var(--ink-faint); overflow-wrap: anywhere; }
.original-text, .feedback-comment-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.issue-description { margin: 22px 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.public-discussion > .small-text, .owner-discussion > .small-text { margin-top: 7px; }
.comment-list { margin-top: 18px; }
.feedback-comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 11px; color: var(--ink-faint); margin-bottom: 8px; }
.comment-meta strong { font-weight: 600; color: var(--blue-deep); }
.feedback-comment-content { font-size: 13px; }
.composer { display: grid; gap: 10px; margin-top: 23px; }
.composer > label { font-size: 12px; font-weight: 600; }
.composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.owner-discussion { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 26px; }
.owner-discussion .comment-list { padding: 0 16px; border-radius: 6px; background: #f5f0e4; }
.owner-discussion .feedback-comment:last-child { border: 0; }
.owner-original { margin-top: 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.owner-original summary { padding: 12px 0; font-size: 12px; color: var(--blue-deep); cursor: pointer; list-style: none; }
.owner-original summary::after { content: "+"; float: right; margin-inline: 12px; }
.owner-original[open] summary::after { content: "−"; }
.owner-original summary::-webkit-details-marker { display: none; }
.owner-original p { margin-bottom: 12px; font-size: 13px; }
#feedback-owner-original-title { font-weight: 600; }
.share-url { width: 100%; margin-bottom: 15px; font-size: 11px; }
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 22px; color: var(--ink-faint); font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: 9px; background: var(--cream); color: var(--ink); }
dialog::backdrop { background: rgb(26 26 46 / .48); }
.login-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.login-heading .eyebrow { margin: 0; }
dialog h2 { margin: 10px 0; font-size: 22px; }
.login-form { display: grid; gap: 16px; margin-top: 22px; }
.login-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; }
.login-form input { width: 100%; font-weight: 400; }
.code-row { display: grid; grid-template-columns: minmax(100px, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 1050px) { .header-admin { display: none; } .brand-copy strong { font-size: 13px; } .app-navigation { gap: 17px; } }
@media (max-width: 900px) { .container { width: calc(100% - 40px); } .board-workspace { grid-template-columns: minmax(0, 1fr); } .issue-list { max-height: 430px; } .issue-pane { border-top: 1px solid var(--line); padding-top: 25px; } .board-heading { align-items: start; } .account-tools { max-width: 240px; } }
@media (max-width: 600px) { .app-header-inner { flex-wrap: wrap; min-height: 100px; gap: 8px; padding-top: 14px; } .brand-copy strong { font-size: 14px; } .brand img { width: 33px; height: 33px; } .app-navigation { width: 100%; justify-content: space-between; gap: 10px; } .app-navigation a { min-height: 38px; font-size: 11px; } .board-heading { display: block; } .account-tools { margin-top: 18px; max-width: none; justify-content: flex-start; } .board-note { font-size: 11px; padding: 12px; } .status-filters { justify-content: space-between; gap: 0; } .status-filters button { padding: 11px 6px; gap: 4px; font-size: 12px; } .status-filters span { font-size: 10px; padding: 0; } .search-form { grid-template-columns: minmax(0, 1fr) auto; } .search-form input { grid-column: 1 / -1; } .search-form select { width: 100%; } .issue-detail { scroll-margin-top: 120px; } .issue-item-top { gap: 7px; } .code-row { gap: 8px; } .code-row .button { padding-inline: 10px; } .page-footer { display: block; } .page-footer p { margin-bottom: 7px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
