/* AEMAZON COURT 1.1.0. All rules scoped; inline panels avoid native WebView overlay stacking. */
.court-compose,.court-card,.court-detail,.court-preview{--court-orange:#ef6439;--court-ink:var(--aem-ui-ink,#222426);--court-muted:var(--aem-ui-muted,#777c84);--court-line:var(--aem-ui-line,#ececee);--court-soft:var(--aem-ui-warm,#fff5f0);box-sizing:border-box;color:var(--court-ink);font-family:inherit;font-size:15px;line-height:1.65;overflow-wrap:anywhere;}
.court-compose *,.court-card *,.court-detail *,.court-preview *{box-sizing:border-box;}
.court-compose [hidden],.court-card [hidden],.court-detail [hidden]{display:none!important;}
.court-write-page{margin:0;background:var(--aem-ui-panel,#f8f8fa);color:var(--aem-ui-ink,#222426);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans KR","Apple SD Gothic Neo",sans-serif;}
.court-write-header{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:800px;margin:auto;padding:18px 24px;background:var(--aem-ui-surface,#fff);border-bottom:1px solid var(--aem-ui-line,#ececee);}
.court-wordmark{font-size:17px;line-height:1.4;font-weight:800;letter-spacing:.5px;color:#ef6439;text-decoration:none;}
.court-write-header>span{font-size:15px;font-weight:700;}.court-header-link{color:var(--aem-ui-muted,#777c84);font-size:14px;text-decoration:none;padding:8px 0 8px 12px;}
.court-compose{max-width:800px;padding:28px 24px 140px;margin:0 auto;background:var(--aem-ui-surface,white);min-height:100vh;}
.court-compose h1{font-size:26px;line-height:1.4;margin:0 0 8px;font-weight:800;letter-spacing:-.7px;}.court-compose h2,.court-detail h2,.court-preview h2{font-size:18px;line-height:1.5;margin:0;font-weight:750;}.court-compose p,.court-card p,.court-detail p,.court-preview p{margin:0;}
.court-intro{color:var(--court-muted);font-size:14px;margin-bottom:28px!important;}.court-kicker{color:var(--court-orange);font-weight:750;letter-spacing:.6px;font-size:11px;line-height:1.4;margin-bottom:8px!important;}
.court-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}.court-between{justify-content:space-between;}.court-small{font-size:12px;color:var(--court-muted);}.court-muted{color:var(--court-muted);}
.court-form-section{margin:0 0 28px;padding:0;border:0;min-width:0;}.court-field{display:flex;flex-direction:column;gap:9px;margin:16px 0;min-width:0;}.court-field>span,.court-form-section>legend{font-weight:700;font-size:15px;}.court-optional{font-size:12px;color:var(--court-muted);font-weight:400;margin-left:6px;}
.court-input,.court-textarea,.court-select{width:100%;min-width:0;border:1px solid var(--aem-ui-line,#dedee3);border-radius:12px;background:var(--aem-ui-surface,#fff);color:var(--aem-ui-ink,#222426);padding:13px 14px;font:inherit;font-size:16px;line-height:1.55;outline-offset:3px;box-shadow:none;}.court-input:focus,.court-textarea:focus,.court-select:focus{border-color:var(--court-orange);outline:2px solid var(--aem-ui-line,#ffdfd1);}.court-textarea{resize:vertical;min-height:118px;}.court-textarea.court-story-input{min-height:190px;}.court-helper{font-size:12px;color:var(--court-muted);font-weight:400;line-height:1.6;}.court-count{text-align:right;font-size:11px;color:var(--court-muted);}
.court-segment{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;}.court-segment label{position:relative;display:flex;flex:1;min-width:94px;}.court-segment input{position:absolute;opacity:0;width:1px;height:1px;}.court-segment span{display:block;width:100%;text-align:center;border:1px solid var(--court-line);border-radius:10px;padding:11px 7px;font-size:13px;cursor:pointer;}.court-segment input:checked+span{border-color:#f5b69f;background:var(--court-soft);color:#d75127;font-weight:700;}.court-segment input:focus-visible+span{outline:2px solid #ef6439;outline-offset:2px;}
.court-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px solid var(--aem-ui-line,#dedee3);border-radius:11px;padding:10px 16px;background:var(--aem-ui-surface,white);color:var(--court-ink);font:inherit;font-size:14px;font-weight:650;text-decoration:none;cursor:pointer;line-height:1.4;}.court-button:hover{background:var(--aem-ui-panel,#f7f7f8);}.court-button:disabled{opacity:.5;cursor:default;}.court-button-primary{border-color:var(--court-orange);background:var(--court-orange);color:#fff;}.court-button-primary:hover{background:#df582f;}.court-button-soft{border-color:var(--aem-ui-line,#fbd9cb);background:var(--court-soft);color:#d75127;}.court-button-small{min-height:34px;padding:6px 10px;font-size:12px;}.court-text-button{appearance:none;border:0;background:transparent;padding:8px;color:#d75127;font:inherit;font-size:13px;cursor:pointer;min-height:40px;text-decoration:none;}.court-full{width:100%;}
.court-note{border:1px solid var(--aem-ui-line,#f7dfd3);border-radius:12px;padding:13px 15px;background:var(--court-soft);font-size:13px;line-height:1.6;}.court-note p+p{margin-top:6px;}.court-error{border:1px solid var(--aem-ui-line,#f0c6c6);border-radius:10px;background:var(--aem-ui-panel,#fff5f5);color:var(--aem-ui-text-red,#a52626);font-size:13px;padding:12px 14px;margin:12px 0!important;}.court-success{background:var(--aem-ui-panel,#edf8ef);color:var(--aem-ui-text-green,#38784d);border-radius:10px;padding:10px 13px;font-size:13px;}.court-loading{padding:28px;color:var(--aem-ui-muted,#777c84);text-align:center;font-size:14px;}
.court-draft-banner,.court-leave-panel{background:var(--aem-ui-panel,#f7f8fa);border:1px solid var(--aem-ui-line,#e4e5e8);border-radius:12px;padding:15px;margin-bottom:20px;}.court-draft-banner .court-row,.court-leave-panel .court-row{margin-top:10px;}
.court-compose-actions{position:fixed;bottom:0;left:0;right:0;z-index:40;display:flex;align-items:center;gap:10px;justify-content:center;padding:12px 24px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--aem-ui-line,#ececee);background:var(--aem-ui-surface,rgba(255,255,255,.98));}.court-compose-actions .court-button{max-width:440px;flex:1;}.court-compose-actions .court-preview-button{max-width:130px;}.court-draft-status{font-size:12px;color:var(--court-muted);margin:10px 0!important;}
.court-attachments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;}.court-attachment{position:relative;min-width:0;background:var(--aem-ui-panel,#f5f5f6);border:1px solid var(--court-line);border-radius:12px;overflow:hidden;}.court-attachment img,.court-attachment video{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:var(--aem-ui-panel,#e7e7e9);}.court-attachment-name{padding:5px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:var(--court-muted);}.court-attachment-controls{display:flex;justify-content:space-between;background:var(--aem-ui-surface,#fff);border-top:1px solid var(--court-line);}.court-attachment-controls button{appearance:none;border:0;background:var(--aem-ui-surface,white);min-width:32px;min-height:38px;padding:7px;color:var(--aem-ui-ink,#555);font-size:14px;cursor:pointer;}.court-attachment-controls button:disabled{opacity:.25;}.court-attachment-controls button[data-remove]{color:var(--aem-ui-text-red,#b33b30);}.court-file-picker{display:inline-flex;position:relative;align-items:center;justify-content:center;gap:8px;cursor:pointer;}.court-file-picker input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer;}.court-file-picker:focus-within{outline:2px solid #ef6439;outline-offset:3px;}
.court-option-editor{display:flex;align-items:center;gap:10px;margin-top:10px;}.court-option-number{flex:none;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;background:var(--aem-ui-panel,#f2f2f4);border-radius:50%;font-size:12px;color:var(--aem-ui-muted,#747982);}.court-option-locked{background:var(--aem-ui-panel,#f7f7f8);color:var(--aem-ui-muted,#686d75);}
/* Feed summary: compact information and one clear action. */
.court-card{border:1px solid var(--aem-ui-line,#ffe5d9);border-radius:12px;margin:14px 0 0;background:var(--aem-ui-warm,#fff8f4);padding:13px 14px;min-width:0;}
.court-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;min-width:0;}
.court-label{font-size:12px;color:#df542a;font-weight:750;display:inline-flex;align-items:center;gap:6px;line-height:1.4;}
.court-label svg{width:18px;height:18px;flex:none}
.court-status{display:inline-flex;align-items:center;gap:5px;background:var(--aem-ui-warm,#fff1e9);color:#d85126;border:1px solid var(--aem-ui-line,#ffddcc);border-radius:6px;font-size:11px;font-weight:700;padding:3px 8px;line-height:1.5;white-space:nowrap;}
.court-status.is-closed{background:var(--aem-ui-panel,#f2f4f5);color:var(--aem-ui-muted,#616b76);border-color:var(--aem-ui-line,#e5e8eb);}
.court-statement{font-size:11px;line-height:1.5;color:var(--aem-ui-muted,#858187);min-width:0;word-break:keep-all;overflow-wrap:anywhere;}
.court-card-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;font-size:12px;line-height:1.5;color:var(--aem-ui-muted,#73747b);margin:0 0 10px!important;}
.court-card-participation{display:inline-flex;align-items:center;gap:3px;color:var(--aem-ui-muted,#68666b);white-space:nowrap;}
.court-card-participation svg{width:16px;height:16px;margin-right:3px;flex:none}
.court-card-participation strong{color:var(--aem-ui-ink,#333136);font-size:13px;font-weight:750;font-variant-numeric:tabular-nums;}
.court-card-deadline{color:var(--aem-ui-text-red,#bf5a37);font-size:11px;font-variant-numeric:tabular-nums;}
.court-card-result{font-size:14px;line-height:1.6;margin:4px 0 10px!important;font-weight:650;}
.court-card-result strong{color:#df542a;white-space:nowrap;}
.court-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;}
.court-card-footer>.court-statement{flex:1;max-width:240px;}
.court-card-footer>a.court-card-action{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:none;min-height:42px;padding:9px 12px;border:1px solid #f2633a;border-radius:9px;background:#f2633a;color:#fff;font-size:12px;font-weight:700;line-height:1.4;text-decoration:none;white-space:nowrap;cursor:pointer;}
.court-card-footer>a.court-card-action:hover{background:#e9572d;border-color:#e9572d;}
.court-card-footer>a.court-card-action:focus-visible{outline:2px solid #c53f17;outline-offset:3px;}
.court-card-arrow{font-size:16px;line-height:1;font-weight:500;}
.court-card.is-closed{background:var(--aem-ui-panel,#f8f9fa);border-color:var(--aem-ui-line,#e9ecef);}
.court-card.is-closed .court-card-deadline{color:var(--aem-ui-muted,#85868d);}
.court-card.is-closed .court-card-action{background:var(--aem-ui-surface,#fff);border-color:var(--aem-ui-line,#dde1e5);color:var(--aem-ui-ink,#454b53);}
.court-card.is-closed .court-card-action:hover{background:var(--aem-ui-panel,#f0f2f4);border-color:var(--aem-ui-line,#d5d9de);}
.court-mini-bar{height:4px;background:var(--aem-ui-panel,#e7e9ec);border-radius:8px;margin:8px 0 12px;overflow:hidden;}
.court-mini-bar>span{display:block;height:100%;background:#ee936f;border-radius:8px;}
.court-card-compact{padding:10px 12px;margin-top:8px;border-color:var(--aem-ui-line,#f1e7e2);background:var(--aem-ui-surface,#fffbf9);}
.court-card-compact .court-card-top{margin-bottom:7px;}
.court-card-compact .court-statement{display:none;}
.court-card-compact .court-card-footer{justify-content:flex-end;}
.court-card-compact .court-card-footer>.court-card-action{padding:4px 0;min-height:32px;border:0;background:transparent;color:#df542a;font-size:11px;}
.court-detail{margin:18px 0 26px;}.court-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;}.court-detail-section{padding:18px 0;border-bottom:1px solid var(--court-line);}.court-detail-section h3{font-size:14px;margin:0 0 9px;font-weight:750;}.court-body-text{white-space:pre-wrap;font-size:15px;line-height:1.85;word-break:break-word;}.court-statement-box{background:var(--aem-ui-panel,#f7f8f9);border-radius:12px;padding:15px;font-size:13px;margin-top:14px;}.court-statement-box strong{display:block;margin-bottom:5px;color:var(--aem-ui-muted,#636975);font-size:12px;}.court-poll{margin:22px 0 14px;background:var(--aem-ui-surface,#fffaf7);border:1px solid var(--aem-ui-line,#f2ded4);border-radius:16px;padding:18px;}.court-poll-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;}.court-poll-subtitle{font-size:12px;color:var(--aem-ui-muted,#79777a);margin-bottom:16px!important;}.court-vote-options{display:grid;gap:9px;border:0;padding:0;margin:0;min-width:0;}.court-vote-option{position:relative;border:1px solid var(--aem-ui-line,#e5e2df);border-radius:11px;display:flex;align-items:center;gap:9px;background:var(--aem-ui-surface,white);overflow:hidden;padding:13px 12px;cursor:pointer;min-height:50px;}.court-vote-option.is-selected{border-color:#ed9a78;background:var(--aem-ui-panel,#fff9f5);}.court-vote-option.is-disabled{cursor:default;}.court-vote-option input{position:relative;z-index:1;accent-color:var(--court-orange);flex:none;width:17px;height:17px;margin:0;}.court-vote-option>span,.court-vote-option>strong{position:relative;z-index:1;}.court-vote-label{flex:1;font-size:14px;line-height:1.5;}.court-vote-count{font-size:12px;color:var(--aem-ui-muted,#696970);font-weight:600;white-space:nowrap;}.court-vote-fill{position:absolute;inset:0 auto 0 0;background:var(--aem-ui-panel,#f3f2f0);pointer-events:none;}.court-vote-option.is-selected .court-vote-fill{background:var(--aem-ui-warm,#fff0e5);}.court-vote-submit{margin-top:13px;}.court-poll-feedback{margin-top:10px!important;font-size:12px;color:var(--aem-ui-muted,#6c6e73);}.court-poll-caption{margin-top:13px!important;color:var(--aem-ui-muted,#88858a);font-size:11px;}.court-result-title{font-size:15px;font-weight:750;color:var(--aem-ui-muted,#497055);margin:0 0 12px!important;}.court-detail-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;}.court-history{display:grid;gap:16px;margin-top:20px;}.court-history-entry{border-left:2px solid #f3b29a;padding:0 0 0 13px;}.court-history-entry time{font-size:11px;color:var(--aem-ui-muted,#888c93);}.court-history-entry p{margin-top:6px;white-space:pre-wrap;font-size:14px;}.court-append-panel{margin-top:14px;padding:15px;border:1px solid var(--court-line);border-radius:12px;background:var(--aem-ui-surface,#fafafa);}.court-append-panel .court-field{margin-top:0;}.court-preview{border:1px solid var(--aem-ui-line,#e8e8ec);border-radius:14px;margin:20px 0;background:var(--aem-ui-surface,#fff);padding:18px;}.court-preview-title{font-size:21px;line-height:1.5;white-space:pre-wrap;margin:8px 0!important;}.court-preview .court-attachments{margin:14px 0;}.court-preview .court-attachment-controls{display:none;}
@media(min-width:800px){.court-write-header{border-left:1px solid var(--aem-ui-line,#ececee);border-right:1px solid var(--aem-ui-line,#ececee);}.court-compose{border-left:1px solid var(--aem-ui-line,#ececee);border-right:1px solid var(--aem-ui-line,#ececee);}.court-form-section{margin-bottom:32px;}.court-attachments{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:440px){.court-write-header{padding:13px 16px;}.court-wordmark{font-size:15px;}.court-compose{padding:22px 16px 130px;}.court-compose h1{font-size:23px;}.court-compose-actions{padding-left:16px;padding-right:16px;}.court-card{padding:13px;}.court-card-top{gap:6px;}.court-poll{padding:14px;}.court-segment span{font-size:12px;padding:10px 4px;}.court-attachments{gap:7px;}.court-detail-head{flex-wrap:wrap;}.court-draft-status{font-size:11px;}}
@media(prefers-reduced-motion:reduce){.court-compose *,.court-detail *{scroll-behavior:auto!important;}}
/* Existing feed order rules must not place the court panel before the title. */
body.post-list-v3 #postList > article.card.is-court-post{min-height:0!important;height:auto;gap:0;}
body.post-list-v3 #postList > article.card.is-court-post > .meta{order:0!important;margin-bottom:13px;}
body.post-list-v3 #postList > article.card.is-court-post > .court-feed-heading{order:1!important;margin:0 0 10px;padding:0;border:0;background:transparent;}
body.post-list-v3 #postList > article.card.is-court-post > .title{order:2!important;font-size:19px;line-height:1.5;font-weight:750;letter-spacing:-.025em;margin:0 0 8px;max-height:none;-webkit-line-clamp:3;}
body.post-list-v3 #postList > article.card.is-court-post > .content,
body.post-list-v3 #postList > article.card.is-court-post > .ethumb-row{order:3!important;}
body.post-list-v3 #postList > article.card.is-court-post .court-feed-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;max-height:none!important;min-height:0;flex:0 0 auto;font-size:14px!important;line-height:1.75!important;color:var(--aem-ui-muted,#74747b);margin:0!important;word-break:break-word;}
body.post-list-v3 #postList > article.card.is-court-post > .post-media,
body.post-list-v3 #postList > article.card.is-court-post > .vwrap,
body.post-list-v3 #postList > article.card.is-court-post > .mini-slider{order:4!important;margin-top:12px;}
body.post-list-v3 #postList > article.card.is-court-post > .court-card{order:5!important;align-self:stretch;margin:14px 0 0;padding:12px 14px;border-radius:12px;min-height:0;flex:0 0 auto;}
body.post-list-v3 #postList > article.card.is-court-post > .actbar{order:6!important;margin-top:14px;padding-top:0;}
body.post-list-v3 #postList > article.card.is-court-post > .cmt-panel{order:7!important;}
/* Story headings are orange in detail, revision history, preview and compose. */
.court-detail .court-detail-section > h3,
.court-preview .court-detail-section > h3{color:#df542a;font-size:16px;font-weight:750;line-height:1.55;margin:0 0 10px;}
.court-compose .court-field > span,
.court-compose .court-form-section > h2,
.court-compose .court-form-section > legend{color:#df542a;}
.court-detail .court-body-text{color:var(--aem-ui-ink,#35363a);font-size:15px;line-height:1.85;}
.court-detail .court-detail-section{padding:22px 0;border-color:var(--aem-ui-line,#eeeff1);}
@media(max-width:440px){
  body.post-list-v3 #postList > article.card.is-court-post > .title{font-size:18px;line-height:1.5;}
  body.post-list-v3 #postList > article.card.is-court-post > .court-card{padding:11px 12px;}
  .court-card-footer{gap:8px;}
  .court-card-footer>.court-statement{font-size:10.5px;}
  .court-card-footer>a.court-card-action{gap:7px;padding:9px 10px;font-size:12px;}
}
@media(max-width:340px){
  .court-card:not(.court-card-compact) .court-card-footer{flex-wrap:wrap;}
  .court-card:not(.court-card-compact) .court-card-footer>.court-statement{flex-basis:100%;max-width:none;}
  .court-card:not(.court-card-compact) .court-card-footer>.court-card-action{width:100%;}
}
.court-history-snapshot{margin-top:8px;font-size:12px;color:var(--aem-ui-muted,#737981);}.court-history-snapshot>summary{cursor:pointer;min-height:36px;padding:7px 0;}.court-history-snapshot .court-detail-section{padding:10px 0;}.court-history-snapshot .court-body-text{font-size:13px;}.court-history-snapshot h3{font-size:12px;}
