/* Colors and fonts are set in includes/class-theme.php. Change AOT_Theme::ACTIVE to try another preset. */

body.aot-front-page {
    background: var(--aot-paper) !important;
    color: var(--aot-text);
}

body.aot-front-page .wp-site-blocks,
body.aot-front-page .wp-block-post-content,
body.aot-front-page .entry-content,
body.aot-front-page .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none !important;
}

body.aot-front-page h1.wp-block-post-title,
body.aot-front-page .entry-header,
body.aot-front-page .wp-block-post-title {
    display: none;
}

body.aot-screen #wpcontent,
body.aot-screen #wpfooter,
body.aot-screen #wpbody {
    background: var(--aot-paper);
}

body.aot-screen #wpbody-content {
    padding-bottom: 48px;
}

body.aot-screen #wpadminbar {
    background: var(--aot-ink);
}

body.aot-screen #adminmenuback,
body.aot-screen #adminmenuwrap,
body.aot-screen #adminmenu,
body.aot-screen #adminmenu .wp-submenu {
    background: var(--aot-ink) !important;
}

body.aot-screen #adminmenu a,
body.aot-screen #adminmenu .wp-submenu a {
    color: var(--aot-menu-text) !important;
}

body.aot-screen #adminmenu li.menu-top:hover,
body.aot-screen #adminmenu li.opensub > a.menu-top {
    background: var(--aot-ink-soft) !important;
    color: var(--aot-on-ink) !important;
}

body.aot-screen #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
body.aot-screen #adminmenu li.current a.menu-top {
    background: var(--aot-accent) !important;
    color: var(--aot-on-ink) !important;
}

body.aot-screen #adminmenu .wp-has-current-submenu div.wp-menu-image:before,
body.aot-screen #adminmenu .current div.wp-menu-image:before,
body.aot-screen #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu .wp-menu-name {
    color: var(--aot-on-ink) !important;
}

.aot-app,
.aot-front {
    color: var(--aot-text);
    font-family: var(--aot-font);
    max-width: 1180px;
    box-sizing: border-box;
}

.aot-app {
    width: 100%;
}

.aot-front {
    width: min(1180px, calc(100vw - 48px));
    margin: 12px auto 48px;
    padding: 8px 0 24px;
}

.aot-app {
    margin-top: 8px;
}

.aot-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin: 0 0 22px;
}

.aot-kicker {
    margin: 0 0 6px;
    color: var(--aot-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.aot-screen .aot-app h1,
body.aot-front-page .aot-front h1,
.aot-hero h1,
.aot-app h1,
.aot-front h1 {
    margin: 0;
    color: var(--aot-text);
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.aot-lead {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--aot-muted);
    font-size: 15px;
    line-height: 1.5;
}

.aot-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.aot-today {
    margin: 0;
    color: var(--aot-text);
    font-size: 14px;
    font-weight: 700;
}

.aot-hero-stat {
    min-width: 120px;
    padding: 14px 18px;
    border: 1px solid var(--aot-line);
    border-radius: var(--aot-radius);
    background: var(--aot-card);
    color: var(--aot-text);
    box-shadow: var(--aot-shadow);
}

.aot-hero-stat span {
    display: block;
    color: var(--aot-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aot-hero-stat strong {
    display: block;
    margin-top: 4px;
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.aot-card,
.aot-app .aot-panel,
.aot-front .aot-panel {
    background: var(--aot-card);
    border: 1px solid var(--aot-line);
    border-radius: var(--aot-radius);
    box-shadow: var(--aot-shadow);
    padding: 22px 24px;
    margin: 0 0 18px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.aot-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.aot-card h2,
.aot-card h3,
.aot-app h2,
.aot-front h2 {
    margin: 0;
    color: var(--aot-text);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}

.aot-card h3,
.aot-front h3,
.aot-app h3 {
    font-size: 20px;
}

.aot-card-head p,
.aot-muted {
    margin: 0;
    color: var(--aot-muted);
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
}

.aot-card-head p {
    max-width: 360px;
}

.aot-dash {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.aot-dash .aot-card {
    margin: 0;
}

.aot-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.aot-metric {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--aot-paper);
    border: 1px solid var(--aot-line);
}

.aot-metric span {
    display: block;
    color: var(--aot-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aot-metric strong {
    display: block;
    margin-top: 4px;
    color: var(--aot-text);
    font-family: inherit;
    font-size: 20px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.aot-metric.is-total {
    background: var(--aot-card);
    border-color: var(--aot-line);
}

.aot-metric.is-gold { background: #f6d36a; border-color: #e0b43a; }
.aot-metric.is-uv-gold { background: #efe56a; border-color: #d4c63a; }
.aot-metric.is-silver { background: #d5dbe6; border-color: #b7c0d1; }
.aot-metric.is-rose { background: #f8d7dc; border-color: #e7b3bb; }
.aot-metric.is-oak,
.aot-metric.is-walnut { background: #ead7b8; border-color: #d2b48c; }
.aot-metric.is-bronze,
.aot-metric.is-copper { background: #f0d2b4; border-color: #d7b08a; }
.aot-metric.is-black { background: #2c2c2c; border-color: #2c2c2c; }
.aot-metric.is-black strong { color: #ffffff; }
.aot-metric.is-white { background: #ffffff; border-color: #c8cdd6; }

.aot-metric.is-total strong {
    color: var(--aot-accent);
}

.aot-summary {
    width: 100%;
    border-collapse: collapse;
}

.aot-summary th,
.aot-summary td {
    padding: 10px 0;
    border-bottom: 1px solid var(--aot-line);
    text-align: left;
    font-size: 14px;
}

.aot-summary tr:last-child th,
.aot-summary tr:last-child td {
    border-bottom: 0;
}

.aot-summary th {
    color: var(--aot-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aot-summary td.num,
.aot-summary th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--aot-ink);
    font-weight: 650;
}

.aot-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 18px;
    padding: 14px;
}

.aot-filters input[type="search"],
.aot-filters input[type="text"],
.aot-filters select,
.aot-input,
.aot-front input[type="text"],
.aot-front input[type="email"],
.aot-front input[type="password"],
.aot-front textarea,
.aot-app input[type="text"],
.aot-app input[type="email"],
.aot-app input[type="search"],
.aot-app textarea,
.aot-app select,
.aot-login input[type="text"],
.aot-login input[type="password"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--aot-line);
    border-radius: 12px;
    background: #fff;
    color: var(--aot-text);
    font: inherit;
    box-shadow: none;
}

.aot-filters input[type="search"],
.aot-filters input[type="text"] {
    width: auto;
    min-width: 220px;
    flex: 1 1 220px;
}

.aot-filters select {
    width: auto;
    min-width: 160px;
}

.aot-input:focus,
.aot-filters input:focus,
.aot-filters select:focus,
.aot-front input:focus,
.aot-front textarea:focus,
.aot-app input:focus,
.aot-app textarea:focus,
.aot-app select:focus,
.aot-login input:focus {
    border-color: var(--aot-accent);
    outline: 3px solid var(--aot-focus);
}

.aot-file,
.aot-front input[type="file"],
.aot-app input[type="file"] {
    display: block;
    width: auto;
    max-width: 100%;
    margin-top: 8px;
    color: var(--aot-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

.aot-file::file-selector-button,
.aot-front input[type="file"]::file-selector-button,
.aot-app input[type="file"]::file-selector-button,
.aot-file::-webkit-file-upload-button,
.aot-front input[type="file"]::-webkit-file-upload-button,
.aot-app input[type="file"]::-webkit-file-upload-button {
    margin-right: 10px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--aot-line);
    border-radius: 6px;
    background: var(--aot-card);
    color: var(--aot-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.aot-field {
    margin: 0 0 14px;
}

.aot-field label,
.aot-login label {
    display: block;
    margin: 0 0 6px;
    color: var(--aot-ink);
    font-size: 13px;
    font-weight: 700;
}

.aot-check {
    color: var(--aot-muted);
    font-weight: 500;
}

.aot-btn,
.aot-front button,
.aot-app .button-primary,
.aot-login #wp-submit,
body.aot-screen .aot-app .button.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: var(--aot-accent) !important;
    color: var(--aot-on-ink) !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.aot-btn:hover,
.aot-front button:hover,
.aot-login #wp-submit:hover,
body.aot-screen .aot-app .button.button-primary:hover {
    background: var(--aot-accent-hover) !important;
    color: var(--aot-on-ink) !important;
}

.aot-btn-ghost,
body.aot-screen .aot-filters .button {
    background: transparent !important;
    color: var(--aot-ink) !important;
    border: 1px solid var(--aot-line) !important;
}

.aot-front .aot-btn-danger,
.aot-app .aot-btn-danger {
    background: var(--aot-card) !important;
    color: var(--aot-text) !important;
    border: 1px solid var(--aot-line) !important;
}

.aot-link,
.aot-textlink {
    color: var(--aot-accent-deep);
    font-weight: 700;
    text-decoration: none;
}

.aot-order-link {
    font-weight: 600;
    white-space: nowrap;
}

.aot-link {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--aot-accent-soft);
}

.aot-link:hover,
.aot-textlink:hover {
    color: var(--aot-ink);
}

.aot-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.aot-sheet {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.aot-sheet th,
.aot-sheet td {
    padding: 12px 12px;
    border: 0;
    border-bottom: 1px solid var(--aot-line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 13.5px;
}

.aot-sheet th {
    background: transparent;
    color: var(--aot-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aot-sheet tbody tr:hover td {
    background: #f9fafb;
}

.aot-sheet tr.is-open td {
    background: var(--aot-accent-soft);
}

.aot-sheet td.aot-empty {
    white-space: normal;
    color: var(--aot-muted);
    padding: 28px 12px;
}

.aot-pill {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aot-pill.is-yes {
    background: var(--aot-ok-bg);
    color: var(--aot-ok);
}

.aot-pill.is-no {
    background: var(--aot-paper);
    color: var(--aot-text);
    border: 1px solid var(--aot-line);
}

.aot-pill.is-clear {
    background: var(--aot-ok-bg);
    color: var(--aot-ok);
}

.aot-pill.is-issue {
    background: var(--aot-warn-bg);
    color: var(--aot-warn);
}

.aot-shot,
.aot-shot-large {
    display: block;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--aot-line);
}

.aot-shot {
    max-width: 72px;
}

.aot-issue-shot {
    margin-top: 6px;
}

.aot-report-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aot-report-who {
    display: inline-block;
    min-width: 64px;
    color: var(--aot-muted);
    font-size: 11px;
    font-weight: 700;
}

.aot-reports {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.aot-report-card {
    padding: 12px 14px;
    border: 1px solid var(--aot-line);
    border-radius: 8px;
    background: var(--aot-paper);
}

.aot-report-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.aot-report-card p {
    margin: 0 0 8px;
}

.aot-metal {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.aot-metric .aot-metal {
    margin-bottom: 6px;
}

.aot-metal.is-gold { background: #f6d36a; border-color: #e0b43a; color: #5a3e08; }
.aot-metal.is-uv-gold { background: #efe56a; border-color: #d4c63a; color: #4e4810; }
.aot-metal.is-silver { background: #d5dbe6; border-color: #b7c0d1; color: #243044; }
.aot-metal.is-rose { background: #f8d7dc; border-color: #e7b3bb; color: #7a3140; }
.aot-metal.is-oak,
.aot-metal.is-walnut { background: #ead7b8; border-color: #c8a36e; color: #5c3b16; }
.aot-metal.is-bronze,
.aot-metal.is-copper { background: #f0d2b4; border-color: #d7b08a; color: #6b3e16; }
.aot-metal.is-black { background: #2c2c2c; border-color: #2c2c2c; color: #ffffff; }
.aot-metal.is-white { background: #ffffff; border-color: #c8cdd6; color: #1f2937; }
.aot-metal.is-other { background: #eef0f3; border-color: #d5d9e0; color: #374151; }

.aot-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 16px;
    overflow: auto;
}

.aot-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.aot-modal-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    margin: 12px 0 32px;
}

.aot-modal .aot-card {
    margin: 0;
}

.aot-modal .aot-close {
    flex: 0 0 auto;
    margin-left: auto;
}

body.aot-modal-open {
    overflow: hidden;
}

.aot-shot-large {
    max-width: 100%;
}

.aot-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
}

.aot-order-id {
    margin: 4px 0 0;
    color: var(--aot-muted);
    font-size: 14px;
}

.aot-facts {
    width: 100%;
    margin: 0 0 14px;
    border-collapse: collapse;
}

.aot-facts th,
.aot-facts td {
    padding: 10px 0;
    border-bottom: 1px solid var(--aot-line);
    text-align: left;
    vertical-align: top;
}

.aot-facts th {
    width: 140px;
    padding-right: 16px;
    color: var(--aot-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aot-proof {
    min-height: 88px;
    padding: 10px;
    border: 1px dashed var(--aot-line);
    border-radius: var(--aot-radius);
    background: var(--aot-paper);
}

.aot-lock {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--aot-accent-soft);
    color: var(--aot-accent-deep);
    font-size: 13px;
    line-height: 1.45;
}

.aot-notice,
.aot-app .notice,
.aot-front .aot-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    color: var(--aot-text);
}

.aot-notice.success,
.aot-app .notice-success {
    background: var(--aot-ok-bg);
    color: var(--aot-ok);
}

.aot-notice.error,
.aot-app .notice-error {
    background: var(--aot-danger-bg);
    color: var(--aot-danger);
}

.aot-app .notice-warning {
    background: var(--aot-warn-bg);
    color: var(--aot-warn);
}

.aot-app .notice p {
    margin: 0;
}

.aot-pages {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.aot-pages a,
.aot-pages span {
    display: inline-flex;
    min-width: 32px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--aot-card);
    color: var(--aot-text);
    text-decoration: none;
}

.aot-pages .current {
    background: var(--aot-accent);
    color: var(--aot-on-ink);
}

body.aot-front-page header.wp-block-template-part,
body.aot-front-page footer.wp-block-template-part,
body.aot-front-page .wp-block-site-title,
body.aot-login-page header,
body.aot-login-page #masthead,
body.aot-login-page footer,
body.aot-login-page #colophon,
body.aot-login-page .wp-block-navigation,
body.aot-login-page .wp-block-page-list {
    display: none !important;
}

body.aot-front-page main.wp-block-group,
body.aot-front-page main .wp-block-group {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

body.aot-front-page::after {
    content: "";
    display: block;
    height: 18px;
    background: var(--aot-accent);
}

body.aot-lock-nav .wp-block-navigation,
body.aot-lock-nav .wp-block-page-list,
body.aot-lock-nav #site-navigation,
body.aot-lock-nav .main-navigation,
body.aot-lock-nav .menu {
    display: none !important;
}

.aot-rolebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 20px;
    min-height: 56px;
}

.aot-rolelinks {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto;
}

.aot-rolebar a,
.aot-rolelinks a {
    color: var(--aot-accent-deep);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.aot-logo-link {
    display: inline-flex;
    align-items: center;
}

.aot-logo,
.aot-rolebar .custom-logo {
    display: block;
    width: auto;
    max-height: 40px;
}

.aot-login {
    max-width: 460px;
    margin: 48px auto;
}

.aot-login .aot-card {
    padding: 28px;
}

.aot-login-head {
    margin: 0 0 18px;
}

.aot-login-head h1 {
    margin: 2px 0 4px;
    font-size: 26px;
}

.aot-login-head p {
    margin: 0;
    color: var(--aot-muted);
    font-size: 14px;
}

.aot-roles {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.aot-roles legend {
    margin: 0 0 8px;
    padding: 0;
    color: var(--aot-text);
    font-size: 13px;
    font-weight: 700;
}

.aot-login .aot-role {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--aot-line);
    border-radius: 8px;
    color: var(--aot-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.aot-role-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--aot-accent-soft);
    color: var(--aot-accent-deep);
}

.aot-role-mark svg {
    width: 16px;
    height: 16px;
}

.aot-role-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.aot-role-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.aot-role-note {
    color: var(--aot-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.aot-login .aot-role input {
    width: 16px;
    height: 16px;
    margin: 0 0 0 auto;
    accent-color: var(--aot-accent);
}

.aot-login .aot-role:has(input:checked) {
    border-color: var(--aot-accent);
    background: var(--aot-accent-soft);
}

.aot-login .aot-role:has(input:checked) .aot-role-mark {
    background: #fff;
}

.aot-field-icon {
    position: relative;
    display: block;
}

.aot-field-icon > svg {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    color: var(--aot-muted);
    pointer-events: none;
}

.aot-login .aot-field-icon input {
    padding-left: 36px;
    padding-right: 40px;
}

.aot-login input[readonly] {
    background: var(--aot-paper);
    color: var(--aot-muted);
}

.aot-login .aot-reveal {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 28px;
    height: 28px;
    min-height: 0;
    margin-top: -14px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent !important;
    color: var(--aot-muted) !important;
}

.aot-login .aot-reveal svg {
    width: 16px;
    height: 16px;
}

.aot-login #loginform p {
    margin: 0 0 14px;
}

.aot-login .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--aot-muted);
    font-weight: 500;
}

.aot-login #wp-submit {
    width: 100%;
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
    font-size: 14px;
}

.aot-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 12px;
}

@media (max-width: 860px) {
    .aot-hero,
    .aot-dash,
    .aot-split {
        display: block;
    }

    .aot-hero-stat,
    .aot-split .aot-side {
        margin-top: 16px;
    }

    .aot-hero h1,
    .aot-app h1,
    .aot-front h1 {
        font-size: 32px;
    }
}
