/* Edition 11 — consolidated UI refinement. No external font/image dependencies. */
:root{--ja-page-max:1540px;--e11-navy:#083650;--e11-sky:#087c9c;--e11-line:#d9e6ec;--e11-muted:#526d7d}
html{scroll-padding-top:92px}body{min-width:320px}body,button,input,select,textarea{font-synthesis:none}
.content-in,.pub-main,.pv-main,.pub-header-in,.pv-top-in{max-width:var(--ja-page-max)!important}
.card{border-color:var(--e11-line);box-shadow:0 8px 28px rgba(7,48,70,.045)}
.card,.btn,.input,input,textarea,select{transition:border-color .17s ease,box-shadow .17s ease,background-color .17s ease}
:is(.field input,.field textarea,.field select,.filters input,.filters select,.input):focus-visible{outline:2px solid #107e9e;outline-offset:2px;border-color:#107e9e!important}
.btn:focus-visible,.chip:focus-visible,summary:focus-visible{outline:3px solid #ba8540;outline-offset:3px}
/* One unmistakable arrow for native select controls in both directions; exclude multiple/select[size]. */
select:not([multiple]):not([size]){
 appearance:none!important;-webkit-appearance:none!important;
 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='%231c5f79' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-size:16px 16px!important;background-color:#fff!important;
 padding-inline:14px 42px!important;min-height:44px;color:var(--e11-navy);
}
html[dir="rtl"] select:not([multiple]):not([size]){background-position:left 14px center!important;padding:0 42px 0 14px!important}
html[dir="ltr"] select:not([multiple]):not([size]){background-position:right 14px center!important;padding:0 42px 0 14px!important}
select:disabled{background-color:#edf3f6!important;opacity:.72!important;cursor:not-allowed}
/* Full-bleed image behind both the login editorial story and form. No second photo layer. */
@media(min-width:900px){
 .auth.auth-premium{padding:10px 18px!important;min-height:calc(100dvh - 132px)!important}
 .auth.auth-premium .auth-stage{height:min(680px,calc(100dvh - 148px))!important;min-height:505px!important;width:min(1430px,100%)!important;padding:clamp(18px,3vw,42px)!important}
 .auth.auth-premium .auth-card{width:clamp(365px,38%,510px)!important;padding:clamp(22px,3vw,43px)!important;gap:8px!important}
 .auth.auth-premium .auth-story{background-position:58% 46%!important}
 .auth.auth-premium .auth-story::before{background:linear-gradient(90deg,rgba(4,39,60,.15),rgba(4,41,60,.07) 48%,rgba(3,33,54,.44)),linear-gradient(0deg,rgba(2,30,48,.42),transparent 65%)!important}
}
/* Photographic single-hero panels. Text has localized contrast but photography stays visible. */
.pub-main:not(.is-landing) .pub-intro{background-color:#0b405b!important;box-shadow:0 12px 30px rgba(8,51,73,.12)!important}
.pub-main.is-complaint .pub-intro{background-image:linear-gradient(270deg,rgba(3,42,62,.82) 0%,rgba(3,43,61,.48) 48%,rgba(3,45,61,.04) 100%),url('photos/harbor.webp')!important;background-position:center,50% 54%!important}
.pub-main.is-feedback .pub-intro{background-image:linear-gradient(270deg,rgba(3,42,62,.78),rgba(4,46,62,.36) 56%,rgba(4,46,62,.02)),url('photos/calm-sea.webp')!important}
html[dir=ltr] .pub-main.is-complaint .pub-intro{background-image:linear-gradient(90deg,rgba(3,42,62,.82),rgba(3,43,61,.48) 48%,rgba(3,45,61,.04)),url('photos/harbor.webp')!important}
html[dir=ltr] .pub-main.is-feedback .pub-intro{background-image:linear-gradient(90deg,rgba(3,42,62,.78),rgba(4,46,62,.36) 56%,rgba(4,46,62,.02)),url('photos/calm-sea.webp')!important}
.ja-authority-story{background-position:54% 49%!important}
.ja-authority-story::before{background:linear-gradient(180deg,rgba(3,35,54,.42),rgba(4,41,58,.03) 47%,rgba(3,32,50,.55))!important}
.ja-authority-story-copy{background:linear-gradient(135deg,rgba(3,41,62,.84),rgba(4,50,69,.67))!important;backdrop-filter:blur(5px);border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:20px!important}
/* Form grouping and validation */
.pub-main:is(.is-feedback,.is-complaint)>.form{border-radius:20px!important}
.form .group{margin-block:22px}.form .group-title{font-weight:700}
.field [aria-invalid="true"],.field .is-invalid{border-color:#b45151!important;box-shadow:0 0 0 3px rgba(180,81,81,.10)!important}
.e11-field-error{display:block;font-size:.78rem;line-height:1.5;color:#a73737;font-weight:600;padding-top:5px}
.e11-staged{display:flex;align-items:center;gap:9px;margin-top:14px;padding:12px 15px;border:1px solid #b5dace;background:#effaf5;border-radius:11px;color:#17654e;font-size:.87rem}
.e11-staged .ic{width:17px;height:17px}
.e11-toast{position:fixed;z-index:3500;inset-block-start:18px;inset-inline-end:18px;max-width:min(440px,calc(100vw - 32px));padding:16px 22px;border-radius:14px;background:#183d53;color:#fff;box-shadow:0 15px 45px rgba(0,30,49,.28);border-inline-start:4px solid #e0b16d;line-height:1.6}
.e11-toast:focus{outline:3px solid #f5d59c}
.e11-modes{margin-bottom:22px}.e11-modes .segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.e11-general-mode .rating-field,.e11-general-mode .group:has(#r-code){display:none!important}
.e11-general-mode #r-comment{min-height:150px}
.pub-main.is-feedback .rating-surface .rating label{cursor:pointer;transition:background .16s ease,transform .16s ease,border-color .16s ease!important}
.pub-main.is-feedback .rating-surface .rating label:hover,.pub-main.is-feedback .rating-surface .rating label:focus-within{transform:translateY(-3px);border-color:#c89c46!important;background:#fff9eb!important}
.pub-main.is-feedback .rating-surface .rating input:focus-visible + label{outline:3px solid #0d86a4;outline-offset:2px}
/* Complaint conversation: preserve underlying event history and visibility of internal notes */
.e11-conversation.timeline{display:grid;gap:18px}
.e11-conversation .tl-item{margin:0!important;max-width:min(91%,720px);padding:15px!important;border:1px solid #d8e8f0;border-radius:16px;background:#f5fafc}
.e11-conversation .tl-item.is-staff{background:#ecf6fa;border-color:#b9dce8;margin-inline-start:auto!important}
.e11-conversation .tl-item.is-customer{background:#fff;border-color:#e0e9ef;margin-inline-end:auto!important}
.e11-conversation .tl-dot{display:none!important}.e11-conversation .tl-body{padding:0!important}
.e11-sender{font-weight:700;font-size:.79rem;color:#0c6a86;margin-bottom:7px}
.e11-conversation .tl-head{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}
.e11-conversation .note{margin-top:11px;white-space:normal;overflow-wrap:anywhere}
.e11-conversation .note-internal{border-inline-start:3px solid #d4a85f}
/* Keep name/email distinct columns; manage operations move to one compact off-canvas panel. */
.op-team td:nth-child(1){min-width:140px}.op-team td:nth-child(2){min-width:190px}
.op-team td .op-email{word-break:break-all;text-decoration:none}
.e11-pagination{display:flex;gap:6px;flex-wrap:wrap;align-items:center;padding:16px 20px}
.e11-page-size{margin-inline-start:auto}.e11-page-size label{display:flex;align-items:center;gap:9px;font-size:.84rem;color:var(--e11-muted)}
.e11-page-size select{min-width:82px}
.e11-drawer[open]{z-index:1000}
.e11-drawer[open]:before{content:'';position:fixed;inset:0;z-index:950;background:rgba(2,27,42,.35);backdrop-filter:blur(2px)}
.e11-drawer[open]>.op-form{position:fixed!important;z-index:952;inset-block:0;inset-inline-end:0;width:min(450px,100vw)!important;max-width:100vw;overflow-y:auto;overscroll-behavior:contain;display:grid!important;align-content:start;gap:19px;padding:76px 28px 36px!important;background:#fff!important;box-shadow:0 0 50px rgba(5,30,42,.26);border:0;border-radius:0!important}
.e11-drawer[open]>summary{position:fixed;z-index:953;inset-block-start:15px;inset-inline-end:20px;background:#eaf3f7;padding:9px 13px;border-radius:9px;cursor:pointer}
.e11-drawer .op-row,.e11-drawer .op-pw{display:grid!important;gap:9px!important}
.e11-drawer :is(input,select){width:100%;min-width:0}
.op-role-help summary{display:flex;align-items:center;gap:9px}
.e11-load-summary{display:flex;gap:13px;align-items:center;color:#547182;font-size:.85rem;padding:6px 0 18px}
.e11-load-summary strong{display:grid;place-items:center;width:43px;height:43px;background:#e7f4f8;color:#036c91;border-radius:13px;font-size:1.25rem}
.e11-see-all{display:inline-flex;margin:12px 0 2px}
/* Admin rating policy */
.e11-settings{margin-block:18px;padding:18px 24px!important}
.e11-settings summary{display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer}
.e11-settings form{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;margin-top:22px}
.e11-settings label{display:grid;gap:6px;font-size:.85rem}
.e11-settings input{max-width:160px;min-height:44px;border:1px solid var(--e11-line);border-radius:10px;padding:8px 12px}
.e11-note-list{display:grid;gap:12px}.e11-note{padding:17px;border:1px solid var(--e11-line);border-radius:12px;background:#f9fcfd}
.e11-note time{font-size:.75rem;margin-inline-start:12px;color:var(--e11-muted)}.e11-note p{line-height:1.75;margin-top:10px;white-space:normal;overflow-wrap:anywhere}
.e11-ajax-loading{opacity:.6;pointer-events:none;transition:opacity .15s}
@media(max-width:800px){
 .content-in,.pub-main,.pv-main{padding-inline:16px!important}
 .op-team td:nth-child(1),.op-team td:nth-child(2){min-width:0}
 .e11-conversation .tl-item{max-width:100%}
 .auth.auth-premium .auth-stage{height:auto!important}
}
@media(max-width:520px){
 .e11-modes .segmented{grid-template-columns:1fr}.e11-settings form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .e11-settings .btn{grid-column:1/-1}.e11-drawer[open]>.op-form{padding:70px 20px 22px!important}
 .pub-main.is-feedback .rating-surface .rating{gap:6px!important;flex-wrap:nowrap}
 .pub-main.is-feedback .rating-surface .rating label{width:46px!important;height:46px!important}
}
@media(prefers-reduced-motion:reduce){.e11-toast,.e11-drawer *,select{transition:none!important;animation:none!important}}

/* Allow printed review screens to omit fixed interactive drawers and keep document flow. */
@media print{.e11-drawer[open] .op-form{position:static!important;inset:auto!important;max-height:none!important}.e11-pagination,.e11-page-size{display:none!important}}
