/* Cat Classics Garage — admin in the WordPress (wp-admin) visual language */
:root {
  --bar: #1d2327; --menu: #1d2327; --menu-sub: #2c3338; --menu-text: #f0f0f1; --menu-muted: #c3c4c7; --menu-hover: #72aee6;
  --blue: #2271b1; --blue-d: #135e96; --blue-l: #72aee6; --bg: #f0f0f1; --card: #fff; --line: #c3c4c7; --line-l: #dcdcde; --line-xl: #f0f0f1;
  --text: #3c434a; --head: #1d2327; --muted: #646970; --red: #d63638; --red-d: #b32d2e; --green: #00a32a; --orange: #dba617; --stripe: #f6f7f7;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.4em var(--font); -webkit-font-smoothing: subpixel-antialiased; }
a { color: var(--blue); text-decoration: underline; transition: color .1s; }
a:hover, a:active { color: var(--blue-d); }
a:focus, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--blue); border-radius: 2px; }
h1, h2, h3 { color: var(--head); }
p { margin: 1em 0; }
code { background: rgba(0,0,0,.07); padding: 2px 4px; font-size: 12px; border-radius: 2px; }
.boot { display: grid; place-items: center; height: 100vh; font-size: 14px; color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }

/* ---------- login (wp-login.php) ---------- */
.login { min-height: 100vh; padding-top: 8vh; background: var(--bg); }
.login h1 { text-align: center; margin: 0 0 24px; }
.login h1 img { height: 84px; display: inline-block; background: #1d2327; padding: 12px 16px; border-radius: 4px; }
.login form { width: 320px; margin: 0 auto; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.04); padding: 26px 24px; }
.login label { display: block; font-size: 14px; margin-bottom: 3px; }
.login input[type=password] { width: 100%; font-size: 24px; line-height: 1.33; padding: 2px 8px; min-height: 40px; margin: 0 0 16px; }
.login .submit { display: flex; justify-content: flex-end; }
.login .err { width: 320px; margin: 0 auto 20px; background: #fff; border-left: 4px solid var(--red); padding: 12px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.login .back { width: 320px; margin: 24px auto 0; padding: 0 24px; font-size: 13px; }
.login .back a { color: #50575e; text-decoration: none; }

/* ---------- admin bar ---------- */
#wpadminbar { position: fixed; top: 0; left: 0; right: 0; z-index: 9990; height: 32px; background: var(--bar); color: var(--menu-muted); font-size: 13px; display: flex; align-items: stretch; }
#wpadminbar a, #wpadminbar button { color: var(--menu-text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
#wpadminbar .ab-item { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; white-space: nowrap; }
#wpadminbar .ab-item:hover, #wpadminbar .menupop:hover > .ab-item, #wpadminbar .menupop.open > .ab-item { background: var(--menu-sub); color: var(--menu-hover); }
#wpadminbar .ab-item svg { width: 20px; height: 20px; fill: #a7aaad; flex: none; }
#wpadminbar .ab-item:hover svg { fill: var(--menu-hover); }
#wpadminbar .logo img { width: 22px; height: 22px; border-radius: 3px; }
#wpadminbar .menupop { position: relative; }
#wpadminbar .ab-sub { display: none; position: absolute; top: 32px; left: 0; min-width: 190px; background: var(--menu-sub); box-shadow: 0 3px 5px rgba(0,0,0,.2); padding: 6px 0; z-index: 2; }
#wpadminbar .menupop:hover .ab-sub, #wpadminbar .menupop.open .ab-sub { display: block; }
#wpadminbar .ab-sub a, #wpadminbar .ab-sub button { display: block; width: 100%; text-align: left; padding: 6px 12px; color: var(--menu-text); line-height: 1.4; }
#wpadminbar .ab-sub a:hover, #wpadminbar .ab-sub button:hover { color: var(--menu-hover); }
#wpadminbar .right { margin-left: auto; display: flex; }
#wpadminbar .right .ab-sub { left: auto; right: 0; }
#wpadminbar .bubble { background: var(--red); color: #fff; border-radius: 9px; font-size: 9px; line-height: 17px; min-width: 17px; padding: 0 5px; text-align: center; font-weight: 600; }
#wpadminbar .avatar { width: 18px; height: 18px; border-radius: 50%; background: #50575e; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
#wpadminbar .lang { display: flex; align-items: center; gap: 2px; padding: 0 6px; }
#wpadminbar .lang button { padding: 2px 6px; border-radius: 2px; color: var(--menu-muted); font-size: 12px; }
#wpadminbar .lang button.on { background: var(--blue); color: #fff; }
#wpadminbar .menu-toggle { display: none; }

/* ---------- admin menu ---------- */
#adminmenuback, #adminmenuwrap { position: fixed; top: 32px; bottom: 0; left: 0; width: 160px; background: var(--menu); z-index: 9980; }
#adminmenuwrap { overflow-y: auto; }
#adminmenu { list-style: none; margin: 12px 0; padding: 0; }
#adminmenu > li > a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; min-height: 34px; color: var(--menu-text); text-decoration: none; font-size: 14px; line-height: 1.3; }
#adminmenu > li > a svg { width: 20px; height: 20px; fill: #a7aaad; flex: none; margin-right: 2px; }
#adminmenu > li > a:hover { color: var(--menu-hover); background: var(--menu-sub); }
#adminmenu > li > a:hover svg { fill: var(--menu-hover); }
#adminmenu > li.current > a { background: var(--blue); color: #fff; }
#adminmenu > li.current > a svg { fill: #fff; }
#adminmenu > li.current > a::after { content: ""; position: absolute; right: 0; top: 50%; margin-top: -8px; border: 8px solid transparent; border-right-color: var(--bg); }
#adminmenu .wp-submenu { list-style: none; margin: 0; padding: 7px 0 8px; background: var(--menu-sub); display: none; }
#adminmenu li.current .wp-submenu { display: block; }
#adminmenu .wp-submenu a { display: block; padding: 5px 12px 5px 38px; color: rgba(240,246,252,.7); text-decoration: none; font-size: 13px; line-height: 1.4; }
#adminmenu .wp-submenu a:hover { color: var(--menu-hover); }
#adminmenu .wp-submenu a.current { color: #fff; font-weight: 600; }
#adminmenu .wp-menu-separator { height: 5px; margin: 0 0 6px; }
#adminmenu .awaiting-mod { display: inline-block; margin-left: auto; background: var(--red); color: #fff; border-radius: 9px; font-size: 9px; line-height: 17px; min-width: 17px; padding: 0 5px; text-align: center; font-weight: 600; }
#collapse-menu { display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--menu-muted); background: none; border: 0; font: 13px var(--font); cursor: pointer; width: 100%; }
#collapse-menu:hover { color: var(--menu-hover); }
#collapse-menu svg { width: 18px; height: 18px; fill: currentColor; }
body.folded #adminmenuback, body.folded #adminmenuwrap { width: 36px; }
body.folded #adminmenu > li > a span, body.folded #adminmenu .awaiting-mod, body.folded #adminmenu .wp-submenu, body.folded #collapse-menu span { display: none; }
body.folded #wpcontent { margin-left: 36px; }
body.folded #collapse-menu svg { transform: rotate(180deg); }

/* ---------- content ---------- */
#wpcontent { margin-left: 160px; padding: 32px 20px 0; min-height: 100vh; }
.wrap { margin: 10px 20px 0 2px; padding-bottom: 60px; }
.wrap h1.wp-heading-inline, .wrap > h1 { display: inline-block; font-size: 23px; font-weight: 400; margin: 0; padding: 9px 0 4px; line-height: 1.3; }
.page-title-action { display: inline-block; margin-left: 4px; padding: 4px 8px; position: relative; top: -3px; text-decoration: none; border: 1px solid var(--blue); border-radius: 3px; background: var(--stripe); font-size: 13px; font-weight: 500; color: var(--blue); cursor: pointer; font-family: var(--font); line-height: 1.5; }
.page-title-action:hover { background: #f0f0f1; border-color: var(--blue-d); color: var(--blue-d); }
hr.wp-header-end { visibility: hidden; margin: 0; height: 8px; border: 0; }
.description, .form-table td .description { color: var(--muted); font-size: 13px; font-style: normal; margin: 4px 0 0; }
#wpfooter { margin-left: 160px; padding: 10px 20px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }
body.folded #wpfooter { margin-left: 36px; }

/* buttons */
.button, .button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; margin: 0; padding: 0 10px; font: 13px/2.15384615 var(--font); text-decoration: none; cursor: pointer; border: 1px solid var(--blue); border-radius: 3px; white-space: nowrap; background: var(--stripe); color: var(--blue); vertical-align: top; }
.button:hover { background: #f0f0f1; border-color: var(--blue-d); color: var(--blue-d); }
.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.button:disabled, .button-primary:disabled { color: #a7aaad; border-color: #dcdcde; background: #f6f7f7; cursor: default; }
.button-large { min-height: 32px; padding: 0 12px; }
.button-small { min-height: 26px; line-height: 2.18; padding: 0 8px; font-size: 11px; }
.button-link { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font: inherit; cursor: pointer; }
.button-link-delete, a.submitdelete { color: var(--red-d); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.button-link-delete:hover, a.submitdelete:hover { color: var(--red); }

/* inputs */
input[type=text], input[type=search], input[type=number], input[type=email], input[type=date], input[type=password], input[type=url], select, textarea {
  font: 14px var(--font); color: #2c3338; border: 1px solid #8c8f94; border-radius: 4px; background: #fff; padding: 0 8px; min-height: 30px; line-height: 2; box-shadow: 0 0 0 transparent; }
textarea { padding: 6px 8px; line-height: 1.5; width: 100%; resize: vertical; }
select { padding: 0 24px 0 8px; line-height: 2; appearance: none; background: #fff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 5px top 55%; background-size: 16px 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); outline: 2px solid transparent; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; margin: -4px 4px 0 0; vertical-align: middle; accent-color: var(--blue); }
.regular-text { width: 25em; max-width: 100%; }
.large-text { width: 99%; }
.small-text { width: 70px; }

/* notices */
.notice { background: #fff; border: 1px solid var(--line); border-left-width: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.04); margin: 5px 0 15px; padding: 1px 38px 1px 12px; position: relative; }
.notice p { margin: .5em 0; padding: 2px; }
.notice-success { border-left-color: var(--green); }
.notice-error { border-left-color: var(--red); }
.notice-warning { border-left-color: var(--orange); }
.notice-info { border-left-color: var(--blue-l); }
.notice-dismiss { position: absolute; top: 0; right: 1px; border: 0; margin: 0; padding: 9px; background: none; color: #787c82; cursor: pointer; font-size: 16px; line-height: 1; }
.notice-dismiss:hover { color: var(--red); }

/* subsubsub + tablenav */
.subsubsub { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; float: left; color: var(--muted); }
.subsubsub li { display: inline-block; margin: 0; padding: 0; white-space: nowrap; }
.subsubsub a { line-height: 2; padding: .2em; text-decoration: none; }
.subsubsub a.current { font-weight: 600; border: 0; color: #000; }
.subsubsub .count { color: #50575e; font-weight: 400; }
.search-box { float: right; margin: 8px 0 0; display: flex; gap: 4px; }
.search-box input { width: 200px; }
.tablenav { clear: both; height: auto; margin: 6px 0 4px; padding-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 30px; }
.tablenav .actions { display: flex; gap: 6px; align-items: center; }
.tablenav .tablenav-pages { margin-left: auto; color: var(--muted); }
.tablenav .displaying-num { font-style: italic; }
.clear { clear: both; }

/* list table */
.wp-list-table { width: 100%; border-spacing: 0; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.04); table-layout: fixed; }
.wp-list-table thead th, .wp-list-table tfoot th { text-align: left; font-weight: 400; color: var(--head); font-size: 14px; line-height: 1.4; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.wp-list-table tfoot th { border-top: 1px solid var(--line); border-bottom: 0; }
.wp-list-table td { padding: 8px 10px; vertical-align: top; color: #50575e; font-size: 13px; line-height: 1.5; }
.wp-list-table tbody tr:nth-child(odd) { background: var(--stripe); }
.wp-list-table tbody tr.inline-edit-row { background: #fff; }
.wp-list-table .check-column { width: 2.2em; padding: 11px 0 0 3px; vertical-align: top; }
.wp-list-table .check-column input { margin: 0 0 0 8px; }
.wp-list-table .column-thumb { width: 72px; }
.wp-list-table .column-thumb img, .wp-list-table .column-thumb .noimg { width: 60px; height: 45px; object-fit: cover; border-radius: 2px; display: block; background: #dcdcde; }
.wp-list-table .column-title strong { display: block; font-size: 14px; margin-bottom: .2em; }
.wp-list-table .column-title strong a { font-weight: 600; text-decoration: none; }
.wp-list-table .post-state { color: #50575e; font-weight: 600; }
.row-actions { color: #a7aaad; font-size: 13px; padding: 2px 0 0; left: -9999em; position: relative; }
tr:hover .row-actions, tr:focus-within .row-actions { left: 0; }
.row-actions a, .row-actions button { text-decoration: none; background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.row-actions .trash a, .row-actions .trash button, .row-actions .delete button { color: var(--red-d); }
.row-actions span + span::before { content: " | "; color: #a7aaad; }
.wp-list-table .no-items td { padding: 12px 10px; }
.wp-list-table th.sortable a { color: var(--head); text-decoration: none; }
.wp-list-table .column-order { width: 84px; white-space: nowrap; }
.wp-list-table .column-order button { width: 26px; height: 24px; border: 1px solid var(--line); background: #fff; color: #50575e; border-radius: 3px; cursor: pointer; }
.wp-list-table .column-order button:hover { border-color: var(--blue); color: var(--blue); }
.status-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.st-sale { background: #edfaef; color: #008a20; }
.st-reserved { background: #fcf9e8; color: #996800; }
.st-sold { background: #fcf0f1; color: #b32d2e; }
.st-archived { background: #f0f0f1; color: #50575e; }
.st-new { background: #fcf0f1; color: #b32d2e; }
.st-work { background: #f0f6fc; color: var(--blue-d); }
.st-done { background: #f0f0f1; color: #50575e; }
.st-draft { background: #f0f0f1; color: #50575e; }
.st-pub { background: #edfaef; color: #008a20; }
tr.unread td { box-shadow: inset 4px 0 0 var(--red); }
tr.unread .column-title strong { font-weight: 700; }

/* inline (quick) edit */
.inline-edit-row td { padding: 12px 10px; }
.inline-edit-row fieldset { border: 0; margin: 0; padding: 0; }
.inline-edit-row .inline-edit-legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; color: var(--head); }
.inline-edit-row .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; }
.inline-edit-row label span { display: block; margin-bottom: 3px; }
.inline-edit-row input[type=text], .inline-edit-row input[type=number], .inline-edit-row select { width: 100%; }
.inline-edit-row .submit { display: flex; gap: 8px; margin-top: 14px; }

/* post edit screen */
#poststuff { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; padding-top: 10px; }
#titlediv input#title { width: 100%; padding: 3px 8px; font-size: 1.7em; line-height: 100%; height: 1.7em; min-height: 40px; margin: 0 0 3px; background: #fff; }
#edit-slug-box { color: var(--muted); font-size: 13px; padding: 0 0 10px; line-height: 1.8; }
#edit-slug-box code { background: none; padding: 0; font-size: 13px; }
.postbox { position: relative; min-width: 255px; border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(0,0,0,.04); background: #fff; margin-bottom: 20px; }
.postbox .postbox-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.postbox .postbox-header h2 { font-size: 14px; padding: 8px 12px; margin: 0; line-height: 1.4; font-weight: 600; }
.postbox .handle-actions { display: flex; }
.postbox .handlediv { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: #787c82; }
.postbox.closed .inside { display: none; }
.postbox.closed .handlediv { transform: rotate(180deg); }
.postbox .inside { padding: 0 12px 12px; margin: 11px 0 0; line-height: 1.4; font-size: 13px; }
.postbox .inside > p:first-child { margin-top: 0; }
#submitdiv .inside { padding: 0; margin: 0; }
.misc-pub-section { padding: 6px 10px 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.misc-pub-section svg { width: 18px; height: 18px; fill: #8c8f94; }
.misc-pub-section b { color: var(--head); }
#major-publishing-actions { padding: 10px; clear: both; border-top: 1px solid var(--line-l); background: var(--stripe); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-radios { display: grid; gap: 6px; padding: 4px 10px 10px 34px; }
.status-radios label { display: flex; align-items: center; gap: 2px; }
.categorydiv ul { list-style: none; margin: 0; padding: 0; }
.categorydiv li { margin: 0 0 8px; }
.categorydiv li small { display: block; color: var(--muted); margin: 2px 0 0 24px; }
#postimagediv img { width: 100%; height: auto; display: block; border: 1px solid var(--line-l); }
#postimagediv .inside p { margin: 8px 0 0; }
.form-table { border-collapse: collapse; margin-top: .5em; width: 100%; clear: both; }
.form-table th { vertical-align: top; text-align: left; padding: 20px 10px 20px 0; width: 200px; line-height: 1.3; font-weight: 600; color: var(--head); font-size: 14px; }
.form-table td { padding: 15px 10px; line-height: 1.3; vertical-align: middle; margin-bottom: 9px; font-size: 14px; }
.postbox .form-table th { padding: 12px 10px 12px 0; width: 170px; font-size: 13px; }
.postbox .form-table td { padding: 8px 10px; }
.wp-editor-tabs { display: flex; justify-content: flex-end; gap: 0; margin-bottom: -1px; position: relative; z-index: 1; }
.wp-switch-editor { border: 1px solid var(--line-l); background: #f6f7f7; color: #646970; font: 13px/19px var(--font); padding: 3px 10px; margin-left: 5px; cursor: pointer; border-radius: 3px 3px 0 0; }
.wp-switch-editor.on { background: #f6f7f7; color: #50575e; border-bottom-color: #f6f7f7; font-weight: 600; }
.wp-switch-editor.empty::after { content: " •"; color: var(--red); }
.wp-editor-container { border: 1px solid var(--line-l); }
.wp-editor-container .quicktags-toolbar { background: #f6f7f7; border-bottom: 1px solid var(--line-l); padding: 3px; display: flex; gap: 2px; }
.quicktags-toolbar button { min-height: 26px; padding: 0 8px; font: 12px var(--font); border: 1px solid #c3c4c7; background: #f6f7f7; color: #2c3338; border-radius: 2px; cursor: pointer; }
.quicktags-toolbar button:hover { border-color: #8c8f94; background: #f0f0f1; }
.wp-editor-area { border: 0; border-radius: 0; min-height: 260px; font-family: Consolas, Monaco, monospace; font-size: 14px; line-height: 1.6; box-shadow: none !important; }
.wp-editor-area.short { min-height: 110px; font-family: var(--font); }

/* gallery (media grid) */
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.attachment { position: relative; aspect-ratio: 1; background: #f0f0f1; box-shadow: inset 0 0 15px rgba(0,0,0,.1), inset 0 0 0 1px rgba(0,0,0,.05); cursor: grab; }
.attachment img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.attachment .tools { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 4px; opacity: 0; transition: opacity .15s; }
.attachment:hover .tools, .attachment:focus-within .tools { opacity: 1; }
.attachment .tools button { width: 24px; height: 24px; border: 0; border-radius: 2px; background: rgba(255,255,255,.92); cursor: pointer; color: #2c3338; font-size: 13px; line-height: 1; }
.attachment .tools button.del { color: var(--red); }
.attachment .featured { position: absolute; top: 4px; left: 4px; background: var(--blue); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 2px; }
.attachment.drag { opacity: .4; } .attachment.over { box-shadow: 0 0 0 3px var(--blue); }
.upload-tile { aspect-ratio: 1; border: 2px dashed #c3c4c7; display: grid; place-items: center; text-align: center; color: var(--muted); cursor: pointer; padding: 8px; font-size: 13px; background: #fff; }
.upload-tile:hover { border-color: var(--blue); color: var(--blue); }
.upload-tile input, .single-upload input { display: none; }
.upload-progress { margin-top: 8px; min-height: 18px; color: var(--blue-d); }
.single-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.single-upload img { max-width: 100%; }
.single-upload img { width: 150px; height: 110px; object-fit: cover; border: 1px solid var(--line-l); }

/* dashboard */
#dashboard-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
#dashboard-widgets .col { min-width: 0; }
.at-a-glance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.at-a-glance li a { text-decoration: none; display: flex; gap: 6px; align-items: center; }
.at-a-glance li svg { width: 18px; height: 18px; fill: #8c8f94; }
.at-a-glance .sub { margin: 12px -12px -12px; padding: 8px 12px; border-top: 1px solid var(--line-xl); background: #f6f7f7; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); margin-bottom: 12px; }
.kpis div { background: #fff; padding: 10px 12px; }
.kpis small { display: block; color: var(--muted); }
.kpis b { display: block; font-size: 22px; font-weight: 400; color: var(--head); margin-top: 2px; }
.chart { width: 100%; height: 220px; display: block; }
.chart text { fill: #646970; font-size: 11px; }
.legend { display: flex; gap: 14px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 3px; margin-right: 5px; vertical-align: middle; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
.bar .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .tr { grid-column: 1 / -1; height: 5px; background: #f0f0f1; border-radius: 3px; overflow: hidden; }
.bar .tr i { display: block; height: 100%; background: var(--blue); }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-xl); }
.activity-list li:last-child { border-bottom: 0; }
.activity-list span { color: var(--muted); }
.period { display: flex; gap: 4px; }
.period button { border: 1px solid var(--line); background: #fff; color: var(--blue); padding: 1px 8px; font: 12px var(--font); border-radius: 3px; cursor: pointer; }
.period button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tip { position: fixed; pointer-events: none; background: #1d2327; color: #fff; border-radius: 3px; padding: 6px 8px; font-size: 12px; z-index: 9999; display: none; }
.empty-msg { color: var(--muted); padding: 6px 0; }

/* nav tabs (settings / texts) */
.nav-tab-wrapper { border-bottom: 1px solid var(--line); margin: 12px 0 0; padding-top: 9px; display: flex; flex-wrap: wrap; gap: 0 .5em; }
.nav-tab { border: 1px solid var(--line); border-bottom: 0; margin-bottom: -1px; padding: 5px 10px; font-size: 14px; line-height: 1.71428571; font-weight: 600; background: #dcdcde; color: #50575e; text-decoration: none; cursor: pointer; font-family: var(--font); }
.nav-tab:hover { background: #fff; color: #3c434a; }
.nav-tab.nav-tab-active { background: var(--bg); border-bottom: 1px solid var(--bg); color: #000; }
.texts-group h2 { font-size: 1.3em; margin: 1.6em 0 .2em; }
.texts-group .form-table th { width: 260px; font-weight: 400; color: var(--text); }
.texts-group .form-table th code { display: block; margin-top: 4px; color: var(--muted); background: none; padding: 0; font-size: 11px; }
.texts-group textarea { min-height: 34px; }
.texts-group textarea.changed { border-color: var(--blue); }
.submit-row { padding: 1.5em 0; display: flex; gap: 10px; align-items: center; }
.price-table { border-collapse: collapse; width: 100%; max-width: 640px; }
.price-table th, .price-table td { padding: 4px 8px 4px 0; text-align: left; }
.price-table th { font-weight: 600; color: var(--head); }
.price-table input { width: 100%; }

/* leads */
.lead-msg { white-space: pre-wrap; color: var(--text); margin: 4px 0 0; }
.lead-note { width: 100%; margin-top: 6px; }
.deliv { font-size: 12px; display: block; }
.deliv.ok { color: #008a20; } .deliv.bad { color: var(--red-d); }

/* responsive (WP breakpoint 782px) */
@media (max-width: 1100px) {
  #dashboard-widgets { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  #poststuff { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
  #wpadminbar { height: 46px; }
  #wpadminbar .ab-item { height: 46px; padding: 0 10px; }
  #wpadminbar .ab-item .lbl { display: none; }
  #wpadminbar .menu-toggle { display: flex; }
  #wpadminbar .ab-sub { top: 46px; }
  #adminmenuback, #adminmenuwrap { top: 46px; width: 190px; transform: translateX(-100%); transition: transform .2s; }
  body.menu-open #adminmenuback, body.menu-open #adminmenuwrap { transform: none; }
  #adminmenu > li > a { min-height: 44px; font-size: 16px; }
  #adminmenu .wp-submenu a { font-size: 15px; padding: 8px 12px 8px 40px; }
  #collapse-menu { display: none; }
  #wpcontent, body.folded #wpcontent { margin-left: 0; padding: 46px 10px 0; }
  #wpfooter, body.folded #wpfooter { margin-left: 0; }
  .wrap { margin: 10px 0 0; }
  .search-box { float: none; width: 100%; margin: 10px 0; } .search-box input { flex: 1; width: auto; }
  .subsubsub { float: none; }
  .button, .button-primary { min-height: 40px; font-size: 14px; line-height: 2.7; }
  .wp-list-table { table-layout: auto; }
  .wp-list-table thead, .wp-list-table tfoot { display: none; }
  .wp-list-table tr { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 0 12px; padding: 10px; }
  .wp-list-table td { display: block; padding: 2px 0; grid-column: 2; }
  .wp-list-table .check-column { display: none; }
  .wp-list-table td.column-thumb { grid-column: 1; grid-row: 1 / span 12; }
  .wp-list-table td.column-thumb img, .wp-list-table td.column-thumb .noimg { width: 70px; height: 52px; }
  .wp-list-table td[data-colname]:not(.column-title):not(.column-thumb)::before { content: attr(data-colname) ": "; color: var(--muted); }
  .wp-list-table tr:not(.has-thumb) td { grid-column: 1 / -1; }
  .wp-list-table td.column-title strong { font-size: 15px; }
  .row-actions { left: 0; padding-top: 6px; font-size: 14px; }
  .inline-edit-row .grid { grid-template-columns: 1fr 1fr; }
  .inline-edit-row td { grid-column: 1 / -1 !important; }
  #dashboard-widgets { grid-template-columns: minmax(0, 1fr); }
  .form-table th, .form-table td { display: block; width: auto !important; padding: 10px 0 4px; }
  .form-table td { padding-top: 0; }
  .form-table, .form-table tbody, .form-table tr { display: block; width: 100%; }
  .regular-text, .large-text { width: 100%; }
  .price-table input { min-width: 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .at-a-glance ul { grid-template-columns: 1fr; }
}
