/* Requires Action follows the discovery and follow-up workspace design. */
body[data-page="actions"] { background: #f7f8f5; }
body[data-page="actions"] .page-content { max-width: 1380px; padding-top: 38px; }
#actions { --actions-ink: #213d30; --actions-muted: #6d7b69; --actions-line: #e5eae3; }
#actions [hidden] { display: none !important; }
#actions button:focus-visible, #actions a:focus-visible, #actions summary:focus-visible { outline: 2px solid #377a55; outline-offset: 4px; }
#actions .actions-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
#actions .kicker { font-size: 10px; letter-spacing: 1.8px; color: #728574; }
#actions h1 { margin: 9px 0 10px; color: var(--actions-ink); font-size: clamp(29px, 3vw, 38px); letter-spacing: -1.6px; line-height: 1.15; font-weight: 800; }
#actions .actions-heading-dot { color: #79a282; }
#actions .actions-page-heading p { margin: 0; color: #748078; font-size: 13px; line-height: 1.7; }
#actions .actions-source-badge { display: inline-flex; align-items: center; gap: 8px; color: #6c7b70; font-size: 11px; white-space: nowrap; }
#actions .actions-source-badge svg { width: 17px; height: 17px; color: #80937e; }
#actions .actions-check-panel { margin-bottom: 34px; border: 1px solid #dce5da; border-radius: 17px; background: #fff; box-shadow: 0 4px 20px #223e2b04; overflow: hidden; }
#actions .actions-check-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 25px; }
#actions .actions-check-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
#actions .actions-panel-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: #edf3eb; color: #477752; }
#actions .actions-panel-icon svg { width: 20px; height: 20px; }
#actions .actions-check-heading h2 { margin: 0; font-size: 15px; font-weight: 800; color: #344e3b; letter-spacing: -.2px; line-height: 1.5; }
#actions .actions-check-heading p { margin: 6px 0 0; color: #75816f; font-size: 12px; line-height: 1.7; }
#actions #scan-actions-btn { flex-shrink: 0; min-height: 42px; padding: 12px 18px; gap: 16px; border-radius: 9px; font-size: 12px; }
#actions #scan-actions-btn span { font-size: 18px; font-weight: 400; }
#actions .actions-check-footer { display: flex; align-items: center; gap: 16px; min-height: 46px; padding: 12px 25px; border-top: 1px solid #edf0e9; background: #f9fbf7; }
#actions .actions-check-status { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
#actions .actions-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #9bb59c; }
#actions .actions-status-dot.is-busy { background: #3e8255; box-shadow: 0 0 0 4px #e2eddf; animation: actions-pulse 1.8s ease-in-out infinite; }
#actions #actions-status { margin: 0; color: #6f7d6b; font-size: 11px; line-height: 1.6; }
#actions .actions-connection { font-size: 10px; color: #7e8b7d; white-space: nowrap; }
#actions .actions-connection.is-connected { color: #4e7d59; }
#actions .actions-inbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
#actions .actions-inbox-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--actions-ink); font-size: 21px; letter-spacing: -.6px; }
#actions .actions-inbox-heading p { margin: 6px 0 0; color: #6d7b6b; font-size: 12px; line-height: 1.7; }
#actions #action-count { display: inline-block; padding: 3px 7px; border: 1px solid #e0e8da; border-radius: 6px; background: #edf3e7; color: #738b64; font-size: 11px; letter-spacing: 0; }
#actions .actions-text-button { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 5px 0; border: 0; background: transparent; color: #648056; font-size: 11px; font-weight: 700; }
#actions .actions-text-button:hover { text-decoration: underline; }
#actions .action-list { gap: 16px; }
#actions .action-card { padding: 0; border: 1px solid #e0e7dd; border-radius: 15px; background: #fff; box-shadow: 0 2px 4px #223d2c02; overflow: hidden; }
#actions .action-details[open] { border-color: #c3d3b9; }
#actions .action-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 25px; cursor: pointer; list-style: none; }
#actions .action-summary::-webkit-details-marker { display: none; }
#actions .action-summary:hover, #actions .action-summary:focus-visible { background: #fafcf7; }
#actions .action-summary-identity { display: flex; align-items: flex-start; gap: 13px; min-width: 0; }
#actions .action-sender-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #e0e8dc; border-radius: 12px; background: #edf3e9; color: #5b7b54; font-size: 14px; font-weight: 800; }
#actions .action-sender-avatar[data-tone="1"] { background: #eff1f7; border-color: #e4e7f0; color: #687796; }
#actions .action-sender-avatar[data-tone="2"] { background: #faf2e7; border-color: #eee5d7; color: #a38654; }
#actions .action-sender-avatar[data-tone="3"] { background: #f5eff3; border-color: #ece2e8; color: #96788e; }
#actions .action-summary-copy { display: flex; align-items: flex-start; flex-direction: column; min-width: 0; }
#actions .action-sender-name { color: #75816f; font-size: 11px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
#actions .action-summary-copy > strong { margin-top: 5px; color: #243f30; font-size: 18px; line-height: 1.45; font-weight: 800; letter-spacing: -.35px; overflow-wrap: anywhere; }
#actions .action-summary-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: #7c8975; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
#actions .action-summary-meta > span, #actions .action-summary-meta time { display: inline-flex; align-items: center; gap: 5px; }
#actions .actions-icon { display: inline-block; flex-shrink: 0; width: 15px; height: 15px; vertical-align: middle; }
#actions .action-summary-meta .actions-icon { width: 12px; height: 12px; }
#actions .action-summary-reason { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 11px; color: #7f8d70; font-size: 11px; line-height: 1.8; }
#actions .action-details[open] .action-summary-reason { display: none; }
#actions .action-summary-tail { display: inline-flex; align-items: center; gap: 15px; flex-shrink: 0; padding-top: 1px; }
#actions .action-attention-badge { padding: 5px 8px; border: 1px solid #eee2c9; border-radius: 6px; color: #9c8250; background: #faf4e7; font-size: 9px; font-weight: 700; white-space: nowrap; }
#actions .action-summary-chevron { color: #8a9c79; font-size: 18px; line-height: 1; transition: transform .15s; }
#actions .action-details[open] .action-summary-chevron { transform: rotate(180deg); }
#actions .action-detail-content { padding: 20px 25px 25px; border-top: 1px solid #eaf0e3; background: #fcfdf9; }
#actions .action-reason { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 23px; padding: 13px 15px; border: 1px solid #e6ecd9; border-radius: 9px; background: #f1f6e9; color: #7b9368; }
#actions .action-reason > .actions-icon { margin-top: 1px; }
#actions .action-reason strong { display: block; color: #617d50; font-size: 11px; }
#actions .action-reason p { margin: 5px 0 0; color: #718363; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
#actions .action-detail-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
#actions .action-detail-grid > section { min-width: 0; }
#actions .action-panel-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
#actions .action-panel-heading h3 { margin: 0; color: #617b52; font-size: 12px; font-weight: 700; }
#actions .action-panel-heading > span { color: #879578; font-size: 9px; }
#actions .action-body { max-height: 500px; margin: 0; padding: 16px; border: 1px solid #e2e9db; border-radius: 10px; background: #f7faf2; color: #66785a; font: 12px/1.85 Manrope, 'Helvetica Neue', Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
#actions .reply-composer { margin-top: 0; border: 1px solid #dfe7d8; border-radius: 10px; background: #fff; }
#actions .reply-composer:focus-within { border-color: #83a78a; box-shadow: 0 0 0 3px #edf4eb; }
#actions .reply-toolbar { flex-wrap: wrap; gap: 3px; padding: 7px; border-bottom: 1px solid #e7eddf; background: #f7faf2; }
#actions .reply-toolbar button { min-width: 29px; padding: 6px 7px; border-radius: 5px; color: #708561; font-size: 11px; }
#actions .reply-toolbar button:hover, #actions .reply-toolbar button:focus-visible { background: #e8f0df; }
#actions .reply-toolbar-divider { height: 16px; border-color: #e1e9d8; }
#actions .reply-editor { min-height: 192px; max-height: 440px; padding: 15px 16px; color: #49613f; font: 13px/1.85 Manrope, 'Helvetica Neue', Arial, sans-serif; }
#actions .reply-editor:empty::before { color: #8f9d82; }
#actions .action-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 15px; }
#actions .action-resume-label { flex: 1; min-width: 0; max-width: 270px; gap: 8px; color: #6c805e; font-size: 10px; font-weight: 700; }
#actions .action-resume-label select { height: 39px; padding: 9px 11px; border: 1px solid #e0e8d8; border-radius: 8px; background: #fff; color: #6a7e5b; font: 11px Manrope, Arial, sans-serif; }
#actions .action-resume-label select:focus { border-color: #83a78a; box-shadow: 0 0 0 3px #edf4eb; }
#actions .action-card-footer .button { min-height: 39px; padding: 10px 14px; border-radius: 8px; gap: 10px; font-size: 11px; }
#actions .action-send-note { margin: 11px 0 0; color: #879578; font-size: 10px; line-height: 1.7; }
#actions .actions-loading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 18px; padding: 23px 25px; border: 1px solid #dce5d4; border-radius: 14px; background: #f0f5e9; }
#actions .actions-loading strong { color: #486440; font-size: 13px; }
#actions .actions-loading p { margin: 7px 0 0; color: #718467; font-size: 12px; line-height: 1.6; }
#actions .actions-spinner { width: 25px; height: 25px; flex-shrink: 0; border: 2px solid #d6e3cc; border-top-color: #59824b; border-radius: 50%; animation: actions-spin .85s linear infinite; }
#actions .empty-state { display: flex; align-items: center; flex-direction: column; padding: 52px 24px; border: 1px dashed #d9e2d1; border-radius: 15px; background: #fbfcf8; text-align: center; }
#actions .actions-empty-icon { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 20px; border-radius: 24px; background: #eef3e6; color: #8daa79; }
#actions .actions-empty-icon svg { width: 57px; height: 57px; }
#actions .empty-state strong { color: #4e6c40; font-size: 17px; letter-spacing: -.4px; }
#actions .empty-state p { max-width: 360px; margin: 10px 0 0; color: #6d7b60; font-size: 12px; line-height: 1.9; }
#actions .actions-page-note { margin: 22px 0 0; color: #728066; font-size: 10px; text-align: center; line-height: 1.8; }
body[data-page="actions"] #gmail-reply-notice { margin-bottom: 24px; padding: 22px 25px; border: 1px solid #e4dfc6; border-radius: 14px; background: #fbfaf2; }
body[data-page="actions"] #gmail-reply-notice h2 { color: #615b39; font-size: 18px; }
body[data-page="actions"] #gmail-reply-notice p { color: #7b765d; font-size: 12px; line-height: 1.7; }
@keyframes actions-pulse { 50% { opacity: .5; } }
@keyframes actions-spin { to { transform: rotate(360deg); } }
@media (max-width: 1150px) { #actions .actions-source-badge { display: none; } }
@media (max-width: 1000px) {
  #actions .action-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #actions .action-body { max-height: 360px; }
}
@media (max-width: 760px) {
  body[data-page="actions"] .sidebar-bottom { display: none; }
  body[data-page="actions"] .nav { scrollbar-width: none; }
}
@media (max-width: 650px) {
  body[data-page="actions"] .page-content { padding: 25px 20px; }
  #actions .actions-page-heading { margin-bottom: 24px; }
  #actions h1 { font-size: 31px; }
  #actions .actions-page-heading p { max-width: 290px; font-size: 12px; }
  #actions .actions-check-heading { align-items: stretch; flex-direction: column; padding: 20px 18px; gap: 18px; }
  #actions .actions-check-identity { align-items: flex-start; gap: 11px; }
  #actions .actions-check-heading h2 { font-size: 14px; }
  #actions .actions-check-heading p { font-size: 11px; }
  #actions .actions-check-footer { padding: 12px 18px; }
  #actions .actions-connection { display: none; }
  #actions .actions-check-status { align-items: flex-start; }
  #actions .actions-status-dot { margin-top: 6px; }
  #actions .actions-inbox-heading { align-items: flex-start; }
  #actions .actions-inbox-heading h2 { font-size: 20px; }
  #actions .actions-inbox-heading p { max-width: 230px; font-size: 11px; }
  #actions .actions-text-button { margin-top: 4px; font-size: 10px; }
  #actions .action-summary { gap: 10px; padding: 20px 18px; }
  #actions .action-summary-identity { gap: 10px; }
  #actions .action-sender-avatar { flex-basis: 35px; width: 35px; height: 35px; border-radius: 10px; font-size: 11px; }
  #actions .action-summary-copy > strong { font-size: 17px; }
  #actions .action-summary-meta { font-size: 10px; gap: 6px; }
  #actions .action-summary-tail { gap: 0; }
  #actions .action-attention-badge { display: none; }
  #actions .action-summary-reason { font-size: 11px; }
  #actions .action-detail-content { padding: 18px; }
  #actions .action-reason { padding: 12px; }
  #actions .action-body { padding: 13px; font-size: 12px; }
  #actions .reply-editor { min-height: 180px; padding: 13px; font-size: 12px; }
  #actions .reply-toolbar button { padding: 6px; font-size: 10px; }
  #actions .action-card-footer { align-items: stretch; flex-direction: column; }
  #actions .action-resume-label { max-width: none; }
  #actions .action-card-footer .button { align-self: stretch; }
  #actions .actions-loading { padding: 18px; }
}
@media (max-width: 370px) {
  #actions .actions-inbox-heading { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #actions *, #actions *::before, #actions *::after { animation: none !important; transition: none !important; }
}
