/* Comments stripped at deploy by scripts/strip-css.mjs — the authored, fully-commented source is public/css/portal.css in the repo. */
 

 
:root {
  --bg:        #0e0e0e;    
  --bg-soft:   #1a1a1a;    
  --bg-mute:   #1f1f1f;    
  --card:      #1a1a1a;

   
  --ink:       #f2f4f7;    
  --text:      #dadde2;    
  --text-2:    #b4b9c0;    
  --muted:     #989ea6;    

   
  --border:    #2f2f2f;
  --border-2:  #6e7681;

   
  --brand:      #7cc0ff;   
  --brand-dark: #a5d5ff;   
  --brand-soft: #12202b;
  --accent:     #1273d6;   
  --accent-dark:#a5d5ff;

   
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.55);
  --shadow:    0 8px 22px -10px rgba(0,0,0,0.75);
  --shadow-lg: 0 30px 70px -24px rgba(0,0,0,0.85);
}

 
:root {
  --p-header:     #141414;   
  --p-field:      #262b33;   
  --p-ok:         #00c864;   
  --p-warn:       #ffaa00;   
  --p-err:        #ff8080;   
  --p-info:       #00aaff;   
  --p-purple:     #c194ff;   
}

 
 
.portal-header {
  background: var(--p-header); border-bottom: 1px solid #2a2a2a;
  position: sticky; top: 0; z-index: 100;
}
.portal-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.portal-header .brand-logo { height: 46px; width: auto; }
.portal-header .who { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-size: 14px; }
.portal-header .who .email { color: var(--ink); font-weight: 500; }
.portal-header .who a { color: var(--text-2); }
.portal-header .who a:hover { color: #fff; }
 
.btn-logout {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-2); background: transparent;
  color: var(--text-2); font-family: var(--font-head); font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 8px; transition: background .2s, border-color .2s, color .2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.07); border-color: var(--electric); color: var(--electric); }

 
.portal-main { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.portal-main.narrow { max-width: 760px; }
.portal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.portal-head h1 { font-size: clamp(26px, 4vw, 34px); }
.portal-head p { color: var(--text-2); margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 600; font-size: 14.5px; font-family: var(--font-head); margin-bottom: 18px; }
.back-link:hover { color: var(--brand-dark); }
.back-link svg { width: 16px; height: 16px; }

 
.auth-wrap {
   
  min-height: 100vh;
  min-height: 100svh;
  display: grid; place-items: center; padding: 40px 20px;
  position: relative; overflow: hidden;
  background: url('/assets/oklahoma-aerial-login-v1.jpg') center center / cover no-repeat;
   
  background-image: image-set(
    url('/assets/oklahoma-aerial-login-v1.avif') type('image/avif'),
    url('/assets/oklahoma-aerial-login-v1.webp') type('image/webp'),
    url('/assets/oklahoma-aerial-login-v1.jpg') type('image/jpeg')
  );
}
 
.auth-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(6,6,6,0.92) 0%, rgba(9,9,9,0.84) 48%, rgba(18,18,18,0.78) 100%);
}
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
   
  background: rgba(24,24,24,0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid #333333; border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.85);
  padding: 36px 34px;
  animation: authIn .5s var(--ease) both;
}
@keyframes authIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } }
.auth-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.auth-logo img { height: 54px; }
.auth-card h1 { text-align: center; font-size: 22px; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--text-2); font-size: 14.5px; margin-bottom: 22px; }
.auth-forgot { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.auth-forgot:hover { color: var(--brand); }
.auth-back { display: block; text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-back:hover { color: var(--brand); }
.auth-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); text-align: center; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.auth-note a { color: var(--brand); font-weight: 600; }
.auth-note a:hover { color: var(--brand-dark); }

 
.ticket-list { display: flex; flex-direction: column; gap: 12px; }
.ticket-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background .2s;
}
 
.ticket-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-2); background: var(--bg-mute); }
 
.ticket-row > div { min-width: 0; }
.ticket-row .num { font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 13px; }
.ticket-row .subj { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.ticket-row .meta { color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.ticket-row .when { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.ticket-row .new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 7px; vertical-align: middle; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: 12px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
 
.badge.open        { color: var(--p-info);   background: rgba(0,170,255,0.15);  box-shadow: inset 0 0 0 1px rgba(0,170,255,0.30); }    
.badge.in_progress { color: var(--p-warn);   background: rgba(255,170,0,0.15);  box-shadow: inset 0 0 0 1px rgba(255,170,0,0.30); }    
.badge.waiting     { color: var(--p-purple); background: rgba(170,102,255,0.16); box-shadow: inset 0 0 0 1px rgba(170,102,255,0.32); }  
.badge.resolved    { color: var(--p-ok);     background: rgba(0,200,100,0.15);  box-shadow: inset 0 0 0 1px rgba(0,200,100,0.30); }    
.badge.closed      { color: var(--text-2);   background: rgba(255,255,255,0.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }  

.empty-state { text-align: center; padding: 60px 20px; background: rgba(255,255,255,0.03); border: 1px dashed #3d3d3d; border-radius: var(--radius); }
.empty-state svg { width: 46px; height: 46px; color: var(--muted); margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--text-2); }

 
.ticket-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 28px; margin-bottom: 22px; }
.ticket-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
 
.ticket-card .top > div { min-width: 0; }
.ticket-card h1 { font-size: clamp(20px, 3vw, 26px); overflow-wrap: anywhere; }
.ticket-card .facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 18px; color: var(--text-2); font-size: 13.5px; }
.ticket-card .facts b { color: var(--ink); font-weight: 600; }
.ticket-card .desc { color: var(--text); font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; border-top: 1px solid var(--border); padding-top: 16px; }

.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.msg { max-width: 82%; padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.msg .head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 5px; }
.msg .who { font-family: var(--font-head); font-weight: 600; }
.msg .time { color: var(--muted); }
.msg .body { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
 
.msg.staff { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-top-left-radius: 4px; }
.msg.staff .who { color: var(--brand); }
.msg.customer { align-self: flex-end; background: rgba(47,166,255,0.12); border: 1px solid rgba(47,166,255,0.34); border-top-right-radius: 4px; }
.msg.customer .who { color: var(--brand-dark); }

.reply-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.reply-box h3 { font-size: 15px; margin-bottom: 12px; }

 
.portal-tabs { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.portal-tabs button { border: none; background: transparent; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--text-2); padding: 9px 22px; border-radius: 7px; cursor: pointer; transition: all .2s; }
 
.portal-tabs button.active {
  background: rgba(47,166,255,0.14); color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(47,166,255,0.35), inset 0 -2px 0 var(--electric);
}
.portal-tabs button:not(.active):hover { color: var(--ink); background: rgba(255,255,255,0.05); }

 
 
.visits-card { background: linear-gradient(135deg, #1c2027, #17191d); border: 1px solid rgba(47,166,255,0.20); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
.visits-card h3 { font-size: 15px; color: var(--brand-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.visits-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.visits-card li {
   
  display: grid; grid-template-columns: minmax(185px, 290px) minmax(0, 1fr) auto;
  gap: 4px 18px; align-items: center;
  min-height: 40px; padding: 11px 14px;
   
  background: rgba(255,255,255,0.045); border: 1px solid var(--border);
  border-radius: 11px; font-size: 14px; color: var(--text);
  transition: background .18s var(--ease), border-color .18s;
}
.visits-card li:hover { background: rgba(255,255,255,0.07); border-color: rgba(47,166,255,0.35); }
 
.visits-card .v-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; min-width: 0; }
.visits-card .v-date { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--brand-dark); white-space: nowrap; }
.visits-card .v-time { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.visits-card .v-time.tbc { font-weight: 500; font-style: italic; color: var(--muted); }
.visits-card .v-main { min-width: 0; }
.visits-card .v-subj { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.visits-card .v-subj:hover { color: var(--brand); text-decoration: underline; }
.visits-card .v-meta { color: var(--text-2); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.visits-card .v-num { font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.visits-note { margin: 13px 2px 0; font-size: 13px; color: var(--text-2); }
.visits-note a { color: var(--brand-dark); font-weight: 600; white-space: nowrap; }
.visits-note a:hover { color: var(--brand); text-decoration: underline; }

 
.info-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
@media (min-width: 700px) { .info-row { grid-template-columns: 1fr 1fr; } }
.info-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px 20px; min-width: 0;
}
.info-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-bottom: 13px;
}
.info-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.info-card li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 14px; }
.info-card .i-label { font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--muted); }
.info-card .i-value { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.info-card .i-value a { color: var(--brand-dark); font-weight: 600; }
.info-card .i-value a:hover { color: var(--brand); text-decoration: underline; }
.info-card .i-hint { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.info-note { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }

 
.done-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.done-head { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text-2); margin-bottom: 12px; }
.done-list { display: flex; flex-direction: column; gap: 6px; }
.done-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 4px 14px; align-items: center;
  min-height: 40px; padding: 10px 16px;
  background: var(--bg-soft); border: 1px solid transparent; border-radius: 11px;
  transition: background .18s var(--ease), border-color .18s;
}
.done-row:hover { background: var(--bg-mute); border-color: var(--border); }
.done-row .d-subj { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.done-row .d-subj:hover { color: var(--brand); }
 
.done-row .badge { opacity: 1; }
.done-row .d-when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.done-row .d-rate { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--brand-dark); white-space: nowrap; }
.done-row .d-rate:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 620px) {
   
  .visits-card { padding: 16px 15px; }
  .visits-card li { display: block; padding: 12px 14px; }
  .visits-card .v-when { margin-bottom: 5px; }
  .visits-card .v-num { display: block; margin-top: 5px; }
   
  .info-card li { min-height: 40px; align-items: center; }
  .done-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 7px; }
  .done-row .d-subj { grid-column: 1 / -1; }
  .done-row .badge { grid-column: 1; justify-self: start; }
  .done-row .d-when { grid-column: 2; justify-self: end; }
  .done-row .d-rate { grid-column: 1 / -1; }
}

 
.bill-list { display: flex; flex-direction: column; gap: 12px; }
.bill-row { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.bill-row .b-main { flex: 1 1 240px; min-width: 0; }
 
.bill-row .b-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 16px; overflow-wrap: anywhere; }
.bill-row .b-meta { color: var(--muted); font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.bill-row .b-amount { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
.bill-row .b-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bill-type { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
 
.bill-type.quote   { color: var(--p-purple); background: rgba(170,102,255,0.16); box-shadow: inset 0 0 0 1px rgba(170,102,255,0.32); }  
.bill-type.invoice { color: var(--p-info);   background: rgba(0,170,255,0.15);   box-shadow: inset 0 0 0 1px rgba(0,170,255,0.30); }    
.badge.pending  { color: var(--p-warn); background: rgba(255,170,0,0.15); box-shadow: inset 0 0 0 1px rgba(255,170,0,0.30); }   
.badge.approved { color: var(--p-ok);   background: rgba(0,200,100,0.15); box-shadow: inset 0 0 0 1px rgba(0,200,100,0.30); }   
 
.badge.declined { color: var(--p-err);  background: rgba(255,85,85,0.14);  box-shadow: inset 0 0 0 1px rgba(255,85,85,0.32); }   
 
.badge.paid     { color: var(--p-ok);   background: rgba(0,200,100,0.22); box-shadow: inset 0 0 0 1px rgba(0,200,100,0.40); }   
.btn-sm { font-family: var(--font-head); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-2); background: rgba(255,255,255,0.05); color: var(--ink); cursor: pointer; transition: all .2s; }
.btn-sm:hover { border-color: var(--brand); color: var(--brand); background: rgba(255,255,255,0.09); }
 
.btn-sm.approve { background: var(--p-ok); border-color: var(--p-ok); color: #06180e; }
.btn-sm.approve:hover { background: #17dd78; border-color: #17dd78; color: #06180e; }
.btn-sm.decline:hover { border-color: var(--p-err); color: var(--p-err); background: rgba(255,85,85,0.10); }
.btn-sm:disabled { opacity: .55; cursor: default; }

 
.rate-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px 22px; margin-bottom: 22px; }
.rate-card h3 { font-size: 15px; margin-bottom: 4px; }
.rate-card .rate-sub { color: var(--text-2); font-size: 13.5px; margin-bottom: 12px; }
.stars { display: inline-flex; gap: 4px; }
 
.stars button { border: none; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #4f5661; padding: 2px; transition: transform .12s, color .12s; }
.stars button:hover { transform: scale(1.15); }
.stars button.on { color: var(--p-warn); }
.stars.readonly { pointer-events: none; }
.stars.readonly button { font-size: 20px; cursor: default; }
.rate-comment textarea { min-height: 70px; }
.rate-thanks { color: var(--p-ok); font-weight: 600; font-size: 14px; }

@media (max-width: 620px) {
   
   
  .ticket-row { grid-template-columns: 1fr auto auto; row-gap: 6px; column-gap: 10px; padding: 16px 18px; }
  .ticket-row > div { grid-column: 1 / -1; grid-row: 2; }
  .ticket-row .badge { grid-row: 1; grid-column: 1; justify-self: start; }
  .ticket-row .when { grid-row: 1; grid-column: 2; }
  .ticket-row > svg { grid-row: 1; grid-column: 3; }
  .msg { max-width: 92%; }
}

 
.form-card { background: var(--card); border-color: var(--border); }

 
.field input, .field select, .field textarea { background-color: var(--p-field); caret-color: var(--electric); }
.field input::placeholder, .field textarea::placeholder { color: #9aa1aa; opacity: 1; }
 
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--electric); box-shadow: 0 0 0 3px rgba(var(--electric-rgb), 0.28);
}
 
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
 
.field select option { background: var(--card); color: var(--ink); }
 
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--p-field) inset;
  transition: background-color 9999s ease-out 0s;
}
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--p-field) inset, 0 0 0 3px rgba(var(--electric-rgb), 0.28);
}

 
.form-status.ok   { background: rgba(0,200,100,0.13); border: 1px solid rgba(0,200,100,0.34); color: var(--p-ok); }    
.form-status.err  { background: rgba(255,85,85,0.13); border: 1px solid rgba(255,85,85,0.34);  color: var(--p-err); }   
.form-status.warn { background: rgba(255,170,0,0.13); border: 1px solid rgba(255,170,0,0.34);  color: var(--p-warn); }  

 
.btn-ghost { color: var(--ink); border-color: var(--border-2); background: rgba(255,255,255,0.05); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: rgba(255,255,255,0.09); }

 

 
.portal-header .inner > a { flex: none; }
.portal-header .brand-logo { flex: none; }
.who { min-width: 0; }
.who .email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout { flex: none; white-space: nowrap; }

@media (max-width: 620px) {
  .portal-header .inner { height: auto; padding: 10px 16px; }
  .portal-header .brand-logo { height: 34px; }
  .who { gap: 8px; }
  .who .email { font-size: 13px; max-width: 44vw; }
}
