/* 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: center;
    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;
    align-items: stretch;
    justify-content: flex-end;
    gap: 12px;
}

.aot-clocks {
    display: flex;
    gap: 12px;
}

.aot-clock {
    min-width: 230px;
    padding: 12px 14px;
    border: 1px solid var(--aot-line);
    border-radius: var(--aot-radius);
    background: var(--aot-card);
    box-shadow: var(--aot-shadow);
}

.aot-clock-label,
.aot-clock-zone {
    display: block;
    color: var(--aot-muted);
}

.aot-clock-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aot-clock-time {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.aot-clock-date {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.aot-clock-zone {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
}

.aot-brief {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--aot-line);
}

.aot-brief-hello,
.aot-brief-greet {
    margin: 0;
    color: var(--aot-text);
    font-weight: 700;
}

.aot-brief-hello {
    font-size: 20px;
}

.aot-brief-greet {
    margin-top: 2px;
    font-size: 16px;
}

.aot-brief > p {
    margin: 10px 0 0;
}

.aot-brief h3 {
    margin: 16px 0 0;
    font-size: 15px;
}

.aot-brief-metal {
    margin: 10px 0 0;
}

.aot-brief-sizes {
    margin: 4px 0 0;
    padding: 0 0 0 18px;
}

.aot-brief-sizes li {
    margin: 2px 0;
}

.aot-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.aot-view-tab {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--aot-line);
    border-radius: 999px;
    background: var(--aot-card);
    color: var(--aot-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.aot-view-tab:hover {
    color: var(--aot-text);
}

.aot-view-tab.is-on {
    border-color: var(--aot-accent);
    background: var(--aot-accent);
    color: var(--aot-on-ink);
}

.aot-view-tab.is-on:hover {
    color: var(--aot-on-ink);
}

.aot-batch-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.aot-front .aot-batch-tab,
.aot-app .aot-batch-tab {
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--aot-line);
    border-radius: 999px;
    background: var(--aot-card) !important;
    color: var(--aot-text) !important;
    font-size: 13px;
    font-weight: 700;
}

.aot-front .aot-batch-tab.is-on,
.aot-app .aot-batch-tab.is-on,
.aot-front .aot-batch-tab.is-on:hover,
.aot-app .aot-batch-tab.is-on:hover {
    border-color: var(--aot-accent);
    background: var(--aot-accent) !important;
    color: var(--aot-on-ink) !important;
}

.aot-batch-empty {
    margin: 0 0 12px;
    color: var(--aot-muted);
}

.aot-hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 148px;
    padding: 14px 16px;
    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 em,
.aot-hero-stat span {
    display: block;
    color: var(--aot-muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
}

.aot-hero-stat strong {
    display: block;
    margin-top: 2px;
    font-family: inherit;
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--aot-text);
}

.aot-hero-stat.is-files {
    display: block;
    min-width: 120px;
    padding: 14px 18px;
}

.aot-hero-stat.is-files span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aot-hero-stat.is-files strong {
    margin-top: 4px;
    font-size: 28px;
}

.aot-stat-icon,
.aot-today-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef3ff center / 18px 18px no-repeat;
}

.aot-stat-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7cff' stroke-width='1.8'%3E%3Cpath d='M12 3 4 7l8 4 8-4-8-4Z'/%3E%3Cpath d='M4 12l8 4 8-4'/%3E%3Cpath d='M4 17l8 4 8-4'/%3E%3C/svg%3E");
}

.aot-today {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    padding: 14px 16px;
    border: 1px solid var(--aot-line);
    border-radius: var(--aot-radius);
    background: var(--aot-card);
    box-shadow: var(--aot-shadow);
}

.aot-today-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7cff' stroke-width='1.8'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E");
}

.aot-today-label {
    display: block;
    color: var(--aot-muted);
    font-size: 12px;
    font-weight: 600;
}

.aot-today .aot-clock-date {
    display: block;
    margin-top: 2px;
    color: var(--aot-text);
    font-size: 15px;
    font-weight: 700;
}

.aot-today .aot-clock-zone {
    display: block;
    margin-top: 2px;
    color: var(--aot-muted);
    font-size: 12px;
}

.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.35fr) minmax(280px, 0.75fr);
    gap: 22px;
    margin-bottom: 22px;
    align-items: start;
}

.aot-dash.is-note {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.aot-update {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--aot-line);
}

.aot-update h2 {
    margin: 14px 0 8px;
    font-size: 15px;
}

.aot-update p {
    margin: 0 0 10px;
    color: var(--aot-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.aot-update-summary {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.aot-update-summary li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--aot-line);
    font-size: 14px;
}

.aot-update-summary li span:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.aot-front .aot-update-toggle,
.aot-app .aot-update-toggle {
    min-height: 32px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--aot-line);
    border-radius: 999px;
    background: var(--aot-card) !important;
    color: var(--aot-text) !important;
    font-size: 13px;
    font-weight: 700;
}

.aot-template {
    margin-top: 14px;
}

.aot-template-block {
    margin: 0 0 12px;
    border: 1px solid var(--aot-line);
    border-radius: 8px;
    overflow: hidden;
}

.aot-template-block h3 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
}

.aot-template-block.is-gold h3 { background: #fff6d8; }
.aot-template-block.is-silver h3 { background: #eef1f6; }
.aot-template-block.is-oak h3 { background: #f6efe4; }
.aot-template-block.is-other h3 { background: #f3f4f6; }

.aot-template-block table {
    width: 100%;
    border-collapse: collapse;
}

.aot-template-block th,
.aot-template-block td {
    padding: 6px 10px;
    border-top: 1px solid var(--aot-line);
    font-size: 13px;
    font-weight: 400;
    text-align: left;
}

.aot-template-block th:last-child,
.aot-template-block td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.aot-template-block tr.is-total td {
    font-weight: 700;
}

.aot-dash .aot-card {
    margin: 0;
}

.aot-detail-card {
    padding: 18px 16px 20px;
}

.aot-detail-card .aot-brief {
    margin: 0;
    padding: 0;
    border: 0;
}

.aot-detail-card .aot-plates,
.aot-detail-card .aot-brief-tables > .aot-plates:first-child {
    margin-top: 0;
}

.aot-plates {
    margin-top: 18px;
    border: 1px solid var(--aot-line);
    border-radius: 12px;
    background: var(--aot-card);
    overflow: hidden;
}

.aot-plates-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px 12px;
}

.aot-plates-head h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.aot-plates-head p {
    margin: 4px 0 0;
    color: var(--aot-muted);
    font-size: 13px;
}

.aot-plates-total {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-align: right;
}

.aot-plates-total em {
    display: block;
    color: var(--aot-muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
}

.aot-plates-total strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.aot-plates-stack {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background:
        linear-gradient(#7aa2ff, #7aa2ff) 8px 6px / 18px 4px no-repeat,
        linear-gradient(#9db8ff, #9db8ff) 6px 13px / 22px 4px no-repeat,
        linear-gradient(#c5d4ff, #c5d4ff) 4px 20px / 26px 4px no-repeat,
        #eef3ff;
}

.aot-plates-table {
    width: 100%;
    border-collapse: collapse;
}

.aot-plates-table th,
.aot-plates-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--aot-line);
    text-align: left;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

.aot-plates-table th {
    background: #f4f7fb;
    color: var(--aot-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aot-plates-table td.aot-plate-qty {
    font-size: 16px;
    font-weight: 700;
}

.aot-plate-metal {
    width: auto;
    white-space: nowrap;
}

.aot-detail-card .aot-plates-table th,
.aot-detail-card .aot-plates-table td {
    padding: 12px 12px;
}

.aot-plate-name {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    vertical-align: middle;
}

.aot-plate-name strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.aot-plate-name span {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef0f3;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.aot-plate-name span.is-gold,
.aot-plate-name span.is-uv-gold {
    background: #f8e7b4;
    color: #6a4e12;
}

.aot-plate-name span.is-silver {
    background: #e4e8ef;
    color: #3c4658;
}

.aot-plate-name span.is-oak,
.aot-plate-name span.is-walnut {
    background: #f0e2cc;
    color: #6a4a22;
}

.aot-plate-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: middle;
    background: #d9dde3;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.aot-plate-mark.is-gold,
.aot-plate-mark.is-uv-gold {
    background: radial-gradient(circle at 35% 35%, #ffe08a, #e0b43a);
}

.aot-plate-mark.is-silver {
    background: radial-gradient(circle at 35% 35%, #f5f7fa, #b7c0d1);
}

.aot-plate-mark.is-oak,
.aot-plate-mark.is-walnut {
    background: radial-gradient(circle at 35% 35%, #efd7b0, #b8884d);
}

.aot-plate-mark.is-rose {
    background: radial-gradient(circle at 35% 35%, #ffd7de, #e7b3bb);
}

.aot-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.aot-metric {
    position: relative;
    padding: 12px 36px 12px 12px;
    border-radius: 8px;
    background: var(--aot-paper);
    border: 1px solid var(--aot-line);
}

.aot-metric-mark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    background: center / 16px 16px no-repeat;
    opacity: 0.7;
}

.aot-metric.is-total .aot-metric-mark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7cff' stroke-width='1.8'%3E%3Cpath d='M12 3 4 7l8 4 8-4-8-4Z'/%3E%3Cpath d='M4 12l8 4 8-4'/%3E%3Cpath d='M4 17l8 4 8-4'/%3E%3C/svg%3E");
}

.aot-metric.is-gold .aot-metric-mark,
.aot-metric.is-uv-gold .aot-metric-mark,
.aot-metric.is-oak .aot-metric-mark,
.aot-metric.is-walnut .aot-metric-mark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b5a32' stroke-width='1.8'%3E%3Cpath d='M20 13V7a2 2 0 0 0-2-2h-5l-9 9 7 7 9-8Z'/%3E%3Ccircle cx='8' cy='8' r='1'/%3E%3C/svg%3E");
}

.aot-metric.is-silver .aot-metric-mark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5568' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.aot-metric.is-other .aot-metric-mark,
.aot-metric:not([class*='is-']) .aot-metric-mark {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 1 1 3.2 2.4c-.8.3-1.2.8-1.2 1.6'/%3E%3Ccircle cx='12' cy='17' r='.8' fill='%236b7280'/%3E%3C/svg%3E");
}

.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: 12px 8px 12px 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 input[type="url"],
.aot-front input[type="number"],
.aot-front input[type="datetime-local"],
.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-new-day {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--aot-line);
}

.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;
}

body.aot-login-page.aot-front-page {
    background: #e7eef8 !important;
}

body.aot-login-page.aot-front-page::after {
    display: none;
}

.aot-login {
    max-width: 1080px;
    margin: 28px auto 40px;
}

.aot-shift {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.aot-shift-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
}

.aot-portal {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(30, 58, 138, 0.08);
}

.aot-portal-story {
    position: relative;
    padding: 36px 36px 28px;
    overflow: hidden;
}

.aot-portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aot-portal-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

.aot-portal-logo svg {
    width: 24px;
    height: 24px;
}

.aot-portal-story h1,
body.aot-login-page .aot-portal-story h1 {
    max-width: 460px;
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
}

.aot-portal-sub {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
}

.aot-portal-lead {
    max-width: 460px;
    margin: 14px 0 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}

.aot-portal-points {
    display: grid;
    gap: 16px;
    max-width: 420px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.aot-portal-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.aot-portal-points strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.aot-portal-points li span span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.aot-point-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.aot-point-icon svg {
    width: 18px;
    height: 18px;
}

.aot-point-icon.is-issue {
    background: #dbeafe;
    color: #2563eb;
}

.aot-point-icon.is-mail {
    background: #dcfce7;
    color: #16a34a;
}

.aot-point-icon.is-live {
    background: #e0e7ff;
    color: #4f46e5;
}

.aot-portal-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.aot-portal-steps li {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.aot-portal-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    border-top: 1.5px solid #e2e8f0;
}

.aot-portal-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.aot-portal-steps svg {
    width: 16px;
    height: 16px;
}

.aot-portal-steps .is-design { background: #dbeafe; color: #2563eb; }
.aot-portal-steps .is-qa { background: #dcfce7; color: #16a34a; }
.aot-portal-steps .is-prod { background: #ffedd5; color: #ea580c; }
.aot-portal-steps .is-done { background: #f3e8ff; color: #9333ea; }

.aot-portal-art {
    position: absolute;
    right: 18px;
    top: 248px;
    width: 120px;
    height: 96px;
    color: #dbe4f5;
    pointer-events: none;
}

.aot-portal-form {
    padding: 36px 32px 28px;
    border-left: 1px solid #eef2f7;
}

.aot-portal-form h2,
body.aot-login-page .aot-portal-form h2 {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.aot-portal-hello {
    margin: 8px 0 18px;
    color: #64748b;
    font-size: 15px;
}

.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;
    margin-right: auto;
}

.aot-flag {
    display: inline-flex;
    flex: 0 0 auto;
    line-height: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.12);
}

.aot-flag svg {
    display: block;
    width: 32px;
    height: 20px;
}

.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;
    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;
}

.aot-sn {
    width: 42px;
    color: var(--aot-muted);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.aot-date,
.aot-time,
.aot-age {
    white-space: nowrap;
}

.aot-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.aot-sort label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.aot-sort select,
.aot-edit-grid select,
.aot-edit-grid input,
.aot-modes input[type="radio"] {
    font-family: inherit;
}

.aot-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}

.aot-modes {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.aot-modes legend {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
}

.aot-mode {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--aot-line);
    border-radius: 8px;
    font-weight: 500;
}

.aot-mode strong,
.aot-mode span span {
    display: block;
}

.aot-mode span span {
    color: var(--aot-muted);
    font-size: 13px;
    font-weight: 500;
}

.aot-confirm-mail {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--aot-line);
}

.aot-confirm-mail h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.aot-confirm-mail .aot-modes {
    margin-top: 10px;
}

.aot-designer-switch {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--aot-line);
}

.aot-designer-switch .aot-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 8px 0;
}

.aot-spark {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 88px;
    margin: 8px 0 20px;
    padding: 8px 4px 0;
}

.aot-spark span {
    flex: 1;
    min-width: 6px;
    background: var(--aot-accent);
    border-radius: 4px 4px 0 0;
    opacity: 0.9;
}

.aot-spark span.is-empty {
    background: var(--aot-line);
    opacity: 1;
    min-height: 4px;
}

.aot-trend {
    font-weight: 700;
}

.aot-trend.is-up {
    color: #1f7a3a;
}

.aot-trend.is-down {
    color: #b42318;
}

.aot-trend.is-flat {
    color: var(--aot-muted);
}

.aot-metric .aot-trend {
    font-size: 22px;
    line-height: 1.15;
}

@media (max-width: 860px) {
    .aot-hero,
    .aot-dash,
    .aot-split {
        display: block;
    }

    .aot-hero-stat,
    .aot-split .aot-side {
        margin-top: 16px;
    }

    .aot-hero-side,
    .aot-clocks {
        display: block;
    }

    .aot-clock {
        margin-bottom: 12px;
    }

    .aot-hero h1,
    .aot-app h1,
    .aot-front h1 {
        font-size: 32px;
    }

    .aot-edit-grid,
    .aot-portal {
        grid-template-columns: 1fr;
    }

    .aot-portal-form {
        border-left: 0;
        border-top: 1px solid #eef2f7;
    }

    .aot-portal-story h1,
    body.aot-login-page .aot-portal-story h1,
    .aot-portal-form h2,
    body.aot-login-page .aot-portal-form h2 {
        font-size: 32px;
    }

    .aot-portal-art {
        display: none;
    }
}
