.piano-brand { text-decoration: none; color: var(--text); white-space: nowrap; }
.piano-brand span { color: var(--accent); margin-left: 3px; }
.sidebar { grid-template-columns: 1fr auto 1fr; }
.piano-nav { grid-column: 2; }
.piano-nav { display: flex; align-items: center; gap: 4px; }
.piano-nav a { color: var(--muted); text-decoration: none; padding: 10px 15px; border-radius: 7px; font-weight: 600; }
.piano-nav a.active { background: var(--accent-soft); color: var(--accent); }
.piano-nav a:hover { background: var(--panel-soft); }
.piano-logout { margin: 0; justify-self: end; }
.logout-button { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }
.logout-button:hover { color: var(--text); background: var(--panel-soft); }
.logout-button:focus-visible { outline: 2px solid #6798f0; outline-offset: 2px; }
@media(max-width:700px) { .logout-button { min-height: 40px; } }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--ok); border-radius: 50%; flex: 0 0 auto; }
.warning-dot { background: var(--attention); }
.muted-dot { background: #a4afbf; }
.content { max-width: 1540px; margin: auto; padding-top: 28px; }
.page-header h1 { font-size: 28px; }
.page-header { align-items: center; }
.date-control, .select-control { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.date-control > span, .select-control > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.date-control > div { display: flex; gap: 5px; align-items: center; }
.date-control input { min-width: 0; width: 100%; padding: 9px 7px; }
.select-control select, .select-control input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; color: var(--text); background: #fff; font: inherit; }
.select-control select { text-overflow: ellipsis; }
.snapshot-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.snapshot-bar > span:first-child { display: flex; gap: 7px; align-items: center; }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 0; cursor: pointer; font: inherit; }
.source-details { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 18px 22px; margin-bottom: 20px; font-size: 13px; line-height: 1.6; }
.source-details p { margin-bottom: 0; }
.journal-header { min-height: 40px; margin-bottom: 20px; }
.journal-header h1 { margin: 0; }
.journal-header > .ghost-link { font-size: 12px; padding: 8px 12px; }
.call-list { grid-template-columns: minmax(0,1fr); }
.piano-call-card { position: relative; min-width: 0; padding: 19px 22px; border-radius: 13px; }
.piano-call-card .call-card-top { align-items: start; gap: 16px; grid-template-columns: minmax(0,1fr) auto; }
.piano-call-card .call-title { font-size: 15px; line-height: 1.5; display: flex; gap: 9px; align-items: center; }
.piano-call-card .call-meta { margin-top: 5px; padding-left: 33px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; font-size: 11px; }
.call-arrow { color: #9ba7b9; font-weight: 400; margin: 0 4px; }
.call-parties { min-width: 0; overflow-wrap: anywhere; }
.call-duration { display: inline-flex; gap: 4px; align-items: center; }
.call-number { color: #98a2b3; }
.direction-icon { display: inline-flex; width: 24px; height: 24px; flex: 0 0 24px; align-items: center; justify-content: center; border-radius: 7px; background: #eff6ff; color: #2563eb; font-size: 17px; }
.direction-icon.incoming { color: var(--ok); background: #ecfdf3; }
.analysis-placeholder { font-size: 11px; line-height: 1.8; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 7px; white-space: nowrap; }
.piano-call-card .analysis-placeholder { width: max-content; max-width: 100%; justify-self: end; }
.connection-connected { color: var(--ok); background: #eaf8f1; border-color: #cde9dc; }
.connection-missed_incoming { color: var(--urgent); background: #fff1f2; border-color: #ffd5d9; }
.connection-no_connection { color: #805d2f; background: #fff8eb; border-color: #f4e2bf; }
.piano-call-card .summary { font-size: 13px; line-height: 1.6; margin: 15px 0; }
.piano-call-card .call-tags { line-height: 1.6; margin: 13px 0 0; gap: 6px; }
.call-tags .badge, .call-tags .fact-chip { font-size: 11px; }
.piano-call-card .fact-chip { max-width: 100%; white-space: normal; }
.piano-call-card .fact-chip strong { min-width: 0; overflow-wrap: anywhere; }
.piano-call-card .card-actions { font-size: 12px; margin-top: 14px; gap: 16px; align-items: center; }
.piano-call-card .card-actions .ghost-link { min-height: 32px; padding: 6px 11px; border-radius: 8px; gap: 10px; font-size: 12px; }
.crm-link { color: #7c899d; text-decoration: none; }
.crm-link:hover { color: var(--accent); }
.history-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 32px; padding: 6px 0; color: #657b9a; border: 0; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.history-toggle:hover { color: var(--accent); }
.history-toggle:focus-visible { outline: 2px solid #6798f0; outline-offset: 3px; border-radius: 4px; }
.client-history { margin-top: 16px; padding: 14px 16px; border-left: 2px solid #dbe6f5; border-radius: 0 10px 10px 0; background: #f7f9fc; }
.history-heading,.history-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #8a98ac; }
.history-heading strong { color: #5d7290; font-size: 12px; font-weight: 600; }
.history-call { min-width: 0; padding: 13px 0; border-bottom: 1px solid #e5ebf3; }
.history-call:last-child { border-bottom: 0; }
.history-call-meta,.history-call-person { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: #8795a9; }
.history-call-meta a { color: #526d92; text-decoration: none; }
.history-call-meta a:hover { color: var(--accent); }
.history-period { color: #9a7948; background: #fff6e5; padding: 1px 5px; border-radius: 4px; }
.history-call-person { margin-top: 6px; color: #5c6f89; }
.history-direction { color: #8a9bb5; }
.history-result { color: #8896a9; }
.history-call > p,.piano-detail .history-call > p { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
.history-call .call-attention { margin-top: 8px; }
.history-empty { color: var(--muted); font-size: 12px; }
.history-transcript { margin-top: 8px; font-size: 11px; color: #6c809d; }
.history-transcript > summary { cursor: pointer; }
.history-transcript pre { max-height: 300px; overflow: auto; margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; color: #5b6b82; }
.history-footer { margin-top: 9px; }
.history-footer .text-button { font-size: 12px; min-height: 30px; }
@media(max-width:700px) { .history-toggle { min-height: 40px; } .client-history { padding: 12px; margin-top: 12px; } .history-call-meta,.history-call-person { gap: 5px 9px; } }
.call-excerpt { margin: 10px 0 0; padding: 8px 12px; border-left: 2px solid #dbe5f3; border-radius: 0 7px 7px 0; background: #f8fafc; color: #7a889c; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.call-attention { margin-top: 12px; border: 1px solid #f0dfbd; border-radius: 9px; background: #fffbf3; color: #8c6632; }
.call-attention.level-urgent { border-color: #f5d3d8; background: #fff6f7; color: #ad4253; }
.call-attention > summary { display: flex; align-items: center; gap: 10px; min-height: 37px; padding: 8px 12px; cursor: pointer; list-style: none; font-size: 12px; }
.call-attention > summary::-webkit-details-marker { display: none; }
.attention-level { flex-shrink: 0; font-size: 11px; }
.attention-brief { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-attention[open] .attention-brief { white-space: normal; overflow-wrap: anywhere; }
.call-attention[open] > summary > .filter-chevron { transform: translateY(3px) rotate(225deg); }
.attention-details { padding: 0 12px 10px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.attention-details > p,.piano-detail .attention-details > p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.attention-details > p > span { font-weight: 600; }
.call-attention blockquote { margin: 2px 0 0; padding: 0 0 0 9px; border-left: 2px solid currentColor; }
.call-attention > summary:focus-visible { outline: 2px solid #6798f0; outline-offset: 2px; border-radius: 8px; }
.transcript-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 32px; padding: 6px 10px; border: 1px solid #e3e9f2; border-radius: 8px; background: #fff; color: #677a95; cursor: pointer; font: inherit; font-size: 12px; }
.transcript-toggle:hover,.transcript-toggle[aria-expanded="true"] { background: #f4f7fc; border-color: #d3e0f4; color: var(--accent); }
.transcript-toggle:focus-visible { outline: 2px solid #6798f0; outline-offset: 2px; }
.journal-transcript { margin-top: 14px; padding: 16px; border: 1px solid #e4eaf3; border-radius: 10px; background: #f8fafc; }
.journal-transcript pre,.piano-detail .transcript { margin: 0; padding: 0; font: inherit; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; color: #5b6b82; background: transparent; }
.journal-transcript pre { max-height: 480px; overflow-y: auto; scrollbar-width: thin; }
.piano-detail .transcript { padding: 15px; border: 1px solid #e4eaf3; border-radius: 10px; background: #f8fafc; }
@media(max-width:700px) { .transcript-toggle { min-height: 40px; } .journal-transcript { padding: 12px; } }
.pagination { justify-content: center; gap: 24px; margin: 28px 0; }
.piano-metrics { grid-template-columns: repeat(5,minmax(0,1fr)); margin-top: 22px; gap: 14px; }
.metric-card { text-decoration: none; }
.metric-card strong { font-size: 32px; }
.metric-card small { font-size: 11px; }
.report-section { margin: 22px 0; padding: 24px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 9px; }
.report-section h2 { font-size: 19px; margin: 0 0 6px; }
.report-section > p { font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.report-intro { background: #f8fafc; border: 1px dashed var(--line); box-shadow: none; }
.report-intro p { max-width: 900px; margin-bottom: 0; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 9px; }
.table-wrap { overflow-x: auto; }
.piano-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.piano-table th { text-align: left; color: var(--muted); background: #f8fafc; font-size: 11px; font-weight: 600; white-space: nowrap; }
.piano-table th, .piano-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.piano-table td:not(:first-child) { white-space: nowrap; }
.piano-table td a { text-decoration: none; color: var(--accent); }
.piano-table td a:hover { text-decoration: underline; }
.piano-table tr:last-child td { border-bottom: 0; }
.count-warning { color: var(--urgent); background: #fff1f2; border-radius: 4px; padding: 2px 6px; }
.daily-chart { margin-top: 20px; }
.daily-row { display: grid; grid-template-columns: 55px 1fr 45px 115px; align-items: center; gap: 16px; margin: 13px 0; text-decoration: none; color: var(--text); font-size: 12px; }
.daily-track { height: 18px; background: #f2f5fa; border-radius: 3px; overflow: hidden; }
.daily-total { display: block; height: 100%; background: #79a4f4; border-radius: 3px; min-width: 0; }
.daily-row:hover .daily-total { background: var(--accent); }
.daily-caption { color: var(--muted); }
.methodology summary { color: var(--muted); font-weight: 600; cursor: pointer; }
.methodology p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 1100px; }
.piano-detail { margin-top: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.piano-detail > section { padding: 25px; }
.piano-detail h2 { margin-top: 0; font-size: 19px; }
.piano-detail p { font-size: 13px; line-height: 1.7; }
.piano-detail audio { width: 100%; margin: 8px 0; }
.piano-detail .definition-grid { font-size: 13px; gap: 12px 20px; }
.piano-detail .pending-analysis { background: #f8fafc; }
.empty-transcript { color: #98a2b3; border: 1px dashed var(--line); border-radius: 8px; padding: 25px; text-align: center; }
.empty-state p { font-size: 14px; line-height: 1.6; }
@media(max-width:1100px) { .piano-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .sidebar { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 12px 16px; } .piano-nav { order:3; width:100%; justify-content: center; } .piano-nav a { font-size: 13px; padding: 10px; } .content { padding:20px 12px; } .page-header { align-items: flex-start; } .page-header h1 { font-size:23px; } .page-header p { font-size:12px; } .piano-call-card { padding:16px; } .piano-call-card .call-title { font-size:14px; } .piano-call-card .call-card-top { flex-direction:column; gap:8px; } .piano-call-card .call-meta { padding-left:0; } .piano-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .metric-card strong { font-size:28px; } .report-section { padding:18px; } .daily-row { grid-template-columns:40px 1fr 35px; gap:10px; } .daily-caption { display:none; } .piano-detail { grid-template-columns:1fr; } }

/* Shared floating filters: independent of the operating system's select/date menus. */
[hidden] { display: none !important; }
.piano-filters { border-radius: 14px; }
.piano-filters .primary-button, .piano-filters .ghost-link { border-radius: 10px; }
.range-picker { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.filter-caption { font-size: 12px; font-weight: 600; color: var(--muted); }
.range-trigger, .pretty-select-trigger { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dde3ed; border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.range-trigger:hover, .pretty-select-trigger:hover { border-color: #aebed5; background: #fbfcff; }
.range-trigger[aria-expanded="true"], .pretty-select-trigger[aria-expanded="true"] { border-color: #8daff4; box-shadow: 0 0 0 3px #2563eb10; }
.range-trigger > svg { color: #6480a8; flex-shrink: 0; }
.range-trigger > span:first-of-type, .pretty-select-trigger > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chevron { width: 7px; height: 7px; border-right: 1.5px solid #8290a6; border-bottom: 1.5px solid #8290a6; transform: rotate(45deg); margin: -4px 3px 0 auto; flex-shrink: 0; transition: transform .15s; }
[aria-expanded="true"] > .filter-chevron { transform: translateY(3px) rotate(225deg); }
.range-trigger:focus-visible, .pretty-select-trigger:focus-visible, .date-popover button:focus-visible, .pretty-select-option:focus-visible { outline: 2px solid #6798f0; outline-offset: 2px; }
.date-popover, .pretty-select-popover { position: absolute; top: calc(100% + 9px); left: 0; z-index: 80; background: #fff; border: 1px solid #e2e8f1; border-radius: 17px; box-shadow: 0 14px 50px #14284818, 0 3px 10px #14284808; animation: filter-appear .13s ease-out; }
@keyframes filter-appear { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.date-popover { width: 692px; max-width: calc(100vw - 48px); }
.date-popover-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 17px; border-bottom: 1px solid #eef1f6; }
.date-popover-heading strong { display: block; font-size: 15px; letter-spacing: -.2px; }
.date-popover-heading div > span { display: block; margin-top: 5px; font-size: 11px; color: #8a96a8; }
.popover-close { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f5f7fa; color: #8a96a8; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.popover-close:hover { color: var(--text); background: #edf1f7; }
.date-popover-body { display: grid; grid-template-columns: 171px minmax(0,1fr); }
.date-presets { border-right: 1px solid #eef1f6; padding: 15px 10px; }
.date-presets button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; margin: 2px 0; border: 0; border-radius: 9px; background: transparent; color: #526178; font: inherit; font-size: 12px; line-height: 1.4; text-align: left; cursor: pointer; }
.date-presets button > span { visibility: hidden; color: var(--accent); font-size: 13px; }
.date-presets button:hover { background: #f5f7fc; color: var(--text); }
.date-presets button.active { color: var(--accent); background: #eff5ff; font-weight: 600; }
.date-presets button.active > span { visibility: visible; }
.date-calendar-area { padding: 12px 18px 18px; min-width: 0; }
.calendar-navigation { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.calendar-navigation > span { color: #98a2b3; font-size: 10px; text-align: center; }
.month-arrow { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; padding: 0; border: 1px solid #e8edf5; border-radius: 8px; background: #fff; color: #687b96; cursor: pointer; font-size: 22px; line-height: 1; }
.month-arrow:hover { background: #f4f7fc; color: var(--accent); }
.calendar-months { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.calendar-month h3 { font-size: 12px; font-weight: 600; text-transform: capitalize; margin: 0 0 16px; text-align: center; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekdays { margin-bottom: 8px; color: #98a2b3; font-size: 10px; text-align: center; }
.calendar-grid { row-gap: 4px; }
.calendar-grid > span, .calendar-grid > button { min-width: 0; height: 28px; }
.calendar-grid button { position: relative; border: 0; padding: 0; background: transparent; color: #45556d; font: inherit; font-size: 11px; line-height: 1; text-align: center; border-radius: 7px; cursor: pointer; }
.calendar-grid button:hover { background: #f0f5ff; color: var(--accent); }
.calendar-grid button.in-range { border-radius: 0; background: #eef4ff; color: #4271c3; }
.calendar-grid button.is-selected { background: var(--accent); color: #fff; font-weight: 600; }
.calendar-grid button.is-today::after { content: ''; position: absolute; bottom: 3px; left: calc(50% - 1.5px); width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.calendar-grid button:disabled { cursor: default; color: #cdd4df; background: transparent; }
.date-popover-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #eef1f6; padding: 15px 20px; }
.range-selection { font-size: 11px; font-weight: 600; color: #526178; }
.range-error { display: block; margin-top: 4px; color: var(--urgent); font-size: 10px; }
.range-footer-actions { display: flex; gap: 7px; align-items: center; }
.range-cancel, .range-submit { border: 0; border-radius: 9px; padding: 9px 15px; font: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; white-space: nowrap; }
.range-cancel { background: transparent; color: #8290a6; }
.range-cancel:hover { background: #f6f8fb; color: var(--text); }
.range-submit { background: var(--accent); color: #fff; box-shadow: 0 2px 4px #2563eb18; }
.range-submit:hover { background: #1d4ed8; }
.range-submit:disabled { opacity: .45; cursor: not-allowed; }
.pretty-select { position: relative; min-width: 0; }
.pretty-select-trigger { font-size: 14px; }
.pretty-select-popover { width: 100%; min-width: 160px; padding: 6px; border-radius: 13px; }
.pretty-select-list { max-height: 255px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d7dfed transparent; }
.pretty-select-option { width: 100%; border: 0; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: transparent; padding: 10px 11px; color: #526178; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; cursor: pointer; }
.pretty-select-option:hover, .pretty-select-option:focus-visible { background: #f5f7fc; }
.pretty-select-option.active { background: #eff5ff; color: var(--accent); font-weight: 600; }
.select-check { visibility: hidden; font-size: 12px; flex: 0 0 auto; }
.pretty-select-option.active .select-check { visibility: visible; }
.select-control .pretty-select-search { margin: 3px 3px 7px; width: calc(100% - 6px); min-height: 34px; border: 1px solid #e8edf5; background: #f8fafc; border-radius: 8px; font-size: 12px; padding: 7px 10px; }
.pretty-select-empty { padding: 15px 10px; color: #98a2b3; text-align: center; font-size: 12px; }
@media(max-width:760px) {
  .date-popover { position: fixed; top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-width: none; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .date-popover-heading { padding: 16px; }
  .date-popover-body { display: block; }
  .date-presets { border-right: 0; border-bottom: 1px solid #eef1f6; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 10px; }
  .date-presets button { font-size: 11px; padding: 8px; }
  .date-calendar-area { padding: 10px 18px 16px; }
  .calendar-months { display: block; }
  .calendar-month:nth-child(2) { display: none; }
  .calendar-month h3 { margin-bottom: 13px; }
  .calendar-grid > span, .calendar-grid > button { height: 32px; }
  .calendar-grid button { font-size: 12px; }
  .date-popover-footer { position: sticky; bottom: 0; padding: 12px; flex-wrap: wrap; background: #fff; border-radius: 0 0 17px 17px; }
  .range-footer-actions { margin-left: auto; }
  .range-cancel, .range-submit { padding: 8px 12px; }
}
@media(prefers-reduced-motion:reduce) { .date-popover,.pretty-select-popover { animation: none; } .range-trigger,.pretty-select-trigger,.filter-chevron { transition: none; } }

.filter-panel { margin-bottom: 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; }
.filter-panel > summary { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 9px 16px; cursor: pointer; list-style: none; font-size: 12px; }
.filter-panel > summary:focus-visible { outline: 2px solid #6798f0; outline-offset: 3px; border-radius: 12px; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel-title { display: flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; color: #526178; }
.filter-count { font-weight: 400; color: #8a96a8; font-variant-numeric: tabular-nums; }
.filter-summary-chips { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.filter-summary-chips > span { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #f2f5fa; color: #6b7a90; font-size: 11px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.filter-summary-chips .filter-period-chip { background: #eff5ff; color: #4b74b8; }
.filter-summary-chips { overflow-x: auto; scrollbar-width: none; }
.filter-summary-chips > span { flex-shrink: 0; }
.filter-panel-action { display: flex; align-items: center; justify-content: center; width: 18px; margin-left: 0; }
.filter-pin { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; border: 0; border-radius: 7px; padding: 0; background: transparent; color: #a3adbc; cursor: pointer; }
.filter-pin:hover { background: #f2f5fa; color: #60738f; }
.filter-pin[aria-pressed="true"] { background: #eff5ff; color: var(--accent); }
.filter-pin:focus-visible { outline: 2px solid #6798f0; outline-offset: 2px; }
.filter-panel[open] > summary { border-bottom: 1px solid var(--line-soft); }
.filter-panel[open] .filter-panel-action .filter-chevron { transform: translateY(3px) rotate(225deg); }
.filter-panel .piano-filters { border: 0; box-shadow: none; margin: 0; padding: 18px; gap: 18px; grid-template-columns: minmax(0,1fr); background: transparent; }
.filter-search { grid-column: auto; display: flex; align-items: center; gap: 9px; width: 100%; padding: 0 12px; border: 1px solid #e4e9f1; border-radius: 10px; color: #8a98ac; background: #f8fafc; }
.filter-search > svg { flex: 0 0 auto; }
.filter-search:focus-within { border-color: #8daff4; box-shadow: 0 0 0 3px #2563eb10; background: #fff; }
.filter-search input { min-height: 42px; border: 0; outline: 0; padding: 9px 0; color: var(--text); background: transparent; font: inherit; font-size: 13px; }
.filter-search input::placeholder { color: #98a2b3; }
.filter-fields-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; align-items: end; }
.filter-fields-grid .select-control input { min-height: 42px; border-color: #dde3ed; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.filter-form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.piano-filters .filter-form-footer > * { width: auto; min-height: 36px; padding: 8px 18px; border-radius: 9px; font-size: 12px; }
.piano-filters .filter-form-footer .ghost-link { border-color: transparent; color: #8491a4; }
.queue-selection-bar { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; min-height: 32px; font-size: 12px; color: #7b879a; }
.journal-order { margin-left: auto; color: #98a2b3; font-size: 11px; }
.selection-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 8px; margin-left: -7px; border: 0; border-radius: 7px; background: transparent; color: #77869c; font: inherit; font-size: 11px; cursor: pointer; }
.selection-toggle:hover,.selection-toggle[aria-pressed="true"] { background: #eaf1fc; color: var(--accent); }
.selection-toggle:disabled { opacity: .45; cursor: default; }
.is-selecting .piano-call-card { padding-left: 55px; }
.is-selecting .piano-call-card:has(input[name="call_id"]:checked) { border-color: #9ebdf5; background: #fcfdff; }
.queue-selection-bar label,.queue-call-select { display: flex; align-items: center; gap: 8px; }
.queue-call-select { position: absolute; left: 21px; top: 24px; margin: 0; cursor: pointer; }
.queue-call-select input,.queue-selection-bar input { accent-color: var(--accent); width: 14px; height: 14px; }
.queue-selection-bar button { border-radius: 8px; }
.queue-selection-bar button [data-selection-count] { margin-left: 6px; display: inline-block; min-width: 15px; }
.queue-selection-bar button:disabled { background: #e9edf4; border-color: #e9edf4; color: #9da8b8; opacity: 1; }
.journal-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 10px; }
.pagination-caption { color: #98a2b3; font-size: 11px; }
.pagination-pages { display: flex; align-items: center; gap: 5px; }
.pagination-pages > * { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; color: #6b7c94; text-decoration: none; font-variant-numeric: tabular-nums; }
.pagination-pages a:hover { background: #edf3fd; color: var(--accent); }
.pagination-pages .current { border-color: #dbe7fc; background: #eaf2ff; color: var(--accent); font-weight: 600; }
.pagination-pages .page-arrow { border-color: #e3e8f1; background: #fff; margin: 0 3px; font-size: 16px; }
.pagination-pages .disabled { opacity: .35; }
.pagination-pages .page-ellipsis { min-width: 18px; padding: 0; color: #a7b0be; }
@media(max-width:1150px) { .filter-fields-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:850px) { .filter-fields-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) {
  .filter-fields-grid { grid-template-columns: 1fr; }
  .filter-panel > summary { gap: 7px; padding: 9px 10px; }
  .filter-panel-title { gap: 5px; font-size: 11px; }
  .filter-panel-title > svg { display: none; }
  .filter-summary-chips { gap: 5px; }
  .filter-summary-chips > span { font-size: 10px; }
  .filter-pin { flex-basis: 25px; width: 25px; }
  .filter-panel .piano-filters { padding: 14px; }
  .filter-search input { font-size: 12px; }
  .queue-selection-bar { gap: 10px; font-size: 11px; flex-wrap: wrap; }
  .is-selecting .journal-order { display: none; }
  .queue-selection-bar [data-enqueue-button] { width: auto; margin-left: auto; font-size: 11px; }
  .journal-header { gap: 10px; margin-bottom: 16px; }
  .journal-header h1 { font-size: 22px; }
  .journal-header > .ghost-link { width: auto; font-size: 11px; padding: 7px 9px; }
  .piano-call-card .call-card-top { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .piano-call-card .analysis-placeholder { justify-self: start; margin-left: 33px; }
  .piano-call-card .call-meta { padding-left: 33px; gap: 4px 10px; font-size: 10px; }
  .piano-call-card .card-actions .ghost-link { width: auto; }
  .journal-pagination { flex-direction: column; gap: 12px; }
  .pagination-pages { gap: 2px; flex-wrap: wrap; justify-content: center; }
  .pagination-pages > * { min-width: 29px; height: 32px; padding: 0 6px; }
  .pagination-pages .page-arrow { margin: 0 1px; }
}
@media(max-width:700px) {
  .piano-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; text-align: center; }
  .selection-toggle { min-height: 40px; }
  .piano-call-card .card-actions .ghost-link,.queue-selection-bar [data-enqueue-button] { min-height: 40px; }
  .piano-filters .filter-form-footer > * { min-height: 42px; }
  .section-heading-row { flex-wrap: wrap; }
  .section-heading-row p { font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
  .section-heading-row > .ghost-link { width: auto; }
  .piano-detail .definition-grid dd { overflow-wrap: anywhere; }
}
@media(max-width:360px) {
  .pagination-pages > * { min-width: 25px; padding: 0 4px; }
  .pagination-pages .page-arrow { min-width: 28px; margin: 0; }
  .pagination-pages .page-ellipsis { min-width: 14px; }
}
.state-ready { color: var(--ok); background: #ecfdf3; }
.state-queued,.state-processing { color: var(--accent); background: #eff5ff; }
.state-error { color: var(--urgent); background: #fff1f2; }
.settings-panel { max-width: 100%; }
.sync-status-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.sync-status-row form { margin: 0; }
.sync-status-row .ghost-link { font: inherit; cursor: pointer; }
.sync-hint { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.settings-panel > div > p { font-size: 13px; max-width: 750px; line-height: 1.7; }
.processing-form { display: flex; align-items: end; gap: 24px; flex-wrap: wrap; margin: 23px 0; }
.processing-form .select-control { min-width: 260px; }
.processing-form button { border-radius: 9px; }
.switch-control { display: flex; align-items: center; gap: 9px; min-height: 42px; cursor: pointer; font-size: 13px; }
.switch-control input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 34px; height: 20px; background: #d5dce7; border-radius: 20px; position: relative; transition: background .15s; }
.switch-track::after { content: ''; width: 14px; height: 14px; background: #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; box-shadow: 0 1px 3px #15203022; transition: transform .15s; }
.switch-control input:checked + .switch-track { background: var(--accent); }
.switch-control input:checked + .switch-track::after { transform: translateX(14px); }
.switch-control input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.settings-note { padding: 13px 16px; background: #f5f8fc; color: #6b7a90; border-radius: 9px; font-size: 12px; line-height: 1.7; }
.settings-help { margin-top: 18px; font-size: 12px; color: #7d8a9d; line-height: 1.8; max-width: 900px; }
.settings-help summary { cursor: pointer; }
.settings-timestamp { font-size: 11px; margin-top: 15px; }
.worker-pill { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.queue-empty { text-align: center; padding: 50px 20px; color: #98a2b3; font-size: 13px; }
.queue-empty strong { font-size: 16px; color: #6d7c91; font-weight: 500; }
.queue-date,.queue-error { display: block; font-size: 10px; color: #98a2b3; margin-top: 5px; max-width: 260px; white-space: normal; }
.queue-error { color: var(--urgent); }
.auth-page .app-shell { min-height: 100svh; }
.login-content { display: grid; place-items: center; min-height: 100svh; padding: 24px; }
.login-panel { width: 100%; max-width: 340px; margin: 0; padding: 30px 28px; border-color: var(--line-soft); border-radius: 16px; box-shadow: 0 8px 30px #18223004; }
.login-brand { margin: 0 0 26px; font-size: 30px; line-height: 1.2; letter-spacing: -.7px; text-align: center; }
.login-brand.piano-brand span { margin-left: 0; }
.login-panel form { gap: 12px; }
.login-panel input { min-height: 46px; padding: 11px 13px; border-radius: 10px; font-size: 16px; }
.login-panel button { width: 100%; min-height: 44px; margin: 0; border-radius: 10px; font: inherit; font-weight: 600; }
.login-panel .flash { margin: 0 0 16px; font-size: 13px; }
@media(max-width:420px) { .login-content { padding: 20px; } .login-panel { padding: 26px 22px; } }
@media(max-width:700px) { .filter-panel > summary { gap: 10px; } .filter-panel-action { font-size: 0; } .filter-summary-chips > span { max-width: 150px; } .piano-nav a { padding: 9px 7px; font-size: 11px; } .processing-form { gap: 16px; } .processing-form .select-control { width: 100%; min-width: 0; } .worker-pill { font-size: 10px; } }
