:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #dce1e8;
  --text: #1b2230;
  --muted: #667085;
  --brand: #0b1220;
  --brand-2: #131c30;
  --brand-text: #eaf0f8;
  --accent: #c8102e;
  --accent-hover: #a20c25;
  --ok: #157347;
  --ok-bg: #e6f4ec;
  --warn: #a15c00;
  --warn-bg: #fbf1df;
  --err: #b42318;
  --err-bg: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* App bar */
.appbar { background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: var(--brand-text); box-shadow: var(--shadow); }
.appbar-inner { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.brand { color: var(--brand-text); font-weight: 700; letter-spacing: .2px; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.appnav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.appnav a { color: #c7d2e1; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.appnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.appuser { display: flex; align-items: center; gap: 12px; color: #aeb9c9; font-size: .9rem; }

main.container { padding-top: 28px; padding-bottom: 48px; }

h1 { font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 24px 0 12px; }
hgroup h1 { margin-bottom: 2px; }
hgroup p { color: var(--muted); margin: 0 0 20px; }
p { margin: 8px 0; }
a { color: var(--accent); }

/* Cards */
article, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 0 0 18px;
}

/* Forms */
form { margin: 0 0 18px; }
label { display: block; font-weight: 600; font-size: .85rem; color: var(--muted); margin: 12px 0 6px; }
label input, label select { margin-top: 4px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  color: var(--text);
  margin-bottom: 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 6px 0 14px; }
legend { font-weight: 600; font-size: .85rem; color: var(--muted); padding: 0 6px; }
fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); margin: 6px 0; }
fieldset label input { width: auto; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* Buttons */
button, [role="button"], .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
button:hover, [role="button"]:hover, .btn:hover { background: var(--accent-hover); }
.secondary, .btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.secondary:hover, .btn-outline:hover { background: var(--surface-2); color: var(--text); }
.appuser .btn-outline { color: var(--brand-text); border-color: rgba(255, 255, 255, .28); }
.appuser .btn-outline:hover { background: rgba(255, 255, 255, .1); }

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
td form { margin: 0; }
td input { margin-bottom: 0; }

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { text-align: left; }
.stat .num { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

/* Status badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.ORDER_PLACED { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.READY { background: #e7f0ff; color: #1b5cc6; border-color: transparent; }
.badge.PICKED_UP { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.CANCELLED { background: var(--err-bg); color: var(--err); border-color: transparent; }

/* Alerts */
.alerts { margin-bottom: 18px; }
.alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); }
.alert-text { flex: 1 1 auto; min-width: 0; }
.alert-x { flex: none; padding: 0; background: none; border: none; border-radius: 0; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0.6; }
.alert-x:hover { background: none; color: inherit; opacity: 1; }
.alert-success { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.alert-error { background: var(--err-bg); border-color: transparent; color: var(--err); }

/* Auth + narrow customer pages */
.narrow { max-width: 420px; margin: 6vh auto 0; }
.narrow article { padding: 28px; }

/* ---- Intake portal (Prosharp screens) ---- */
body:has(.ip-header){background:#ffffff}
body:has(.ip-header) .container{max-width:none;padding:0 28px}
.ip-header{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 28px;border-bottom:1px solid #e6e6e6}
.ip-title{font-family:"SF Mono",Menlo,Consolas,monospace;font-size:15px;letter-spacing:.06em;color:#111}
.ip-meta{text-align:right;font-size:13px;color:#333;line-height:1.7}
.ip-meta a{color:#2563eb;text-decoration:underline}
.ip-tabs{display:flex;gap:12px;padding:20px 0 10px;align-items:center}
.ip-tab{display:inline-block;padding:11px 20px;background:#ececec;border:1px solid transparent;border-radius:8px;color:#111;text-decoration:none;font-size:14px}
.ip-tab.active{background:#fff;border-color:#cfcfcf}
.ip-logout{margin-left:auto;color:#2563eb;text-decoration:none;font-size:13px}
.ip-pagehead{display:flex;justify-content:space-between;align-items:center;margin:14px 0 18px;gap:12px}
.ip-pagehead h1{font-family:"SF Mono",Menlo,Consolas,monospace;font-size:24px;letter-spacing:.05em;font-weight:600}
.ip-actions{display:flex;gap:10px;align-items:center}
.btn-primary{background:#1f1f1f;color:#fff;border:none;border-radius:8px;padding:13px 22px;font-size:14px;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;letter-spacing:.06em}
.btn-primary:hover{background:#000}
.btn-block{width:100%;justify-content:center;margin-top:28px;padding:16px}
.btn-gray{background:#ececec;color:#111;border:1px solid #ddd;border-radius:8px;padding:10px 18px;font-size:14px;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.btn-gray:hover{background:#e2e2e2}
.btn-dark-sm{background:#1f1f1f;color:#fff;border:none;border-radius:6px;padding:6px 18px;font-size:13px;text-decoration:none;cursor:pointer;display:inline-block}
.btn-gray-sm{background:#ececec;color:#111;border:1px solid #ddd;border-radius:6px;padding:5px 10px;font-size:13px;line-height:1;cursor:pointer;display:inline-block}
.btn-gray-sm:hover{background:#e2e2e2}
.btn-danger-sm{background:#fff;color:#b42318;border:1px solid #f0c7c2;border-radius:6px;padding:5px 12px;font-size:12px;letter-spacing:.04em;cursor:pointer;display:inline-block}
.btn-danger-sm:hover{background:#fdecea;border-color:#e6a9a1}
.ip-inline{display:inline-flex;gap:4px;margin:0}
.btn-link{background:none;border:none;color:#2563eb;cursor:pointer;font-size:14px;padding:0;text-decoration:none}
.ip-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;flex-wrap:wrap;gap:12px}
.ip-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ip-sort{display:flex;gap:10px;align-items:center;font-size:12px;color:#999;letter-spacing:.06em}
.ip-chip{padding:8px 16px;border:1px solid #ddd;border-radius:8px;color:#333;text-decoration:none;font-size:13px;background:#fff;display:inline-flex;align-items:center;gap:8px}
.ip-chip.active{background:#ececec;border-color:#ddd;color:#111}
.ip-chip .x{color:#888;font-size:11px}
.ip-select{border:1px solid #ccc;border-radius:8px;padding:9px 32px 9px 14px;font-size:13px;color:#111;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;-webkit-appearance:none;appearance:none;cursor:pointer}
.ip-search{border:1px solid #ddd;border-radius:8px;padding:9px 14px;font-size:13px;background:#f3f3f3;min-width:220px}
.ip-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #ececec;border-radius:10px;overflow:hidden}
.ip-table th{text-align:left;padding:15px 18px;background:#f5f5f5;font-size:12px;color:#666;letter-spacing:.04em;font-weight:500}
.ip-table td{padding:18px;border-top:1px solid #eee;font-size:14px;color:#111}
.ip-table a{color:#2563eb;text-decoration:none}
.ip-badge{display:inline-block;padding:7px 14px;border-radius:6px;font-size:13px;border:1px solid #ddd;background:#fff}
.ip-badge.s-NEW_INCOMPLETE{background:#eaf6ea;border-color:#d3e8d3}
.ip-badge.s-READY_FOR_TUNING{background:#e9f0fb;border-color:#d3e0f6}
.ip-badge.s-TUNING_IN_PROGRESS{background:#ededed;border-color:#e0e0e0}
.ip-badge.s-TUNING_DONE{background:#fff;border-color:#ddd}
.ip-badge.s-PAID{background:#f3f3f3;border-color:#e5e5e5}
.ip-card{background:#fff;border:1px solid #ececec;border-radius:12px;padding:26px;margin:12px 0}
.ip-grid2{display:grid;grid-template-columns:1fr 1fr;gap:24px 40px}
.ip-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;margin-bottom:16px}
.ip-label{color:#8a8a8a;font-size:13px;display:block;margin-bottom:4px}
.ip-subhead{font-family:"SF Mono",Menlo,Consolas,monospace;font-size:13px;margin:26px 0 8px;letter-spacing:.05em;color:#333}
.ip-narrow{max-width:820px}
.ip-narrow h1{font-family:"SF Mono",Menlo,Consolas,monospace;font-size:18px;margin-bottom:26px;letter-spacing:.05em}
.ip-narrow label{display:block;margin-bottom:18px;color:#555;font-size:14px}
.ip-narrow input,.ip-narrow select{width:100%;padding:13px;border:1px solid #ccc;border-radius:8px;font-size:14px;margin-top:6px;background:#fafafa}
.ip-proopts{text-align:right;margin:10px 0}
.ip-proopts a{color:#2563eb;text-decoration:none}
.ip-searchrow{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-top:1px solid #eee;text-decoration:none;color:#111}
.ip-searchrow:first-child{border-top:none}
.ip-create{color:#333}
.ip-linkform{display:flex;gap:6px;align-items:center}
.ip-linkform select{padding:7px;border:1px solid #ccc;border-radius:6px}
.ip-sticker{border:2px dashed #999;border-radius:10px;padding:24px;text-align:center;margin:16px 0;line-height:2}
.ip-sticker-priority{font-weight:700;color:#b00020;letter-spacing:1px}
.ip-sticker-id{font-family:"SF Mono",Menlo,Consolas,monospace;font-size:18px;font-weight:600}

/* ---- Modals ---- */
.ip-modal{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:24px}
.ip-modal[hidden]{display:none}
.ip-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.ip-modal-dialog{position:relative;background:#fff;border-radius:14px;padding:28px 32px;
  width:100%;max-width:820px;max-height:90vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.ip-modal-dialog h1{font-family:"SF Mono",Menlo,Consolas,monospace;font-size:18px;
  letter-spacing:.04em;margin-bottom:20px}
.ip-modal-dialog label{display:block;margin-bottom:16px;color:#555;font-size:14px}
.ip-modal-dialog input,.ip-modal-dialog select{width:100%;padding:12px;border:1px solid #ccc;
  border-radius:8px;font-size:14px;margin-top:6px;background:#fafafa}
.ip-modal-x{position:absolute;top:14px;right:16px;background:none;border:none;font-size:24px;
  line-height:1;color:#888;cursor:pointer}
.ip-modal-x:hover{color:#111}
.ip-add{color:#2563eb;font-size:13px}
.ip-searchrow:hover{background:#fafafa}

/* ---- Portal button/focus normalization (no red) ---- */
body:has(.ip-header) input:focus,
body:has(.ip-header) select:focus,
body:has(.ip-header) textarea:focus,
body:has(.pshell) input:focus,
body:has(.pshell) select:focus,
body:has(.pshell) textarea:focus{outline:none;border-color:#9a9a9a;box-shadow:0 0 0 3px rgba(0,0,0,.06)}
body:has(.plogin) input:focus{outline:none;border-color:var(--p-accent);box-shadow:0 0 0 3px rgba(0,156,218,.14)}
.ip-modal-x, .ip-modal-x:hover{background:none}
.btn-link, .btn-link:hover{background:none;color:#2563eb}
.btn-dark-sm:hover{background:#000}
.btn-gray, .btn-gray:hover{color:#111}

[hidden]{display:none !important}
.ip-inline{display:inline-block;margin-left:10px}
.btn-gray.active{background:#111;color:#fff;border-color:#111}
.ip-check{display:flex;align-items:center;gap:8px}
.ip-check input{width:auto;margin:0}
.ip-check{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:14px}
.ip-inline-form{display:inline-flex;align-items:flex-end;gap:8px;margin-right:24px}
.ip-preset-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.ip-preset-form input{padding:8px 10px;border:1px solid #ddd;border-radius:6px}
.ip-move{display:inline-flex;gap:4px;margin-left:8px;vertical-align:middle}
.ip-move button{min-width:30px;text-align:center}
.ip-suggest{border:1px solid #ddd;border-radius:8px;margin:-4px 0 12px;max-height:220px;overflow-y:auto;background:#fff;box-shadow:0 4px 12px rgba(16,24,40,.08)}
.ip-suggest-row{display:block;width:100%;text-align:left;background:#fff;color:#111;border:none;border-bottom:1px solid #f0f0f0;border-radius:0;padding:10px 12px;font-size:13px;font-weight:400;cursor:pointer}
.ip-suggest-row:hover{background:#f2f5fa}
.ip-suggest-row:last-child{border-bottom:none}


/* ---- Portal design system ----
   Kept last so its rules win ties against the older global and ip- styles above.
   Adding new portal CSS anywhere earlier will be silently overridden. ---- */

/* ---- Portal shell: top nav bar + left sidebar (reusable chrome) ---- */
:root {
  --p-accent: #009cda;
  --p-line: #dfe3e8;
  --p-ink: #111418;
  --p-dim: #8b929b;
  --p-side-w: 350px;
  --p-canvas: #f7f8fa;
  --p-cardline: #cccccc;
  --p-action-bg: #f6f6f6;
  --p-login-bg: #f4f4f4;
  --p-font-display: "DIN 2014", "DIN Next", "DIN Pro", "Helvetica Neue", Arial, sans-serif;
}

body:has(.pshell) { background: #fff; }
body:has(.plogin) { background: var(--p-login-bg); }

/* Sign-in screen */
.plogin { min-height: 100vh; display: flex; flex-direction: column; }
.plogin-main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 88px 20px 60px;
}
.plogin-logo { width: 100%; max-width: 420px; height: auto; display: block; margin-bottom: 52px; }
.plogin-card { width: 100%; max-width: 380px; margin: 0; display: flex; flex-direction: column; }
.plogin-label {
  display: block; margin: 0 0 6px;
  font-family: var(--p-font-display);
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: #333;
}
.plogin-card input {
  width: 100%; margin: 0 0 18px; padding: 11px 12px;
  border: 1px solid var(--p-cardline); border-radius: 3px;
  background: #fff; font-size: 13px;
}
.plogin-card input::placeholder { color: #9aa0a8; }
.plogin-pw { position: relative; margin-bottom: 18px; }
.plogin-pw input { margin-bottom: 0; padding-right: 38px; }
.plogin-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 0; padding: 5px;
  color: #8b929b; cursor: pointer; line-height: 0;
}
.plogin-eye:hover { background: none; color: var(--p-ink); }
.plogin-submit {
  width: 100%; margin: 4px 0 16px; padding: 11px;
  background: transparent; color: var(--p-accent);
  border: 1px solid var(--p-accent); border-radius: 3px;
  font-family: var(--p-font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; cursor: pointer;
}
.plogin-submit:hover { background: rgba(0, 156, 218, .08); color: var(--p-accent); }
.plogin-link {
  align-self: center; background: none; border: none; padding: 2px;
  color: var(--p-accent); font-size: 12px; cursor: pointer; text-decoration: none;
}
.plogin-link:hover { background: none; color: #0086ba; text-decoration: underline; }
.plogin-rule { width: 100%; border: none; border-top: 1px solid var(--p-cardline); margin: 22px 0 16px; }
.plogin-error {
  margin-bottom: 18px; padding: 10px 12px; border-radius: 3px;
  background: var(--err-bg); color: var(--err); font-size: 12px;
}

.pshell { height: 100vh; display: flex; flex-direction: column; }
.pshell-body { flex: 1; display: flex; min-height: 0; }
.pshell-main {
  flex: 1; min-width: 0; overflow-y: auto; background: var(--p-canvas);
  scrollbar-width: thin; scrollbar-color: #c4c8cd #efefef;
}
.pshell-main::-webkit-scrollbar { 
  width: 20px;
}
.pshell-main::-webkit-scrollbar-track { background: #E6E6E6; }
.pshell-main::-webkit-scrollbar-thumb {
  background: #B3B3B3; border-radius: 6px; border: 3px solid #B3B3B3;
}
.pshell-main::-webkit-scrollbar-thumb:hover { background: #adb2b8; }
.pshell-main.is-padded { padding: 22px 26px 44px; }
.pshell-main .alerts { margin: 16px 20px 0; }

/* Top nav bar */
.pnav {
  display: flex; align-items: stretch; justify-content: space-between;
  height: 50px; padding: 10px 20px;
  border-bottom: 1px solid var(--p-cardline); background: #fff;
  font-family: var(--p-font-display);
  font-size: 20px; line-height: 24px; letter-spacing: -.01em; text-transform: uppercase;
  white-space: nowrap; overflow-x: auto;
}
.pnav-group { display: flex; align-items: stretch; }
.pnav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px; border-right: 1px solid var(--p-cardline); color: var(--p-dim);
}
.pnav-group:first-child .pnav-item:first-child { padding-left: 0; }
.pnav-group:last-child .pnav-item:last-child { padding-right: 0; border-right: none; }
.pnav-strong { color: var(--p-ink); font-weight: 600; }
.pnav-regular { color: var(--p-ink); font-weight: 400; }
.pnav-lead { color: #808080; font-weight: 400; }
.pnav-lead span { font-weight: 600; }
.pnav-status { color: #78be20; font-weight: 600; }
.pnav-status.is-off { color: #808080; }
.pnav-machine { color: var(--p-ink); font-weight: 400; }
.pnav-machine span { font-weight: 600; }
.pnav-dot { width: 9px; height: 9px; border-radius: 50%; background: #78be20; flex: none; }
.pnav-dot.is-off { background: #808080; }

/* Sidebar */
.pside {
  width: var(--p-side-w); max-width: var(--p-side-w); flex: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 50px; border-right: 1px solid var(--p-cardline); background: var(--p-canvas);
}
.pside-top { display: flex; flex-direction: column; }
.pside-logo { display: block; padding: 0; }
.pside-logo img { width: 100%; max-width: 250px; height: auto; display: block; }
.pside-nav { display: flex; flex-direction: column; gap: 20px; margin-top: 34px; padding: 0; }
.pside-link {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--p-line);
  color: var(--p-accent); text-decoration: none;
  font-family: var(--p-font-display);
  font-size: 24px; font-weight: 700; line-height: 20px;
  letter-spacing: -.025em; text-transform: uppercase;
}
.pside-nav > .pside-link:first-child { border-top: 1px solid var(--p-line); padding-top: 10px; }
.pside-link:hover { color: #0086ba; }
.pside-link.is-active { color: var(--p-ink); font-size: 24px; line-height: 25px; }
.pside-foot {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0;
}
.pside-user {
  color: var(--p-accent); font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
  text-transform: uppercase; text-align: right;
}
.pside-logout { display: inline-flex; }
.pside-logout img { width: 16px; height: 16px; display: block; }

/* Customers page */
.pc-toolbar {
  display: flex; align-items: stretch; gap: 0; flex-wrap: wrap;
  background: #f6f6f6; border-bottom: 1px solid var(--p-line);
}
.pc-filters {
  display: inline-flex; align-items: center; gap: 10px; min-height: 24px;
  background: none; border: none; padding: 0; font: inherit; font-size: 20px; cursor: pointer;
}
.pc-filters:hover { background: none; }
.pc-dots { color: var(--p-accent); flex: none; }
.pc-filters-label { color: var(--p-accent); font-weight: 600; }
.pc-filters-value { color: #6b7280; }

.pc-search { position: relative; margin: 0 0 0 auto; flex: 0 1 auto; min-width: 0; }
.pc-search input {
  width: 240px; height: 100%; margin: 0; padding: 8px 42px 8px 12px;
  border: 1px solid #d7dade; border-radius: 4px; background: #fff;
  font-family: var(--p-font-display);
  font-size: 20px; font-weight: 400; line-height: 24px; letter-spacing: -.01em;
}
.pc-search input::placeholder { color: #9aa0a8; }
.pc-search img {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; pointer-events: none;
}
.pc-search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 0; padding: 6px; cursor: pointer;
}
.pc-search button:hover { background: none; }
.pc-search button img { position: static; transform: none; }

.pc-new {
  display: inline-flex; align-items: center; gap: 9px; flex: none; text-decoration: none;
  background: var(--p-accent); color: #fff; border: none; border-radius: 4px;
  padding: 9px 16px; font-family: var(--p-font-display);
  font-size: 20px; font-weight: 400; line-height: 24px; letter-spacing: -.01em;
  text-transform: uppercase; cursor: pointer;
}
.pc-new:hover { background: #0087bd; }
.pc-new img { width: 20px; height: 20px; flex: none; }
.pc-new svg { width: 20px; height: 20px; flex: none; }
.pc-sync { display: contents; }

.pcu-card {
  display: block; padding: 20px;
  background: #fff; border: 1px solid var(--p-cardline); border-radius: 4px;
  text-decoration: none;
}
.pcu-card:hover { border-color: #b4b8bd; }
.pcu-name {
  display: block; margin-bottom: 5px; color: var(--p-accent);
  font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
}
.pcu-meta {
  display: flex; flex-wrap: wrap; align-items: center; color: #000000;
  font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
}
.pcu-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcu-meta span + span { border-left: 1px solid var(--p-cardline); margin-left: 9px; padding-left: 9px; }

.pc-list { padding: 18px 20px 40px; }
.pc-row {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 2.7fr);
  align-items: center;
  padding: 13px 18px; margin-bottom: 10px;
  background: #fff; border: 1px solid #e6e8eb; border-radius: 5px;
  text-decoration: none; color: #4a4f57;
}
.pc-row:hover { border-color: #c9ccd1; }
.pc-name { color: var(--p-accent); font-size: 14px; font-weight: 700; }
.pc-cell {
  padding-left: 16px; font-size: 12px; color: #4a4f57;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-cell + .pc-cell { border-left: 1px solid #e6e8eb; }
.pc-empty { color: var(--p-dim); font-size: 13px; padding: 8px 2px; }

/* Tunes page */
.pt-filters { position: relative; }
.pt-filters > summary {
  display: flex; align-items: center; gap: 10px; min-height: 24px;
  padding: 10px 14px;
  font-size: 20px; cursor: pointer; list-style: none;
}
.pt-filters > summary::-webkit-details-marker { display: none; }
.pt-filters-menu {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: 0;
  min-width: 196px; margin: 0; padding: 0; background: #fff;
  border: 1px solid var(--p-cardline); box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}
.pt-filters > summary .pt-filters-x { display: none; width: 13px; height: 13px; }
.pt-filters[open] > summary .pc-dots { display: none; }
.pt-filters[open] > summary .pt-filters-x { display: block; }
.pt-filter-opt {
  display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px; cursor: pointer; background: #fff;
  border-bottom: 1px solid var(--p-cardline);
  font-family: var(--p-font-display); font-size: 16px; font-weight: 600;
  line-height: 20px; letter-spacing: -.01em; text-transform: uppercase;
  color: var(--p-accent); text-decoration: none;
}
.pt-filter-opt:last-child { border-bottom: none; }
.pt-filter-opt.is-on { background: #fff; }
.pt-filter-opt:hover, .pt-filter-opt.is-on:hover {
  background: rgba(0, 156, 218, .05); text-decoration: underline;
}
.ip-modal.pscan-wrap { padding: 24px; }
.pscan-dialog {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: 100%; max-width: 1100px; height: 100%; max-height: 860px;
  background: #fff; border-radius: 2px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.pscan-head {
  display: flex; align-items: center; gap: 14px; flex: none;
  padding: 18px 24px; border-bottom: 1px solid var(--p-cardline);
  font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  color: var(--p-ink); text-transform: uppercase;
}
.pscan-title {
  color: var(--p-ink); font-size: 20px; font-weight: 600; line-height: 24px;
  white-space: nowrap;
}
.pscan-meta { white-space: nowrap; }
.pscan-title + .pscan-meta:not(:empty),
.pscan-meta:not(:empty) + .pscan-meta:not(:empty) {
  border-left: 1px solid var(--p-cardline); padding-left: 14px;
}
.pscan-cust { color: var(--p-accent); font-weight: 600; }
.pscan-x {
  margin-left: auto; flex: none; padding: 0;
  background: none; border: none; border-radius: 0; cursor: pointer;
}
.pscan-x:hover { background: none; }
.pscan-x img { width: 15px; height: 15px; }
.pscan-frame { flex: 1; min-height: 0; width: 100%; border: 0; }
.pscan-fallback {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; margin: 0; padding: 40px; text-align: center; color: #4a4f57;
  font-family: var(--p-font-display); font-size: 16px;
}
.pscan-fallback p { margin: 0; }
.pscan-fallback a {
  color: var(--p-accent); text-decoration: none;
  font-weight: 600; text-transform: uppercase;
}
.pscan-fallback a:hover { text-decoration: underline; }

.pt-filter-opt.is-radio.is-on { background: #e8f5fc; }
.pt-filter-opt.is-radio input {
  border-radius: 50%; background-image: none;
}
.pt-filter-opt.is-radio input:checked {
  background-image: none;
  box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 20px var(--p-ink);
}
.pt-filter-range {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 10px; border-top: 1px solid var(--p-cardline); background: #fff;
  font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
}
.pt-range-label {
  margin: 6px 0 2px; color: #000000; font-family: var(--p-font-display);
  font-size: 13px; font-weight: 400; letter-spacing: -.01em; text-transform: uppercase;
}
.pt-filters-menu:has(.pt-filter-range) { min-width: 330px; }
.pt-range-row { display: flex; gap: 8px; }
.pt-range-row select {
  flex: 1; min-width: 0; margin: 0; padding: 7px 8px;
  border: 2px solid var(--p-cardline); border-radius: 2px; background: #fff;
  color: var(--p-ink); font-family: var(--p-font-display);
  font-size: 15px; font-weight: 400; letter-spacing: -.01em;
}
.pt-range-row select:has(option[value=""]:checked) { color: #808080; }
.pt-range-row option { color: var(--p-ink); }
.pt-filter-opt input, .pnt-consent input {
  appearance: none; -webkit-appearance: none;
  width: 36px; height: 36px; margin: 0; padding: 10px; flex: none;
  background: #fff no-repeat center / 16px 16px;
  border: 2px solid var(--p-cardline); border-radius: 2px; cursor: pointer;
}
.pt-filter-opt input:checked, .pnt-consent input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l4 4 7-8' fill='none' stroke='%23111418' stroke-width='2.2'/%3E%3C/svg%3E");
}
.pt-filter-opt input:focus-visible, .pnt-consent input:focus-visible {
  outline: 2px solid var(--p-accent); outline-offset: 1px;
}

.pt-grid, .pcu-grid, .psc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px; padding: 18px 20px 40px; align-items: stretch; grid-auto-rows: 1fr;
}
.pt-card, .psc-card {
  margin: 0; padding: 0; box-shadow: none; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--p-cardline); border-radius: 4px;
}
.psc-body { display: flex; flex-direction: column; gap: 2px; padding: 20px; flex: 1 1 auto; }
.psc-card .pt-actions { background: #fff; }
.psc-card .pt-actions > :first-child {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
  background: var(--p-action-bg); border-right: 1px solid var(--p-cardline);
}
.psc-card .pt-card-head { align-items: flex-start; }
.psc-card .pt-ref {
  font-size: 20px; font-weight: 400; line-height: 24px; letter-spacing: -.01em;
}
.psc-card .pt-action { padding: 10px; }
.psc-card .pt-actions > :first-child { font-weight: 600; }
.psc-name {
  color: var(--p-accent); font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
}
.psc-name.is-empty { color: #8b929b; font-weight: 400; }
.psc-meta, .psc-tune {
  display: flex; flex-wrap: wrap; align-items: center;
  font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  color: #000000;
}
.psc-tune strong { font-weight: 600; }
.psc-meta.is-empty { color: #8b929b; }
.psc-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psc-meta span + span { border-left: 1px solid var(--p-cardline); margin-left: 9px; padding-left: 9px; }
.psc-tune { gap: 5px; }
.pt-pill.s-UNLINKED { background: #ffa91f1a; color: #ffa91f; }
.pt-action.is-muted { color: var(--p-accent); cursor: default; }
.pt-body { display: flex; flex-direction: column; gap: 5px; padding: 20px; flex: 1 1 auto; }
.pt-card-head { display: flex; align-items: flex-start; gap: 8px; }
.pt-ref {
  flex: 1; min-width: 0; color: var(--p-accent); text-decoration: none;
  font-family: var(--p-font-display);
  font-size: 20px; font-weight: 400; line-height: 24px; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pt-ref-name { font-weight: 600; }
.pt-move {
  display: inline-flex; gap: 2px; margin: 0; flex: none;
  opacity: 0; transition: opacity .12s;
}
.pt-card:hover .pt-move, .pt-move:focus-within { opacity: 1; }
.pt-move button {
  background: none; border: 1px solid var(--p-line); border-radius: 3px;
  color: #8b929b; font-size: 10px; line-height: 1; padding: 2px 4px; cursor: pointer;
}
.pt-move button:hover { background: #f1f3f5; color: var(--p-ink); }

.pt-pill {
  flex: none; margin: -20px -20px 0 auto; padding: 5px 10px;
  border-radius: 0 4px 0 0;
  font-family: var(--p-font-display);
  font-size: 16px; font-weight: 600; line-height: 20px; letter-spacing: -.01em;
  text-transform: uppercase; text-align: right;
  background: #ececec; color: #6b7280;
}
.pt-pill.s-READY_FOR_TUNING { background: #78be201a; color: #78be20; }
.pt-pill.s-TUNING_IN_PROGRESS { background: #ffa91f1a; color: #ffa91f; }
.pt-pill.s-TUNING_DONE { background: #009cda1a; color: var(--p-accent); }
.pt-pill.s-PAID { background: #78be201a; color: #78be20; }
.pt-pill.s-CANCELLED { background: #fdecea; color: #b42318; }

.pt-spec, .pt-date {
  font-family: var(--p-font-display);
  font-weight: 400; letter-spacing: -.01em;
  color: #000000;
}
.pt-spec {
  display: flex; flex-wrap: wrap; align-items: center;
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
}
.pt-spec span + span { border-left: 1px solid var(--p-cardline); margin-left: 9px; padding-left: 9px; }
.pt-brand { text-transform: uppercase; }
.pt-date { font-size: 14px; font-weight: 400; line-height: 16px; letter-spacing: .01em; }

.pt-actions {
  display: flex; align-items: stretch; flex-wrap: wrap;
  background: var(--p-action-bg); border-top: 1px solid var(--p-cardline);
}
.pt-actions > * { flex: none; min-width: 0; }
.pt-actions .pt-date {
  flex: 1; min-width: 0; display: flex; align-items: center; padding: 9px 14px;
}
.pt-actions .pt-action { border-left: 1px solid var(--p-cardline); }
.pt-action-form { display: flex; margin: 0; padding: 0; }
.pt-ico { width: 14px; height: 14px; flex: none; }
.pt-action {
  display: inline-flex; align-items: center; justify-content: flex-start;
  gap: 10px; white-space: nowrap;
  background: #ffffff; border: none; border-radius: 0; padding: 9px 16px;
  color: var(--p-accent); font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.pt-action-form .pt-action { width: 100%; }
.pt-action:hover { background: #ededed; color: #0086ba; }
.pt-action.is-danger { color: var(--p-accent); }
.pt-action.is-danger:hover { background: #fdf3f2; color: #b42318; }
.pt-glyph { font-size: 12px; }

/* Sidebar sub-navigation */
.pside-link:has(+ .pside-sub) { border-bottom: none; padding-bottom: 0; }
.pside-sub {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: -8px; padding: 0 0 10px 14px;
  border-bottom: 1px solid var(--p-line);
}
.pside-sublink {
  display: inline-flex; align-items: center; align-self: flex-start;
  color: var(--p-accent); text-decoration: none;
  font-family: var(--p-font-display); font-size: 20px; font-weight: 400;
  line-height: 24px; letter-spacing: -.01em;
}
.pside-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 9px;
  background: #78be20; color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0;
}
.pside-sublink:hover { color: #0086ba; }
.pside-sublink.is-active { color: var(--p-ink); }

/* Delete confirmation modal */
.pdel-dialog {
  position: relative; width: 50%;
  padding: 40px 40px 30px; background: #fff; border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.pdel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0; padding: 20px 0;
}
.pdel-x {
  flex: none; padding: 0; background: none; border: none; border-radius: 0;
  color: var(--p-accent); font-size: 24px; line-height: 1; cursor: pointer;
}
.pdel-x:hover { background: none; color: #0086ba; }
.pdel-title {
  margin: 0; color: var(--p-ink); font-family: var(--p-font-display);
  font-size: 24px; font-weight: 700; line-height: 20px; letter-spacing: -.025em;
  text-transform: uppercase;
}
.pdel-lead {
  margin: 0 0 6px; color: #000000; font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
}
.pdel-note {
  margin: 0 0 18px; color: #4a4f57; font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
}
.pdel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdel-actions form { margin: 0; display: flex; }
.pdel-actions .pnt-btn { width: 100%; white-space: nowrap; }

/* New Tune page */
.pnt { max-width: 980px; margin: 0 auto; }
.pnt-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pnt-title {
  margin: 0; font-family: var(--p-font-display);
  font-size: 36px; font-weight: 700; line-height: 28px; letter-spacing: -.025em;
  text-align: right; text-transform: uppercase;
}
.pnt-card {
  background: transparent; border: 1px solid var(--p-cardline); border-radius: 4px;
  padding: 30px; margin: 0 0 16px;
}
.pnt-card-title {
  margin: 0 0 16px; color: var(--p-ink); font-family: var(--p-font-display);
  font-size: 24px; font-weight: 700; line-height: 20px; letter-spacing: -.025em;
  text-transform: uppercase;
}
.pnt-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.pnt-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.pnt-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.pnt-field { display: block; margin: 0; }
.pnt-label {
  display: block; margin: 0 0 6px; color: #8b929b; font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  text-transform: uppercase;
}
.pnt-value {
  display: block; color: #000000; font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
}
.pnt-field select, .pnt-field input {
  width: 100%; margin: 0; padding: 9px 12px;
  border: 2px solid var(--p-cardline); border-radius: 3px; background: #fff;
}
.pnt-field select, .pnt-field select option, .pnt-field input {
  font-family: var(--p-font-display);
  font-size: 20px; font-weight: 300; line-height: 24px; letter-spacing: -.01em;
}
.pnt-field input::placeholder { color: #9aa0a8; }
/* Side drawer */
.ip-modal.pdrawer-wrap { align-items: stretch; justify-content: flex-end; padding: 0; }
.pdrawer {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: 100%; max-width: 380px; height: 100vh; background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
}
.pdrawer-head {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--p-cardline);
}
.pdrawer-headrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdrawer-title {
  margin: 0; color: var(--p-ink); font-family: var(--p-font-display);
  font-size: 24px; font-weight: 700; line-height: 20px; letter-spacing: -.025em;
  text-transform: uppercase;
}
.pdrawer-x {
  display: inline-flex; padding: 4px; background: none; border: none; border-radius: 0;
  cursor: pointer; line-height: 0;
}
.pdrawer-x:hover { background: none; }
.pdrawer-x img { width: 13px; height: 13px; }
.pdrawer-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 14px 16px 24px; background: var(--p-action-bg);
}
.pdrawer-count {
  margin: 14px 0 10px; color: #8b929b; font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
}
.pdrawer-card { margin-bottom: 10px; border: 1px solid var(--p-cardline); border-radius: 3px; }
.pdrawer-card-body {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 12px; background: #ffffff;
}
.pdrawer-name {
  color: #000000; font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
}
.pdrawer-meta {
  display: flex; flex-wrap: wrap; align-items: center; color: #000000;
  font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
}
.pdrawer-meta span + span {
  border-left: 1px solid var(--p-cardline); margin-left: 8px; padding-left: 8px;
}
.pdrawer-card-foot {
  display: flex; align-items: stretch; border-top: 1px solid var(--p-cardline);
}
.pdrawer-foot-fill { flex: 1; min-width: 0; background: var(--p-canvas); }
.pdrawer-foot-action { flex: none; padding: 7px 12px; background: #ffffff; }
.pdrawer-link {
  padding: 0; background: none; border: none; border-radius: 0; cursor: pointer;
  color: var(--p-accent); font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  text-transform: uppercase;
}
.pdrawer-link:hover { background: none; color: #0086ba; text-decoration: underline; }

/* Customer profile */
.pcp-cardtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pcp-meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap;
  margin-top: -2px; color: #4a4f57; font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  text-align: right;
}
.pcp-sms { font-weight: 600; }
.pcp-sep { color: var(--p-cardline); }
.pcp-consent { display: inline-flex; margin: 0; }
.pcp-consent button {
  background: none; border: none; border-radius: 0; padding: 0;
  color: var(--p-accent); font-size: 11px; cursor: pointer;
}
.pcp-consent button:hover { background: none; text-decoration: underline; }
.pcp-actions { margin-top: 16px; }
.pcp-actions .pnt-btn { width: 100%; }

.pcp-row { margin-top: 12px; border: 1px solid var(--p-cardline); border-radius: 3px; }
.pcp-row-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 20px; color: var(--p-accent); font-family: var(--p-font-display);
  font-size: 20px; font-weight: 400; line-height: 24px; letter-spacing: -.01em;
  background-color: white;
}
.pcp-row-head a { color: var(--p-accent); text-decoration: none; }
.pcp-row-title, .pcp-row-link { color: var(--p-accent); }
.pcp-row-head .pt-spec { font-weight: 400; }
.pcp-row-foot {
  display: flex; align-items: stretch; padding: 0;
  background: var(--p-action-bg); border-top: 1px solid var(--p-cardline);
}
.pcp-row-foot > * { flex: none; }
.pcp-row-foot .pcp-row-meta {
  flex: 1; min-width: 0; display: flex; align-items: center; padding: 9px 14px;
}
.pcp-row-meta {
  color: #4a4f57; font-family: var(--p-font-display);
  font-size: 14px; font-weight: 600; line-height: 16px; letter-spacing: .01em;
}
.pcp-pipe { font-weight: 400; }
.pcp-inline { display: inline-flex; margin: 0; }
.pcp-link {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: #ffffff; border: none; border-left: 1px solid var(--p-cardline);
  border-radius: 0; padding: 9px 16px; cursor: pointer;
  color: var(--p-accent); font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  text-transform: uppercase;
}
.pcp-link:hover { background: #ededed; color: #0086ba; }
.pcp-delete {
  display: block; width: 100%; margin: 16px auto 0; padding: 4px;
  background: none; border: none; color: var(--p-accent); cursor: pointer;
  font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
  text-align: center;
}
.pcp-delete:hover { background: none; text-decoration: underline; }

.pnt-typeahead { position: relative; }
.pnt-results-float {
  position: absolute; z-index: 30; top: 100%; left: 0;
  width: 100%; margin-top: 0;
}
.pnt-field.pnt-typeahead .pnt-results-float { width: calc(300% + 32px); }
.pnt-hint { margin: 12px 0 0; font-size: 11px; color: var(--p-accent); }
.pnt-consent {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  margin: 16px 0 0; color: var(--p-ink); font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  text-transform: uppercase;
}

.pnt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 2px; cursor: pointer; text-decoration: none;
  font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: .05em;
  text-transform: uppercase;
}
.pnt-head .pnt-btn { min-width: 150px; white-space: nowrap; }
.pnt-btn-arrow { flex: none; margin-right: 8px; font-size: 1.5em; line-height: 1; margin-bottom: 7px; }
.pnt-btn:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 1px; }
.pnt-btn.is-outline { background: transparent; color: var(--p-accent); border: 2px solid var(--p-accent); }
.pnt-btn.is-outline:hover { background: rgba(0, 156, 218, .08); color: var(--p-accent); }
.pnt-btn.is-solid { background: #111418; color: #fff; border: 2px solid #111418; }
.pnt-btn.is-solid:hover { background: #000; color: #fff; }
.pnt-btn:disabled, .pnt-btn:disabled:hover {
  background: #9a9a9a; color: #fff; border-color: #9a9a9a; cursor: not-allowed;
}
.pnt-btn-block { width: 100%; }
.pnt-btn.is-loading { pointer-events: none; opacity: .85; }
.pnt-btn.is-loading::before {
  content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 9px;
  vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: pc-spin .6s linear infinite;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }
.pnt-submit { margin-top: 6px; padding: 13px; }
.pnt-cancel {
  display: block; margin-top: 12px; text-align: center;
  color: var(--p-accent); text-decoration: none; font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
}
.pnt-cancel:hover { text-decoration: underline; }

.pnt-searchbox { position: relative; }
.pnt-searchbox input {
  width: 100%; margin: 0; padding: 10px 44px 10px 12px;
  font-size: 20px; line-height: 24px;
  border: 1px solid var(--p-cardline); border-radius: 3px; background: #fff;
}
.pnt-searchbox img {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; pointer-events: none;
}
.pnt-results {
  margin-top: 0; max-height: 260px; overflow-y: auto; background: #fff;
  border: 2px solid var(--p-cardline); border-radius: 2px;
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, .25);
}
.pnt-result {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: center; gap: 20px;
  width: 100%; padding: 10px 20px; text-align: left; color: #000000;
  font-family: var(--p-font-display);
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
  background: #fff; border: none; border-bottom: 1px solid #eee; border-radius: 0; cursor: pointer;
}
.pnt-result:last-child { border-bottom: none; }
.pnt-result:hover { background: #eaf6fc; color: #000000; }
.pnt-result-name {
  color: var(--p-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -.01em;
}
.pnt-result:hover .pnt-result-name { text-decoration: underline; }
.pnt-result-meta {
  color: #4a4f57; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
}
.pnt-result-meta:nth-child(2) { text-align: center; }
.pnt-result-meta:last-child { text-align: right; }

.pnt-typerow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pnt-typerow .pnt-btn { width: 100%; }
.pnt-presets { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pnt-preset { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pnt-preset .pnt-btn { white-space: nowrap; }
.pnt-preset[hidden] { display: none; }
.pnt-preset .pnt-btn { width: 100%; }
.pnt-preset-meta {
  color: #4a4f57; font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  text-align: center;
}
.pnt-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pnt-actions .pnt-btn { width: 100%; }
.pnt-count { display: inline; margin-left: 6px; color: #8b929b; font-size: 14px; font-weight: 400; }
.pnt-formgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.pnt-inline-select { margin: 0; }
.pnt-slot-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 16px; align-items: end; margin-bottom: 20px;
}
.pnt-slot-delete {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: none; white-space: nowrap; margin: 0; height: 44px; padding: 0 6px;
  background: none; border: none; border-radius: 0;
  color: var(--p-accent); cursor: pointer; font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; line-height: 20px; letter-spacing: -.01em;
  text-transform: uppercase;
}
.pnt-slot-delete:hover { background: none; opacity: .7; }

/* blue chevron on portal selects — must sit after the rules whose
   `background` shorthand would otherwise reset background-image */
.pnt-field select,
.pt-range-row select {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23009cda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 8px;
}
.pnt-add-preset { margin-top: 20px; }
.pnt-slot-title {
  margin: 20px 0 10px; color: var(--p-ink); font-family: var(--p-font-display);
  font-size: 16px; font-weight: 600; line-height: 20px; letter-spacing: -.01em;
  text-transform: uppercase;
}
.pnt-card > form > .pnt-slot-title:first-child { margin-top: 0; }
.pnt-sticker { max-width: 460px; }
.pnt-sticker .pnt-card { text-align: center; }
.pnt-sticker .pnt-value { margin: 2px 0; }
.pnt-sticker-foot { margin-top: 16px; }
.pnt-sticker-id {
  font-family: var(--p-font-display); font-size: 26px; font-weight: 700;
  letter-spacing: -.02em; word-break: break-all; margin: 6px 0 14px; color: #000;
}
.pnt-priority {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--p-font-display); font-size: 13px; font-weight: 700; text-transform: uppercase;
  background: #009cda1a; color: var(--p-accent);
}

@media (max-width: 860px) {
  .pnt-formgrid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .pc-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr); }
  .pc-row .pc-cell:last-child { grid-column: 1 / -1; border-left: none; padding-left: 0; margin-top: 8px; }
}

@media (max-width: 860px) {
  .pshell { height: auto; min-height: 100vh; }
  .pshell-main { overflow-y: visible; }
  .pc-toolbar { flex-wrap: wrap; }
  .pc-search { margin-left: 0; flex: 1; }
  .pc-search input { width: 100%; }
  .pshell-body { flex-direction: column; }
  .pside {
    width: auto; border-right: none; border-bottom: 1px solid var(--p-line);
    padding: 16px 0; flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap;
  }
  .pside-nav { flex-direction: row; margin-top: 0; gap: 16px; flex: 1; padding: 0 16px; }
  .pside-link { margin: 0; border-bottom: none; padding: 4px 0; font-size: 18px; }
  .pside-link.is-active { font-size: 18px; }
  .pside-foot { margin-top: 0; }
  .pt-grid, .pcu-grid, .psc-grid { grid-template-columns: 1fr; }
  .pnt-grid3, .pnt-grid2, .pnt-grid4, .ip-grid2, .ip-grid3 { grid-template-columns: 1fr; }
  .pnt-typerow { grid-template-columns: 1fr; }
}

.pcp-relationship { display: grid; gap: 6px; margin-bottom: 14px; max-width: 240px; }
.pcp-relationship select {
  padding: 9px 12px; border: 2px solid var(--p-cardline); border-radius: 3px; background: #fff;
  font-family: var(--p-font-display); font-size: 18px; font-weight: 300;
}
.pcp-row-tag {
  margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: #f0f2f5;
  color: #6b7280; font-family: var(--p-font-display); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
}
#nt-player-wrap { display: grid; gap: 6px; margin: 14px 0; }
#nt-player {
  padding: 9px 12px; border: 2px solid var(--p-cardline); border-radius: 3px;
  background: #fff; width: 100%; font-family: var(--p-font-display);
  font-size: 18px; font-weight: 300;
}

/* ---- Management console ---- */
.pcon-top { justify-content: space-between; }
.pcon-side .pside-nav { margin-top: 16px; }
.pcon-sidelabel {
  margin: 14px 0 0; color: #8b929b; font-family: var(--p-font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.pcon-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.pcon-title {
  margin: 0; color: var(--p-ink); font-family: var(--p-font-display);
  font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.025em;
  text-transform: uppercase;
}
.pcon-plus { font-weight: 400; margin-right: 2px; }
.pcon-lead, .pcon-note { color: #6b7280; font-size: 14px; margin: 0 0 18px; }
.pcon-note { margin: 14px 0 0; font-size: 13px; }

.pcon-tablecard {
  background: #fff; border: 1px solid var(--p-cardline); border-radius: 4px; overflow: hidden;
}
.pcon-table { width: 100%; border-collapse: collapse; }
.pcon-table th {
  text-align: left; padding: 13px 18px; background: #f6f6f6;
  border-bottom: 1px solid var(--p-cardline);
  font-family: var(--p-font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #6b7280;
}
.pcon-table td {
  padding: 15px 18px; border-bottom: 1px solid var(--p-line); vertical-align: middle;
  font-family: var(--p-font-display); font-size: 17px; font-weight: 300; color: var(--p-ink);
}
.pcon-table tbody tr:last-child td { border-bottom: none; }
.pcon-table tbody tr:hover { background: #fafbfc; }
.pcon-table .pcon-strong { font-weight: 600; }
.pcon-table tr.is-dim td { opacity: .5; }
.pcon-num { text-align: right; font-variant-numeric: tabular-nums; }
.pcon-rowact-h { width: 1%; }
.pcon-rowact { white-space: nowrap; text-align: right; }
.pcon-rowact a, .pcon-linkbtn {
  color: var(--p-accent); text-decoration: none; font-family: var(--p-font-display);
  font-size: 16px; font-weight: 400; text-transform: uppercase; letter-spacing: -.01em;
  background: none; border: none; padding: 0; cursor: pointer;
}
.pcon-rowact a:hover, .pcon-linkbtn:hover { color: #0086ba; text-decoration: underline; }
.pcon-rowact form { display: inline; margin: 0 0 0 16px; }
.pcon-empty { padding: 28px 18px; text-align: center; color: #9aa0a8; font-style: normal; }

.pcon-pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.pcon-pill.is-on { background: #78be201a; color: #5a9100; }
.pcon-pill.is-off { background: #fdecea; color: #b42318; }

/* Console forms */
.pcon-form { max-width: 620px; }
.pcon-form .pnt-card { display: flex; flex-direction: column; gap: 18px; }
.pcon-field { display: flex; flex-direction: column; gap: 6px; }
.pcon-field select, .pcon-field input, .pcon-field textarea {
  width: 100%; margin: 0; padding: 10px 12px;
  border: 2px solid var(--p-cardline); border-radius: 3px; background: #fff;
  font-family: var(--p-font-display); font-size: 18px; font-weight: 300; color: var(--p-ink);
}
.pcon-field.is-check { flex-direction: row; }
.pcon-checklabel {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--p-font-display); font-size: 17px; color: var(--p-ink);
}
.pcon-checklabel input { width: 18px; height: 18px; margin: 0; }
.pcon-field ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pcon-field ul li label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.pcon-field ul li input { width: auto; }
.pcon-help { margin: 0; color: #9aa0a8; font-size: 13px; }
.pcon-fielderr { margin: 0; color: var(--err); font-size: 13px; }
.pcon-formerr { padding: 10px 12px; border-radius: 3px; background: var(--err-bg); color: var(--err); font-size: 14px; }
.pcon-formfoot { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.pcon-cancel, .pcon-back {
  color: var(--p-accent); text-decoration: none; font-family: var(--p-font-display);
  font-size: 17px; text-transform: uppercase; letter-spacing: -.01em;
}
.pcon-cancel:hover, .pcon-back:hover { color: #0086ba; text-decoration: underline; }
.pcon-backarrow { margin-right: 6px; }

/* Billing */
.pcon-period { display: flex; flex-direction: column; gap: 6px; }
.pcon-period select {
  padding: 8px 12px; border: 2px solid var(--p-cardline); border-radius: 3px; background: #fff;
  font-family: var(--p-font-display); font-size: 17px;
}
.pcon-statrow { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pcon-stat {
  flex: 1; min-width: 180px; background: #fff; border: 1px solid var(--p-cardline);
  border-radius: 4px; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
}
.pcon-statnum {
  font-family: var(--p-font-display); font-size: 42px; font-weight: 700;
  line-height: 1; letter-spacing: -.03em; color: var(--p-ink);
}
.pcon-statlbl { color: #8b929b; font-family: var(--p-font-display); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }

/* Console presets */
.pcon-presetcard { max-width: 760px; }
.pcon-slot {
  display: flex; align-items: flex-end; gap: 14px; padding: 14px 0;
  border-top: 1px solid var(--p-line);
}
.pcon-slot:first-of-type { border-top: none; }
.pcon-slotnum {
  flex: none; min-width: 120px; padding-bottom: 10px;
  font-family: var(--p-font-display); font-size: 17px; font-weight: 600; color: var(--p-ink);
}
.pcon-slotfields { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pcon-slotfields select {
  width: 100%; padding: 9px 12px; border: 2px solid var(--p-cardline); border-radius: 3px;
  background: #fff; font-family: var(--p-font-display); font-size: 17px; font-weight: 300;
}
.pcon-slotdel {
  flex: none; margin-bottom: 4px; width: 34px; height: 34px; border-radius: 3px;
  background: #fff; border: 1px solid var(--p-cardline); color: #9aa0a8; cursor: pointer;
}
.pcon-slotdel:hover { background: #fdecea; color: var(--err); border-color: var(--err); }
.pcon-addpreset {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  background: transparent; color: var(--p-accent); border: 1px solid var(--p-accent);
  border-radius: 4px; padding: 10px 18px; font-family: var(--p-font-display);
  font-size: 17px; cursor: pointer;
}
.pcon-addpreset:hover { background: rgba(0, 156, 218, .08); color: var(--p-accent); }

@media (max-width: 720px) {
  .pcon-side { padding: 28px; }
  .pcon-slot { flex-wrap: wrap; }
  .pcon-slotfields { grid-template-columns: 1fr; }
  .pcon-table th, .pcon-table td { padding: 11px 12px; font-size: 15px; }
}

/* Cascading tune-settings dropdowns: locked until their dependency is met */
.pnt-field select:disabled {
  background: #f1f2f4; color: #9aa0a8; border-color: #e3e5e9;
  cursor: not-allowed; opacity: 1;
}
