PlotDirector/PlotLine/wwwroot/css/application-shell.css

198 lines
18 KiB
CSS

/* Shared semantic palette. Legacy light/dark remains a compatibility layer for feature pages. */
html[data-app-theme] {
--pd-workspace: #f6f1e8; --pd-surface: #fffdf8; --pd-surface-2: #f4ebdd; --pd-elevated: #fffdf9;
--pd-chrome: #f2e9dc; --pd-chrome-secondary: #fbf6ef; --pd-border: #d8ccbb; --pd-border-subtle: #e9dfd2;
--pd-text: #30291f; --pd-muted: #726454; --pd-heading: #30291f; --pd-accent: #86532e; --pd-accent-hover: #6e4020;
--pd-selected: #eaddcb; --pd-hover: #eee3d5; --pd-focus: #985b28; --pd-on-accent: #fff;
--pd-danger: #b4313c; --pd-warning: #936010; --pd-success: #327557; --pd-info: #326e9f;
--pd-icon-books: #376caa; --pd-icon-planning: #377e82; --pd-icon-calendar: #a95734; --pd-icon-characters: #7756a5;
--pd-icon-locations: #3e7c50; --pd-icon-relationships: #a34876; --pd-icon-review: #976318;
--pd-font-ui: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
--pd-radius: 5px; --pd-shadow: 0 3px 12px rgb(35 27 15 / 5%);
}
html[data-app-theme="modern-light"] {
--pd-workspace: #f4f5f7; --pd-surface: #fff; --pd-surface-2: #f0f2f5; --pd-elevated: #fff;
--pd-chrome: #f0f1f3; --pd-chrome-secondary: #fafbfc; --pd-border: #d4d8df; --pd-border-subtle: #e7e9ed;
--pd-text: #292e36; --pd-muted: #626b78; --pd-heading: #20252d; --pd-accent: #875330; --pd-accent-hover: #714023;
--pd-selected: #ece3dc; --pd-hover: #e5e8ed; --pd-focus: #98552b; --pd-shadow: 0 3px 14px rgb(20 30 45 / 4%);
}
html[data-app-theme="modern-dark"] {
--pd-workspace: #1d1f23; --pd-surface: #25282d; --pd-surface-2: #2d3036; --pd-elevated: #32363d;
--pd-chrome: #24272c; --pd-chrome-secondary: #2b2e34; --pd-border: #484d57; --pd-border-subtle: #383d45;
--pd-text: #e4e7ec; --pd-muted: #aab2bf; --pd-heading: #f4f5f7; --pd-accent: #dfa979; --pd-accent-hover: #efbd92;
--pd-selected: #44403d; --pd-hover: #3a3f48; --pd-focus: #edb787; --pd-on-accent: #211a15; --pd-shadow: none;
}
html[data-app-theme="warm-dark"] {
--pd-workspace: #171310; --pd-surface: #231e19; --pd-surface-2: #30271f; --pd-elevated: #382e25;
--pd-chrome: #251e18; --pd-chrome-secondary: #30271f; --pd-border: #5c4a3b; --pd-border-subtle: #44382e;
--pd-text: #eee3d4; --pd-muted: #c4af99; --pd-heading: #faecdc; --pd-accent: #dda872; --pd-accent-hover: #f0c18e;
--pd-selected: #4a3524; --pd-hover: #43362b; --pd-focus: #edb787; --pd-on-accent: #211a15; --pd-shadow: none;
}
html[data-app-theme$="dark"] {
--pd-danger: #f08c97; --pd-warning: #efbf68; --pd-success: #80c7a5; --pd-info: #8cb9f0;
--pd-icon-books: #88b5f3; --pd-icon-planning: #76c3c9; --pd-icon-calendar: #ecab83; --pd-icon-characters: #c0a3ec;
--pd-icon-locations: #8bc695; --pd-icon-relationships: #e298bc; --pd-icon-review: #e5be75;
}
/* Bridge established component tokens without independently redesigning feature pages. */
html[data-app-theme] .app-layout {
--plotline-bg: var(--pd-workspace); --plotline-bg-warm: var(--pd-workspace); --plotline-surface: var(--pd-surface);
--plotline-surface-elevated: var(--pd-elevated); --plotline-text: var(--pd-text); --plotline-text-muted: var(--pd-muted);
--plotline-ink: var(--pd-text); --plotline-muted: var(--pd-muted); --plotline-soft: var(--pd-surface-2);
--plotline-accent: var(--pd-accent); --plotline-accent-dark: var(--pd-accent); --plotline-accent-soft: var(--pd-selected);
--plotline-border-soft: var(--pd-border-subtle); --app-text: var(--pd-text); --app-text-muted: var(--pd-muted);
--app-bg: var(--pd-workspace); --app-surface: var(--pd-surface); --app-surface-2: var(--pd-surface-2);
--app-surface-alt: var(--pd-elevated); --app-card-bg: var(--pd-surface); --app-border: var(--pd-border); --app-timeline-bg: var(--pd-surface-2);
--plotline-paper: var(--pd-surface); --plotline-panel: var(--pd-surface); --plotline-line: var(--pd-border-subtle);
--plotline-danger: var(--pd-danger); --plotline-warning: var(--pd-warning); --plotline-success: var(--pd-success);
--app-link: var(--pd-accent); --app-input-bg: var(--pd-surface); --app-input-text: var(--pd-text);
--bs-body-bg: var(--pd-workspace); --bs-body-color: var(--pd-text); --bs-secondary-color: var(--pd-muted);
--bs-border-color: var(--pd-border); --bs-tertiary-bg: var(--pd-surface-2);
--bs-card-bg: var(--pd-surface); --bs-card-color: var(--pd-text); --bs-modal-bg: var(--pd-elevated);
--bs-dropdown-bg: var(--pd-elevated); --bs-link-color: var(--pd-accent); --bs-link-hover-color: var(--pd-accent-hover);
background: var(--pd-workspace); color: var(--pd-text);
}
.app-layout .pd-shell {
background: var(--pd-chrome); color: var(--pd-text); border-bottom: 1px solid var(--pd-border);
font-family: var(--pd-font-ui); margin-bottom: 18px; position: relative;
}
.pd-shell *, .pd-shell *::before, .pd-shell *::after { box-sizing: border-box; }
.pd-shell [hidden] { display: none !important; }
.pd-shell button, .pd-shell input, .pd-shell .dropdown-header { font-family: var(--pd-font-ui); }
.pd-titlebar { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 4px 20px; }
.pd-brand { font: 650 15px var(--pd-font-ui); letter-spacing: -.45px; color: var(--pd-text) !important; text-decoration: none; flex-shrink: 0; }
.pd-brand-mark { color: var(--pd-accent); font-size: 24px; line-height: 0; }
.pd-context-menus { display: flex; align-items: center; gap: 4px; padding: 0 0 0 12px; margin: 0; list-style: none; border-left: 1px solid var(--pd-border); min-width: 0; }
.pd-shell .nav-link { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--pd-text); font-size: 12px; padding: 7px 8px; border-radius: 4px; white-space: nowrap; }
.pd-shell .nav-link:hover, .pd-shell .nav-link.show { background: var(--pd-hover); color: var(--pd-text); }
.pd-shell .app-context-label { max-width: 190px; }
.pd-shell .app-book-label { max-width: 140px; }
.pd-titlebar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pd-presence { display: inline-flex; align-items: center; gap: 5px; color: var(--pd-muted); font-size: 11px; }
.pd-shell .app-account-label { max-width: 130px; }
.pd-shell .dropdown-menu { background: var(--pd-elevated) !important; color: var(--pd-text); border: 1px solid var(--pd-border); border-radius: var(--pd-radius); box-shadow: var(--pd-shadow); max-height: 70vh; overflow-y: auto; min-width: 220px; max-width: min(360px, 94vw); }
.pd-shell .dropdown-item, .pd-shell .dropdown-header { color: var(--pd-text) !important; font-size: 13px; white-space: normal; }
.pd-shell .dropdown-item:hover, .pd-shell .dropdown-item:focus, .pd-shell .dropdown-item.active { background: var(--pd-hover) !important; color: var(--pd-text) !important; }
.pd-shell .app-toolbar { background: transparent; border: 0; padding: 0; margin: 0; min-height: 30px; flex: 0 1 auto; max-width: 32vw; }
.pd-shell .app-toolbar-command { padding: 5px 7px; line-height: 18px; border: 0; border-radius: 3px; box-shadow: none; color: var(--pd-text); }
.pd-shell .app-toolbar-command > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pd-shell .app-toolbar-command:hover { background: var(--pd-hover); }
.pd-shell .app-toolbar-command.active { background: var(--pd-selected); box-shadow: none; }
.pd-shell .app-toolbar-customise { font-size: 18px; padding: 0 6px; border: 0; color: var(--pd-muted); }
.pd-shell .app-toolbar-empty { display: none; }
.pd-ribbon-heading { display: flex; align-items: center; padding: 0 20px; gap: 12px; }
.pd-ribbon-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; flex: 1; }
.pd-ribbon-tabs [role="tab"] { position: relative; border: 0; background: transparent; color: var(--pd-muted); padding: 8px 16px 10px; font-size: 13px; line-height: 18px; white-space: nowrap; }
.pd-ribbon-tabs [role="tab"]:hover { color: var(--pd-text); background: var(--pd-hover); }
.pd-ribbon-tabs [aria-selected="true"] { color: var(--pd-text); font-weight: 650; background: var(--pd-chrome-secondary); border-radius: 5px 5px 0 0; }
.pd-ribbon-tabs [aria-selected="true"]::after { content: ''; position: absolute; height: 2px; width: 14px; border-radius: 2px; background: var(--pd-accent); left: calc(50% - 7px); bottom: 5px; }
.pd-ribbon-collapse { border: 0; background: transparent; color: var(--pd-muted); font-size: 11px; white-space: nowrap; padding: 5px 7px; }
.pd-ribbon-collapse span { margin-left: 6px; }
.pd-ribbon-surface { background: var(--pd-chrome-secondary); padding: 8px 20px 6px; }
.pd-ribbon-panel { display: flex; overflow-x: auto; gap: 0; min-height: 84px; }
.pd-ribbon-group { display: flex; flex-direction: column; padding: 0 18px; border-right: 1px solid var(--pd-border-subtle); flex-shrink: 0; }
.pd-ribbon-group:first-child { padding-left: 0; }
.pd-ribbon-group:last-child { border: 0; }
.pd-ribbon-commands { display: flex; gap: 4px; flex: 1; align-items: flex-start; }
.pd-shell .pd-ribbon-command { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px 10px; min-width: 65px; border-radius: 4px; text-decoration: none; color: var(--pd-text) !important; font-size: 12px; white-space: nowrap; line-height: 18px; }
.pd-shell .pd-ribbon-command:hover { background: var(--pd-hover); }
.pd-shell .pd-ribbon-command[aria-current="page"] { background: var(--pd-selected); }
.pd-ribbon-group-label { display: block; text-align: center; color: var(--pd-muted); font-size: 10px; letter-spacing: .03em; padding-top: 4px; }
.pd-shell [aria-disabled="true"] { opacity: .45; cursor: default; }
.pd-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[data-tone="books"] { color: var(--pd-icon-books); } [data-tone="planning"] { color: var(--pd-icon-planning); }
[data-tone="calendar"] { color: var(--pd-icon-calendar); } [data-tone="characters"] { color: var(--pd-icon-characters); }
[data-tone="locations"] { color: var(--pd-icon-locations); } [data-tone="relationships"] { color: var(--pd-icon-relationships); }
[data-tone="review"] { color: var(--pd-icon-review); } [data-tone="warning"] { color: var(--pd-warning); }
.pd-shell :is(button,a,input):focus-visible, .pd-dashboard :is(a,button,input):focus-visible { outline: 2px solid var(--pd-focus); outline-offset: 2px; }
.pd-theme-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pd-theme-picker button { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 8px 6px; border: 1px solid var(--pd-border); border-radius: 4px; background: var(--pd-surface); color: var(--pd-text); white-space: nowrap; }
.pd-theme-picker [aria-pressed="true"] { border-color: var(--pd-accent); background: var(--pd-selected); }
.pd-theme-swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid #8a8a8a; flex-shrink: 0; }
[data-swatch="modern-light"] { background: #f4f5f7; } [data-swatch="modern-dark"] { background: #25282d; }
[data-swatch="warm-light"] { background: #f4ebdd; } [data-swatch="warm-dark"] { background: #30271f; }
.pd-shell-dialog { font-family: var(--pd-font-ui); }
:is(.pd-shell, .pd-shell-dialog) .modal-content { background: var(--pd-elevated) !important; color: var(--pd-text); border: 1px solid var(--pd-border); border-radius: 7px; }
:is(.pd-shell, .pd-shell-dialog) .modal-title { font: 600 17px var(--pd-font-ui); }
:is(.pd-shell, .pd-shell-dialog) .modal-dialog { max-width: 510px; }
:is(.pd-shell, .pd-shell-dialog) .text-muted { color: var(--pd-muted) !important; }
:is(.pd-shell, .pd-shell-dialog) .toolbar-choice { border-color: var(--pd-border-subtle); }
.pd-customise-section { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--pd-border-subtle); }
.pd-customise-section .form-check-label { display: grid; gap: 1px; color: var(--pd-text); }
.pd-customise-section .form-check-label span { color: var(--pd-muted); font-size: 12px; }
:is(.pd-shell, .pd-shell-dialog) .btn, .pd-dashboard .btn { border-radius: 4px; font-family: var(--pd-font-ui); font-weight: 500; box-shadow: none; }
:is(.pd-shell, .pd-shell-dialog) .btn-primary, .pd-dashboard .btn-primary { background: var(--pd-accent) !important; border-color: var(--pd-accent) !important; color: var(--pd-on-accent) !important; }
:is(.pd-shell, .pd-shell-dialog) .btn-primary:hover, .pd-dashboard .btn-primary:hover { background: var(--pd-accent-hover) !important; }
:is(.pd-shell, .pd-shell-dialog) .btn-outline-secondary, .pd-dashboard .btn-outline-secondary, .pd-dashboard .pw-actions__toggle { background: transparent !important; border-color: var(--pd-border) !important; color: var(--pd-text) !important; }
:is(.pd-shell, .pd-shell-dialog) .btn-outline-secondary:hover, .pd-dashboard .btn-outline-secondary:hover { background: var(--pd-hover) !important; }
/* Series Dashboard is the Phase 1 reference workspace. */
.app-layout .plotline-shell.pd-dashboard-shell { max-width: none; padding-inline: clamp(20px, 2.6vw, 54px); }
.pd-dashboard { padding-bottom: 28px; font-family: var(--pd-font-ui); }
.pd-dashboard .breadcrumb-trail { margin-bottom: 20px; }
.pd-dashboard .page-heading { margin-bottom: 28px; align-items: center; }
.pd-dashboard h1 { font-size: clamp(30px, 2.6vw, 42px); font-weight: 500; letter-spacing: -.7px; margin-bottom: 8px; }
.pd-dashboard h1, .pd-dashboard h3 a { color: var(--pd-heading) !important; }
.pd-dashboard .eyebrow { font: 600 10px var(--pd-font-ui); letter-spacing: .12em; color: var(--pd-muted); }
.pd-dashboard .lead-text { font: 14px/1.6 var(--pd-font-ui); color: var(--pd-muted) !important; max-width: 760px; }
.pd-dashboard .card { background: var(--pd-surface) !important; border: 0 !important; border-radius: 7px; box-shadow: var(--pd-shadow); color: var(--pd-text); }
.pd-dashboard .card-body { padding: 22px; }
.pd-dashboard .dashboard-summary-grid { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 1px; background: var(--pd-border-subtle); border-radius: 7px; overflow: hidden; }
.pd-dashboard .dashboard-summary-card { box-shadow: none; border-radius: 0; height: 100%; }
.pd-dashboard .dashboard-summary-body { padding: 18px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.pd-dashboard .dashboard-summary-label { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 10px; letter-spacing: .01em; text-transform: none; white-space: normal; color: var(--pd-muted) !important; }
.pd-dashboard .dashboard-summary-value { grid-column: 1; grid-row: 1; font: 600 clamp(19px,1.8vw,28px)/1.2 var(--pd-font-ui); color: var(--pd-text); }
.pd-dashboard .dashboard-stat-icon { grid-column: 2; grid-row: 1; width: 21px; height: 21px; }
.pd-dashboard .dashboard-progress-card { background: transparent !important; box-shadow: none; }
.pd-dashboard .dashboard-progress-body { padding: 18px 0 12px; }
.pd-dashboard .dashboard-progress-title { font: 600 18px var(--pd-font-ui); color: var(--pd-text); }
.pd-dashboard .dashboard-progress-heading { margin-bottom: 12px; }
.pd-dashboard .dashboard-series-progress, .pd-dashboard .progress { height: 5px; border-radius: 3px; background: var(--pd-border-subtle); }
.pd-dashboard .progress-bar { background: var(--pd-accent); }
.pd-dashboard .status-pill { border: 0; border-radius: 4px; padding: 3px 7px; background: var(--pd-surface-2) !important; color: var(--pd-muted) !important; font: 500 11px var(--pd-font-ui); }
.pd-dashboard .dashboard-status-published, .pd-dashboard .dashboard-status-ready { color: var(--pd-success) !important; }
.pd-dashboard .dashboard-status-drafting { color: var(--pd-info) !important; }
.pd-dashboard .dashboard-status-revising, .pd-dashboard .dashboard-status-editing { color: var(--pd-icon-characters) !important; }
.pd-dashboard .dashboard-attention-soft { color: var(--pd-warning) !important; }
.pd-dashboard .list-group-item { background: transparent !important; color: var(--pd-text); border-color: var(--pd-border-subtle) !important; padding-block: 14px; }
.pd-dashboard .border-top { border-color: var(--pd-border-subtle) !important; }
.pd-dashboard .text-muted, .pd-dashboard .muted { color: var(--pd-muted) !important; }
.pd-dashboard .dashboard-book-card .card-body { padding: 20px; }
.pd-dashboard .dashboard-book-card h3 { font-size: 23px; line-height: 1.25; }
.pd-dashboard .dashboard-book-subtitle { color: var(--pd-muted); font-size: 13px; }
.pd-dashboard .dashboard-book-card .btn { font-size: 12px; }
.pd-dashboard .dashboard-attention-card h2, .pd-dashboard .dashboard-activity-card h2 { font: 600 17px var(--pd-font-ui); }
.pd-dashboard .dashboard-attention-card h3 { font: 600 13px var(--pd-font-ui); color: var(--pd-text); }
@media (max-width: 1199px) {
.pd-titlebar { gap: 8px; padding-inline: 12px; flex-wrap: wrap; }
.pd-shell .app-toolbar { max-width: 40vw; }
.pd-shell .app-context-label { max-width: 140px; }
.pd-shell .app-book-label { max-width: 110px; }
.pd-dashboard .dashboard-summary-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 767px) {
.pd-titlebar { gap: 5px; }
.pd-titlebar > .app-toolbar { order: 3; flex: 1 1 100%; max-width: 100%; padding-bottom: 3px; }
.pd-context-menus { order: 4; width: 100%; border: 0; padding-left: 0; }
.pd-titlebar-end { margin-left: auto; }
.pd-presence { display: none; }
.pd-shell .app-account-label { max-width: 100px; }
.pd-ribbon-heading { padding-inline: 8px; gap: 4px; }
.pd-ribbon-tabs [role="tab"] { padding-inline: 12px; }
.pd-ribbon-collapse { width: 32px; overflow: hidden; font-size: 0; }
.pd-ribbon-collapse span { font-size: 16px; }
.pd-ribbon-surface { padding-inline: 10px; }
.pd-ribbon-group { padding-inline: 12px; }
.pd-dashboard .dashboard-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.pd-dashboard .dashboard-summary-body { padding: 14px 10px; }
}
@media (prefers-reduced-motion: reduce) {
.app-layout *, .app-layout *::before, .app-layout *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Bootstrap's sticky layer (1020) stays below backdrop/modal (1050/1055).
One natural-height header: no fixed rows or reserved expanded-ribbon space. */
@media (display-mode: standalone) {
html[data-app-theme] { scroll-padding-top: calc(var(--pd-sticky-height, 0px) + 12px); }
.app-layout > .pd-application-header { position: sticky; top: 0; z-index: 1020; margin-bottom: 18px; }
.app-layout > .pd-application-header > .pd-shell { margin-bottom: 0; }
}