/* CCTP V3 shared form design system.
 * Form surfaces are soft white/gray with light blue form text.
 * General link blue remains controlled by app-cctp-tokens.css.
 */
.app-cctp-shell {
  --app-cctp-form-surface: #f2f2f0;
  --app-cctp-form-control: #f8f8f6;
  --app-cctp-form-control-low: #eceeec;
  --app-cctp-form-border: #c7cbce;
  --app-cctp-form-border-focus: #7f9fbd;
  --app-cctp-form-text: #587a9d;
  --app-cctp-form-text-strong: #4c7096;
  --app-cctp-form-muted: #8799ab;
  --app-cctp-form-placeholder: #9eacba;
  --app-cctp-action-blue: #3366cc;
  --app-cctp-form-focus: rgba(124,157,188,.22);
  --app-cctp-form-radius: 18px;
  --app-cctp-form-shadow-raised:
    -3px -3px 8px rgba(255,255,255,.98),
    5px 6px 14px rgba(68,78,88,.24),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(91,101,111,.08);
  --app-cctp-form-shadow-soft:
    -2px -2px 6px rgba(255,255,255,.96),
    4px 5px 11px rgba(68,78,88,.20),
    inset 0 1px 0 rgba(255,255,255,.94);
  --app-cctp-form-shadow-pressed:
    inset 4px 4px 9px rgba(78,88,98,.22),
    inset -3px -3px 8px rgba(255,255,255,.96),
    0 1px 2px rgba(67,77,87,.10);
}

/* Shared form fields: login/account/search and future V3 forms. */
.app-cctp-form { display:grid; gap:14px; }
.app-cctp-field { display:grid; gap:7px; color:var(--app-cctp-form-text-strong); font-size:14px; font-weight:700; }
.app-cctp-field input,
.app-cctp-field select,
.app-cctp-field textarea,
.app-cctp-search-form input {
  width:100%;
  min-height:50px;
  box-sizing:border-box;
  border:1.5px solid var(--app-cctp-form-border);
  border-radius:var(--app-cctp-form-radius);
  padding:11px 14px;
  background:var(--app-cctp-form-control);
  color:var(--app-cctp-form-text-strong);
  font:inherit;
  outline:0;
  box-shadow:var(--app-cctp-form-shadow-raised);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .12s ease;
}
.app-cctp-field textarea { min-height:170px; resize:vertical; line-height:1.5; }
.app-cctp-field input::placeholder,
.app-cctp-field textarea::placeholder,
.app-cctp-search-form input::placeholder { color:var(--app-cctp-form-placeholder); opacity:1; }
.app-cctp-field input:focus,
.app-cctp-field select:focus,
.app-cctp-field textarea:focus,
.app-cctp-search-form input:focus {
  border-color:var(--app-cctp-form-border-focus);
  box-shadow:var(--app-cctp-form-shadow-soft),0 0 0 3px var(--app-cctp-form-focus);
}
.app-cctp-phone-field {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  border:1.5px solid var(--app-cctp-form-border);
  border-radius:var(--app-cctp-form-radius);
  overflow:hidden;
  background:var(--app-cctp-form-control);
  box-shadow:var(--app-cctp-form-shadow-raised);
}
.app-cctp-phone-field > span { padding-left:14px; color:var(--app-cctp-form-muted); font-weight:700; }
.app-cctp-phone-field input { border:0; border-radius:0; box-shadow:none; background:transparent; }
.app-cctp-phone-field:focus-within { border-color:var(--app-cctp-form-border-focus); box-shadow:var(--app-cctp-form-shadow-soft),0 0 0 3px var(--app-cctp-form-focus); }

.app-cctp-primary-button {
  min-height:48px;
  display:inline-grid;
  place-items:center;
  border:1.5px solid var(--app-cctp-form-border);
  border-radius:15px;
  padding:9px 16px;
  background:var(--app-cctp-form-control);
  color:var(--app-cctp-action-blue);
  font:inherit;
  font-weight:800;
  text-decoration:none;
  box-shadow:var(--app-cctp-form-shadow-soft);
  cursor:pointer;
  transition:transform .12s ease,box-shadow .12s ease,background .16s ease;
}
.app-cctp-primary-button:hover { background:#fafaf8; }
.app-cctp-primary-button:active:not(:disabled) { transform:translateY(1px); box-shadow:var(--app-cctp-form-shadow-pressed); }
.app-cctp-primary-button:focus-visible { outline:3px solid var(--app-cctp-form-focus); outline-offset:2px; }
.app-cctp-primary-button:disabled { cursor:default; opacity:.48; box-shadow:0 2px 5px rgba(68,78,88,.10),inset 0 1px 0 rgba(255,255,255,.86); }
.app-cctp-text-button { min-height:40px; border:0; background:transparent; color:var(--app-cctp-action-blue); font:inherit; font-weight:800; cursor:pointer; }
.app-cctp-auth-switch { margin:16px 0 0; color:var(--app-cctp-form-muted); text-align:center; }
.app-cctp-auth-switch a { color:var(--app-cctp-action-blue); font-weight:800; }

.app-cctp-search-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; margin-bottom:14px; }
.app-cctp-search-form .app-cctp-primary-button { min-width:70px; }

.app-cctp-preview-note { padding:10px 12px; border:1px solid #d8e1e7; border-radius:13px; background:#f4f6f6; color:var(--app-cctp-form-text); font-size:13px; }
.app-cctp-choice-group { margin:14px 0; padding:0; border:0; }
.app-cctp-choice-group legend { margin:0 0 8px; color:var(--app-cctp-form-text-strong); font-size:14px; font-weight:800; }
.app-cctp-choice-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.app-cctp-choice-row button {
  min-height:44px;
  border:1.5px solid var(--app-cctp-form-border);
  border-radius:14px;
  padding:8px 4px;
  background:var(--app-cctp-form-control);
  color:var(--app-cctp-form-text);
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:var(--app-cctp-form-shadow-soft);
}
.app-cctp-choice-row button.app-cctp-is-selected { border-color:#c9d7e3; background:#e4ebf1; color:#456b91; box-shadow:var(--app-cctp-form-shadow-pressed); }
.app-cctp-submit-writing { margin-top:14px; }
.app-cctp-submit-status-row { display:flex; justify-content:space-between; gap:12px; margin:8px 0 12px; color:var(--app-cctp-form-muted); font-size:12px; }
.app-cctp-submit-status-row [data-app-cctp-state="ready"] { color:#5c806f; }
.app-cctp-submit-status-row [data-app-cctp-state="over"] { color:#9a5f68; }
.app-cctp-form-alert,
.app-cctp-form-success { margin:10px 0; padding:11px 12px; border-radius:14px; line-height:1.45; box-shadow:var(--app-cctp-form-shadow-soft); }
.app-cctp-form-alert { border:1px solid #e5cfd2; background:#faf1f2; color:#8b4d58; }
.app-cctp-form-success { border:1px solid #d5e0da; background:#f5f8f5; color:var(--app-cctp-form-text-strong); }

/* Submit V2.1 flow, visually restyled but behavior unchanged. */
.app-cctp-submit {
  --app-cctp-submit-surface: var(--app-cctp-form-surface);
  --app-cctp-submit-control: var(--app-cctp-form-control);
  --app-cctp-submit-control-low: var(--app-cctp-form-control-low);
  --app-cctp-submit-border: var(--app-cctp-form-border);
  --app-cctp-submit-border-focus: var(--app-cctp-form-border-focus);
  --app-cctp-submit-text: var(--app-cctp-form-text);
  --app-cctp-submit-text-strong: var(--app-cctp-form-text-strong);
  --app-cctp-submit-muted: var(--app-cctp-form-muted);
  --app-cctp-submit-placeholder: var(--app-cctp-form-placeholder);
  --app-cctp-submit-focus: var(--app-cctp-form-focus);
  --app-cctp-submit-radius: var(--app-cctp-form-radius);
  --app-cctp-submit-shadow-raised: var(--app-cctp-form-shadow-raised);
  --app-cctp-submit-shadow-soft: var(--app-cctp-form-shadow-soft);
  --app-cctp-submit-shadow-pressed: var(--app-cctp-form-shadow-pressed);
  padding:18px 18px 32px;
  border:1px solid #e2e3e0;
  border-radius:24px;
  background:var(--app-cctp-submit-surface);
  color:var(--app-cctp-submit-text);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 10px 26px rgba(63,72,80,.08);
}
.app-cctp-submit h1 { margin:0 0 20px; color:var(--app-cctp-submit-text-strong); font-size:28px; line-height:1.2; font-weight:800; letter-spacing:-.02em; }
.app-cctp-submit-field { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:12px; align-items:center; margin-bottom:20px; }
.app-cctp-submit-field label,
.app-cctp-submit-legend,
.app-cctp-submit-photo-label { color:var(--app-cctp-submit-text-strong); font-weight:750; white-space:nowrap; }
.app-cctp-submit-field input {
  width:100%; min-width:0; min-height:52px; box-sizing:border-box;
  border:1.5px solid var(--app-cctp-submit-border); border-radius:var(--app-cctp-submit-radius);
  padding:11px 15px; background:var(--app-cctp-submit-control); color:var(--app-cctp-submit-text-strong);
  font:inherit; outline:0; box-shadow:var(--app-cctp-submit-shadow-raised);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,transform .12s ease;
}
.app-cctp-submit-field input::placeholder,
.app-cctp-submit-composer textarea::placeholder { color:var(--app-cctp-submit-placeholder); opacity:1; }
.app-cctp-submit-field input:focus,
.app-cctp-submit-photo-trigger:focus-visible,
.app-cctp-submit-composer textarea:focus { border-color:var(--app-cctp-submit-border-focus); box-shadow:var(--app-cctp-submit-shadow-soft),0 0 0 3px var(--app-cctp-submit-focus); }
.app-cctp-submit-group-step { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:12px; align-items:center; margin:0 0 20px; padding:0 0 20px; border-bottom:1px solid #dfe1df; }
.app-cctp-submit-group-step[hidden],
.app-cctp-submit-photo-step[hidden],
.app-cctp-submit-composer[hidden],
.app-cctp-submit-success[hidden],
.app-cctp-form-alert[hidden] { display:none; }
.app-cctp-submit-choice-row { display:flex; gap:10px; min-width:0; }
.app-cctp-submit-choice-row-groups { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.app-cctp-submit-choice-row button {
  min-width:0; min-height:48px; border:1.5px solid var(--app-cctp-submit-border); border-radius:var(--app-cctp-submit-radius);
  padding:8px 10px; background:var(--app-cctp-submit-control); color:var(--app-cctp-submit-text);
  font:inherit; font-weight:800; cursor:pointer; box-shadow:var(--app-cctp-submit-shadow-raised);
  transition:border-color .16s ease,box-shadow .12s ease,background .16s ease,color .16s ease,transform .12s ease;
}
.app-cctp-submit-choice-row button:hover { border-color:#cbd2d5; background:#fafaf8; }
.app-cctp-submit-choice-row button:active { transform:translateY(1px); box-shadow:var(--app-cctp-submit-shadow-pressed); }
.app-cctp-submit-choice-row button:focus-visible { border-color:var(--app-cctp-submit-border-focus); outline:3px solid var(--app-cctp-submit-focus); outline-offset:2px; }
.app-cctp-submit-choice-row button.app-cctp-is-selected { border-color:#c9d7e3; background:#e4ebf1; color:#456b91; box-shadow:var(--app-cctp-submit-shadow-pressed); }
.app-cctp-submit-photo-step { display:grid; grid-template-columns:160px minmax(0,1fr); align-items:center; gap:14px; margin-top:20px; padding-top:20px; border-top:1px solid #dfe1df; }
.app-cctp-submit-photo-trigger {
  width:100%; min-height:54px; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) 22px; align-items:center; gap:10px;
  border:1.5px solid var(--app-cctp-submit-border); border-radius:var(--app-cctp-submit-radius); padding:11px 14px 11px 15px;
  background:var(--app-cctp-submit-control); color:var(--app-cctp-submit-muted); font:inherit; font-size:16px; text-align:left; cursor:pointer;
  box-shadow:var(--app-cctp-submit-shadow-raised); transition:border-color .16s ease,box-shadow .12s ease,background .16s ease,transform .12s ease;
}
.app-cctp-submit-photo-trigger svg { width:20px; height:20px; justify-self:end; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.app-cctp-submit-photo-trigger.app-cctp-has-value { color:var(--app-cctp-submit-text-strong); }
.app-cctp-submit-photo-trigger:active { transform:translateY(1px); box-shadow:var(--app-cctp-submit-shadow-pressed); }

/* Photo category chooser is a real V3 push panel, not a native mobile select menu. */
.app-cctp-photo-category-panel { padding:10px 0 28px; }
.app-cctp-photo-category-list { display:grid; gap:10px; }
.app-cctp-photo-category-option {
  width:100%; min-height:66px; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) 34px; align-items:center; gap:12px;
  border:1.5px solid var(--app-cctp-form-border); border-radius:18px; padding:11px 12px 11px 16px;
  background:var(--app-cctp-form-control); color:var(--app-cctp-form-text-strong); font:inherit; text-align:left; cursor:pointer;
  box-shadow:var(--app-cctp-form-shadow-soft); transition:border-color .16s ease,box-shadow .12s ease,background .16s ease,transform .12s ease;
}
.app-cctp-photo-category-option:active { transform:translateY(1px); box-shadow:var(--app-cctp-form-shadow-pressed); }
.app-cctp-photo-category-option:focus-visible { outline:3px solid var(--app-cctp-form-focus); outline-offset:2px; }
.app-cctp-photo-category-copy { min-width:0; display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.app-cctp-photo-category-copy strong { min-width:0; overflow-wrap:anywhere; color:var(--app-cctp-form-text-strong); font-size:17px; font-weight:750; }
.app-cctp-photo-category-copy small { flex:0 0 auto; color:var(--app-cctp-form-muted); font-size:13px; font-weight:650; }
.app-cctp-photo-category-check {
  width:28px; height:28px; display:grid; place-items:center; border:1px solid #d5dcdf; border-radius:50%;
  background:#f4f5f3; color:transparent; font-size:16px; font-weight:900; box-shadow:inset 0 1px rgba(255,255,255,.9),0 2px 5px rgba(72,82,91,.11);
}
.app-cctp-photo-category-option.app-cctp-is-selected { border-color:#c6d4df; background:#eaf0f4; box-shadow:var(--app-cctp-form-shadow-pressed); }
.app-cctp-photo-category-option.app-cctp-is-selected .app-cctp-photo-category-check { border-color:#aec2d3; background:#dce7ef; color:#55799b; }
.app-cctp-submit-composer { margin-top:14px; border:1.5px solid var(--app-cctp-submit-border); border-radius:var(--app-cctp-submit-radius); overflow:hidden; background:var(--app-cctp-submit-control); box-shadow:var(--app-cctp-submit-shadow-raised); }
.app-cctp-submit-composer-writing { position:relative; }
.app-cctp-submit-composer textarea { display:block; width:100%; min-height:190px; box-sizing:border-box; padding:15px; border:0; outline:0; resize:vertical; background:var(--app-cctp-submit-control); color:var(--app-cctp-submit-text-strong); font:inherit; line-height:1.55; }
.app-cctp-submit-composer-bottom { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:10px; border-top:1px solid #dfe1df; background:var(--app-cctp-submit-control-low); }
.app-cctp-submit-composer-bottom > span { color:var(--app-cctp-submit-muted); font-size:12px; }
.app-cctp-submit-composer-bottom [data-app-cctp-submit-state="ready"] { color:#5c806f; }
.app-cctp-submit-composer-bottom [data-app-cctp-submit-state="over"] { color:#9a5f68; }
.app-cctp-submit-counter { white-space:nowrap; font-weight:400; }
.app-cctp-submit-counter [data-app-cctp-submit-count] { color:#617f9e; font-weight:750; }
.app-cctp-submit-counter span { color:var(--app-cctp-submit-muted); font-weight:400; }
.app-cctp-submit-send {
  width:auto; min-width:82px; height:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  border:1.5px solid var(--app-cctp-submit-border); border-radius:15px; padding:0 13px; background:#f7f8f6; color:var(--app-cctp-submit-text-strong);
  font:inherit; font-weight:800; cursor:pointer; box-shadow:var(--app-cctp-submit-shadow-soft);
  transition:transform .12s ease,box-shadow .12s ease,background .16s ease;
}
.app-cctp-submit-send:active:not(:disabled) { transform:translateY(1px); box-shadow:var(--app-cctp-submit-shadow-pressed); }
.app-cctp-submit-send:focus-visible { outline:3px solid var(--app-cctp-submit-focus); outline-offset:2px; }
.app-cctp-submit-send:disabled { opacity:.48; cursor:default; box-shadow:0 2px 5px rgba(68,78,88,.10),inset 0 1px 0 rgba(255,255,255,.86); }
.app-cctp-submit-send svg { width:22px; height:22px; display:block; }
.app-cctp-submit-send[aria-busy="true"] svg { opacity:.58; }
.app-cctp-submit-send-label { display:inline-block; color:inherit; font-weight:800; line-height:1; }
.app-cctp-submit-cancel { display:none; }
.app-cctp-form-alert,
.app-cctp-submit-success { margin-top:16px; padding:13px 14px; border-radius:var(--app-cctp-submit-radius); line-height:1.45; box-shadow:var(--app-cctp-submit-shadow-soft); }
.app-cctp-form-alert { border:1px solid #e5cfd2; background:#faf1f2; color:#8b4d58; }
.app-cctp-submit-success { border:1px solid #d5e0da; background:#f5f8f5; color:var(--app-cctp-submit-text-strong); }
.app-cctp-submit-success-head { display:flex; gap:10px; align-items:center; }
.app-cctp-submit-success-head img { width:48px; height:48px; object-fit:cover; border-radius:14px; }
.app-cctp-submit-success-head div { display:grid; }
.app-cctp-submit-success-head span { font-size:13px; color:var(--app-cctp-submit-muted); }
.app-cctp-submit-success p { white-space:pre-wrap; overflow-wrap:anywhere; }
.app-cctp-submit-success-id { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 10px; margin-top:10px; }
.app-cctp-submit-success-id strong { color:var(--app-cctp-submit-text-strong); }
.app-cctp-submit-success-id span { color:var(--app-cctp-submit-muted); font-size:13px; }
.app-cctp-panel.app-cctp-submit-composer-open .app-cctp-panel-scroll { overflow:hidden; }

/* V2.1 inline reply composer: same behavior, shared V3 form skin. */
.app-cctp-v21-reply-form { padding:12px 0; border-bottom:1px solid #e5e7eb; }
.app-cctp-v21-reply-form textarea {
  width:100%; box-sizing:border-box; min-height:72px; resize:vertical;
  border:1.5px solid var(--app-cctp-form-border); border-radius:14px; padding:10px 12px;
  background:var(--app-cctp-form-control); color:var(--app-cctp-form-text-strong); box-shadow:var(--app-cctp-form-shadow-soft); font:inherit;
}
.app-cctp-v21-reply-form textarea:focus { border-color:var(--app-cctp-form-border-focus); outline:3px solid var(--app-cctp-form-focus); }
.app-cctp-v21-reply-form-bottom { display:grid; grid-template-columns:minmax(0,1fr) 42px auto auto; align-items:center; gap:8px; margin-top:8px; }
.app-cctp-v21-reply-form-bottom small { display:block; margin:0; padding:0; color:var(--app-cctp-form-muted); font-size:13px; }
.app-cctp-v21-reply-cancel { width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid var(--app-cctp-form-border); border-radius:50%; padding:0; background:var(--app-cctp-form-control); color:var(--app-cctp-form-text-strong); font:700 30px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor:pointer; box-shadow:var(--app-cctp-form-shadow-soft); }
.app-cctp-v21-button { min-height:38px; border:1.5px solid var(--app-cctp-form-border); border-radius:14px; padding:7px 14px; font-weight:750; cursor:pointer; }
.app-cctp-v21-button-primary { background:var(--app-cctp-form-control); color:var(--app-cctp-form-text-strong); box-shadow:var(--app-cctp-form-shadow-soft); }
.app-cctp-v21-button:disabled { opacity:.58; cursor:wait; }

/* Opinion textarea uses the same form skin; headings/content stay in pages.css. */
.app-cctp-opinion-composer {
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:12px 14px;
  box-sizing:border-box;
  background:var(--app-cctp-form-surface);
  border-bottom:1px solid #d9dee3;
}
.app-cctp-opinion-composer textarea {
  width:100%; min-height:108px; box-sizing:border-box; resize:vertical;
  border:1.5px solid var(--app-cctp-form-border); border-radius:var(--app-cctp-form-radius); padding:11px 12px;
  background:var(--app-cctp-form-control); color:var(--app-cctp-form-text-strong); box-shadow:var(--app-cctp-form-shadow-raised);
  font:inherit; font-size:16px; line-height:1.5;
}
.app-cctp-opinion-composer textarea::placeholder { color:var(--app-cctp-form-placeholder); opacity:1; }
.app-cctp-opinion-composer textarea:focus { border-color:var(--app-cctp-form-border-focus); outline:3px solid var(--app-cctp-form-focus); }

@media (max-width:720px) {
  .app-cctp-submit { padding:16px 14px 30px; border-radius:20px; }
  .app-cctp-submit-composer.app-cctp-is-mobile-sheet {
    position:fixed; z-index:20; top:var(--app-cctp-submit-composer-top,0px); left:0; right:0;
    width:100%; height:var(--app-cctp-submit-composer-vh,100dvh); margin:0; display:grid;
    grid-template-rows:minmax(0,1fr) auto; border:0; border-radius:0; background:var(--app-cctp-submit-surface); overflow:hidden;
  }
  .app-cctp-submit-composer.app-cctp-is-mobile-sheet .app-cctp-submit-composer-writing { position:relative; min-height:0; height:100%; overflow:hidden; }
  .app-cctp-submit-composer.app-cctp-is-mobile-sheet textarea {
    width:100%; height:100%; min-height:0; padding:18px 18px 64px; border:0; border-bottom:1px solid #dfe1df;
    border-radius:0; resize:none; overflow-y:auto; background:var(--app-cctp-submit-control); color:var(--app-cctp-submit-text-strong);
    font-size:18px; line-height:1.55;
  }
  .app-cctp-submit-composer.app-cctp-is-mobile-sheet .app-cctp-submit-composer-bottom { grid-template-columns:minmax(0,1fr) auto auto; gap:8px; padding:10px 16px 12px; border-top:0; background:var(--app-cctp-submit-control-low); }
  .app-cctp-submit-composer.app-cctp-is-mobile-sheet .app-cctp-submit-composer-bottom > span { font-size:14px; }
  .app-cctp-submit-composer.app-cctp-is-mobile-sheet .app-cctp-submit-counter { justify-self:end; }
  .app-cctp-submit-composer.app-cctp-is-mobile-sheet .app-cctp-submit-cancel {
    display:flex; position:absolute; z-index:2; left:50%; bottom:12px; transform:translateX(-50%);
    width:42px; height:42px; min-width:42px; min-height:42px; padding:0; align-items:center; justify-content:center;
    border:1.5px solid var(--app-cctp-submit-border); border-radius:50%; background:#f4f5f3; color:var(--app-cctp-submit-text-strong);
    font:700 27px/1 Arial,sans-serif; cursor:pointer; box-shadow:var(--app-cctp-submit-shadow-soft);
  }
  .app-cctp-submit-composer.app-cctp-is-mobile-sheet .app-cctp-submit-cancel:active { background:#e8eae8; transform:translateX(-50%) scale(.96); box-shadow:var(--app-cctp-submit-shadow-pressed); }
}
@media (max-width:520px) {
  .app-cctp-submit-field,
  .app-cctp-submit-group-step,
  .app-cctp-submit-photo-step { grid-template-columns:1fr; gap:9px; }
  .app-cctp-submit-choice-row-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-cctp-submit-photo-trigger { min-height:56px; }
  .app-cctp-search-form { grid-template-columns:1fr auto; }
}
@media (max-width:430px) {
  .app-cctp-submit { padding-inline:12px; border-radius:18px; }
  .app-cctp-submit h1 { font-size:25px; }
  .app-cctp-submit-field,
  .app-cctp-submit-group-step { gap:8px; }
  .app-cctp-submit-composer-bottom { grid-template-columns:minmax(0,1fr) auto auto; }
  .app-cctp-opinion-composer { padding:11px 12px; }
}
@media (max-width:390px) {
  .app-cctp-submit { padding-inline:10px; }
  .app-cctp-submit-field,
  .app-cctp-submit-group-step { gap:7px; }
  .app-cctp-submit-choice-row-groups { gap:8px; }
}

/* PATCH 33 — auth/account action spacing and logout button. */
.app-cctp-auth-page .app-cctp-auth-switch {
  margin-top: 28px;
  line-height: 1.45;
}
.app-cctp-auth-page .app-cctp-auth-switch a {
  display: inline-block;
  margin-left: 4px;
  color: var(--app-cctp-action-blue);
  text-decoration: none;
}
.app-cctp-account-head .app-cctp-text-button {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid var(--app-cctp-form-border);
  border-radius: 14px;
  padding: 8px 16px;
  background: var(--app-cctp-form-control);
  color: var(--app-cctp-action-blue);
  font: inherit;
  font-weight: 800;
  box-shadow: var(--app-cctp-form-shadow-soft);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .16s ease;
}
.app-cctp-account-head .app-cctp-text-button:hover {
  background: #fafaf8;
}
.app-cctp-account-head .app-cctp-text-button:active {
  transform: translateY(1px);
  box-shadow: var(--app-cctp-form-shadow-pressed);
}
.app-cctp-account-head .app-cctp-text-button:focus-visible {
  outline: 3px solid var(--app-cctp-form-focus);
  outline-offset: 2px;
}

/* PATCH 34 — Login country selector uses the shared V3 Push Panel instead of native mobile select UI. */
.app-cctp-country-trigger {
  width:100%;
  min-height:58px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1.5px solid var(--app-cctp-form-border);
  border-radius:var(--app-cctp-form-radius);
  padding:0 18px;
  background:var(--app-cctp-form-control);
  color:var(--app-cctp-form-text-strong);
  font:inherit;
  font-weight:750;
  text-align:left;
  cursor:pointer;
  box-shadow:var(--app-cctp-form-shadow-raised);
  transition:transform .12s ease,box-shadow .12s ease,border-color .16s ease;
}
.app-cctp-country-trigger:active {
  transform:translateY(1px);
  box-shadow:var(--app-cctp-form-shadow-pressed);
}
.app-cctp-country-trigger:focus-visible {
  border-color:var(--app-cctp-form-border-focus);
  outline:3px solid var(--app-cctp-form-focus);
  outline-offset:2px;
}
.app-cctp-country-trigger-chevron {
  flex:0 0 auto;
  color:var(--app-cctp-form-muted);
  font-size:22px;
  line-height:1;
}
.app-cctp-country-picker {
  width:100%;
  box-sizing:border-box;
  padding:0 0 26px;
  background:var(--app-cctp-form-surface);
}
.app-cctp-country-picker-note {
  margin:0;
  padding:14px 18px;
  border-bottom:1px solid #e1e4e7;
  color:var(--app-cctp-form-muted);
  font-size:14px;
  line-height:1.45;
}
.app-cctp-country-list {
  width:100%;
  display:grid;
}
.app-cctp-country-option {
  width:100%;
  min-height:58px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 30px;
  align-items:center;
  gap:10px;
  border:0;
  border-bottom:1px solid #e1e4e7;
  padding:10px 18px;
  background:#f8f8f6;
  color:var(--app-cctp-action-blue);
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.app-cctp-country-option:active {
  background:#eef2f6;
}
.app-cctp-country-option:focus-visible {
  outline:3px solid var(--app-cctp-form-focus);
  outline-offset:-3px;
}
.app-cctp-country-option-name {
  min-width:0;
  font-weight:760;
  overflow-wrap:anywhere;
}
.app-cctp-country-option-dial {
  color:var(--app-cctp-form-text-strong);
  font-weight:650;
  white-space:nowrap;
}
.app-cctp-country-option-check {
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border:1px solid #cfd7de;
  border-radius:50%;
  background:#f4f4f1;
  color:transparent;
  font-size:16px;
  font-weight:900;
}
.app-cctp-country-option.app-cctp-is-selected {
  background:#eef4fb;
}
.app-cctp-country-option.app-cctp-is-selected .app-cctp-country-option-check {
  border-color:#aebfd2;
  background:#dfe9f4;
  color:var(--app-cctp-action-blue);
}

/* PATCH 43 — soften the #999999 bottom-right relief with a small blur while keeping the same direction and color. */
.app-cctp-shell {
  --app-cctp-form-border: #d4d8dc;
  --app-cctp-form-border-focus: #8aa8c4;
  --app-cctp-form-shadow-raised:
    4px 4px 3px #999999,
    5px 6px 7px rgba(51,51,51,.16),
    inset 0 1px 0 rgba(255,255,255,.98);
  --app-cctp-form-shadow-soft:
    3px 3px 2px #999999,
    4px 5px 6px rgba(51,51,51,.13),
    inset 0 1px 0 rgba(255,255,255,.98);
  --app-cctp-form-shadow-pressed:
    inset 0 2px 4px rgba(47,57,67,.12),
    inset 0 -1px 0 rgba(255,255,255,.92),
    2px 2px 2px rgba(51,51,51,.08);
}

.app-cctp-field input,
.app-cctp-field select,
.app-cctp-field textarea,
.app-cctp-search-form input,
.app-cctp-phone-field,
.app-cctp-primary-button,
.app-cctp-choice-row button,
.app-cctp-submit-field input,
.app-cctp-submit-choice-row button,
.app-cctp-submit-photo-trigger,
.app-cctp-photo-category-option,
.app-cctp-submit-composer,
.app-cctp-submit-send,
.app-cctp-v21-reply-form textarea,
.app-cctp-v21-reply-cancel,
.app-cctp-v21-button,
.app-cctp-opinion-composer textarea,
.app-cctp-account-head .app-cctp-text-button,
.app-cctp-country-trigger {
  border-width: 1px;
  border-color: var(--app-cctp-form-border);
}

.app-cctp-primary-button,
.app-cctp-choice-row button,
.app-cctp-submit-choice-row button,
.app-cctp-submit-photo-trigger,
.app-cctp-submit-send,
.app-cctp-v21-reply-cancel,
.app-cctp-v21-button-primary,
.app-cctp-account-head .app-cctp-text-button,
.app-cctp-country-trigger {
  box-shadow: var(--app-cctp-form-shadow-raised);
}

/* PATCH 48 — live V3 interaction rows. Keep the approved shared form skin. */
.app-cctp-v21-reply-error {
  margin:8px 0 0;
  color:#9a2525;
  font-size:13px;
  line-height:1.4;
}
.app-cctp-opinion-composer-actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 42px auto;
  align-items:center;
  gap:8px;
  margin-top:9px;
  color:var(--app-cctp-form-muted);
  font-size:13px;
}
.app-cctp-opinion-cancel {
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--app-cctp-form-border);
  border-radius:50%;
  padding:0;
  background:var(--app-cctp-form-control);
  color:var(--app-cctp-form-text-strong);
  box-shadow:var(--app-cctp-form-shadow-soft);
  font:700 28px/1 Arial,sans-serif;
  cursor:pointer;
}
.app-cctp-opinion-send { min-height:42px; padding:7px 14px; }
.app-cctp-opinion-owner {
  display:flex;
  align-items:center;
  gap:11px;
  margin-top:8px;
  font-size:12px;
}
.app-cctp-opinion-owner button {
  border:0;
  padding:2px 0;
  background:transparent;
  color:var(--app-cctp-action-blue);
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.app-cctp-opinion-owner span { color:var(--app-cctp-form-muted); }
.app-cctp-opinion-edit { margin-top:9px; }
.app-cctp-opinion-edit textarea {
  width:100%;
  min-height:88px;
  box-sizing:border-box;
  resize:vertical;
  border:1px solid var(--app-cctp-form-border);
  border-radius:14px;
  padding:10px 12px;
  background:var(--app-cctp-form-control);
  color:var(--app-cctp-form-text-strong);
  box-shadow:var(--app-cctp-form-shadow-soft);
  font:inherit;
  line-height:1.5;
}
.app-cctp-opinion-edit > div {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:7px;
}
.app-cctp-opinion-edit button {
  border:0;
  padding:4px 0;
  background:transparent;
  color:var(--app-cctp-action-blue);
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.app-cctp-opinion-edit span { color:#9a2525; font-size:12px; }
@media (max-width:430px) {
  .app-cctp-opinion-composer-actions { grid-template-columns:minmax(0,1fr) auto 40px auto; gap:7px; }
  .app-cctp-opinion-cancel { width:40px; height:40px; }
}


/* PATCH 50: stronger publish-success notice. */
.app-cctp-submit-success {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:100%;
  padding:14px 16px;
  border:1px solid #a8d7b5;
  border-radius:var(--app-cctp-submit-radius);
  background:#f3fbf5;
  color:#16833b;
  font-size:24px;
  font-weight:800;
  line-height:1.2;
  box-shadow:var(--app-cctp-submit-shadow-soft);
}
.app-cctp-submit-success-check {
  flex:0 0 30px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#16833b;
  color:#fff;
  font-size:24px;
  font-weight:900;
  line-height:1;
}
.app-cctp-submit-success-text { color:#16833b; }
.app-cctp-submit-success[hidden] { display:none; }


/* PATCH 65 — iPhone/iOS: prevent Safari auto-zoom when focusing form controls. */
@supports (-webkit-touch-callout: none) {
  @media (max-width:430px) {
    .app-cctp-field input,
    .app-cctp-field select,
    .app-cctp-field textarea,
    .app-cctp-search-form input {
      font-size:16px;
    }
  }
}
