/* Shared site overrides */
/* KyuPlus UI tokens */
:root {
    --kyuplus-brand: #1c5390;
    --kyuplus-action: #4d7cbe;
    --kyuplus-action-hover: #3a6aac;
    --kyuplus-text: #333;
    --kyuplus-muted: #5d6874;
    --kyuplus-surface: #fff;
    --kyuplus-surface-subtle: #fafbfc;
    --kyuplus-border: #d5dbe1;
    --kyuplus-danger: #8a2e25;
    --kyuplus-error: #b42318;
    --kyuplus-space-2: 8px;
    --kyuplus-space-3: 12px;
    --kyuplus-space-4: 16px;
    --kyuplus-space-5: 20px;
    --kyuplus-radius-sm: 4px;
    --kyuplus-radius-md: 8px;
}

body,
aside .top nav ul li a,
.breadcrumb li,
.toolbar .user span,
.box .header h2,
table.styled th,
table.styled td {
    font-size: 14px;
}

table.styled {
    width: 100%;
}

/* Authentication and invitation forms */
.invitation-panel {
    box-sizing: border-box;
    max-width: 100%;
    padding: 0 var(--kyuplus-space-4);
}

.auth-form,
.aligned-form {
    max-width: 460px;
}

.auth-form p,
.aligned-form p {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin: 0 0 var(--kyuplus-space-4);
}

.auth-form p label,
.aligned-form p label {
    display: block;
    font-weight: 600;
}

.auth-form p input,
.auth-form p select,
.auth-form p textarea,
.aligned-form p input,
.aligned-form p select,
.aligned-form p textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.auth-form ul,
.aligned-form ul {
    max-width: 460px;
    margin: -8px 0 16px;
    padding-left: 20px;
}

.invitation-instructions {
    max-width: 46em;
}

/* Sending form page introduction */
.rcs-job-intro {
    margin: 0 1% 16px;
    line-height: 1.5;
}

.rcs-job-form {
    box-sizing: border-box;
    min-width: 0;
}

.rcs-job-form fieldset {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.rcs-job-form input[type="text"],
.rcs-job-form input[type="url"],
.rcs-job-form input[type="datetime-local"],
.rcs-job-form select,
.rcs-job-form textarea {
    max-width: 100%;
}

.conditional-required {
    display: block;
    margin: 4px 0 0;
    color: #555;
}

/* Account navigation and chooser */
.mobile-account-switcher {
    display: none;
}

#main .toolbar .user.account-context {
    box-sizing: border-box;
    width: min(440px, calc(100% - 24px));
    padding-right: 5px;
    cursor: default;
}

#main .toolbar .user.account-context:after {
    display: none;
}

#main .toolbar .user.account-context:hover {
    border-color: transparent;
    box-shadow: none;
}

.desktop-account-switcher {
    position: relative;
    line-height: 29px;
}

.desktop-account-switcher > summary {
    display: flex;
    align-items: center;
    gap: var(--kyuplus-space-2);
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
}

.desktop-account-switcher > summary::-webkit-details-marker {
    display: none;
}

.desktop-account-switcher > summary:after {
    flex: 0 0 auto;
    content: "▾";
}

.desktop-account-switcher[open] > summary:after {
    content: "▴";
}

.desktop-account-switcher > summary:focus-visible {
    outline: 2px solid var(--kyuplus-surface);
    outline-offset: 2px;
}

.account-switcher-options button:focus-visible {
    outline: 2px solid var(--kyuplus-brand);
    outline-offset: -2px;
}

#main .toolbar .user.account-context > span:after {
    display: none;
}

.desktop-account-switcher .active-account {
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-switcher-options {
    position: absolute;
    top: calc(100% + 7px);
    left: -6px;
    z-index: 200;
    box-sizing: border-box;
    width: max-content;
    min-width: 260px;
    max-width: min(80vw, 420px);
    padding: 6px;
    background: var(--kyuplus-surface);
    border: 1px solid #bdc7d1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.account-switcher-options form {
    margin: 0;
}

.account-switcher-options p {
    margin: 0;
    padding: var(--kyuplus-space-2) var(--kyuplus-space-3);
    color: #243447;
    line-height: 1.4;
}

.account-switcher-options button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: var(--kyuplus-space-2) var(--kyuplus-space-3);
    color: #243447;
    text-align: left;
    white-space: normal;
    line-height: 1.4;
}

.account-choice-help {
    max-width: 42em;
    line-height: 1.5;
}

.account-choice-list {
    display: grid;
    gap: var(--kyuplus-space-3);
    max-width: 38em;
    margin-top: 20px;
}

.account-choice-list form {
    margin: 0;
}

.account-choice-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--kyuplus-space-4);
    box-sizing: border-box;
    width: 100%;
    min-height: 56px;
    padding: var(--kyuplus-space-3) var(--kyuplus-space-4);
    text-align: left;
    white-space: normal;
    line-height: 1.4;
}

.account-choice-action {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: normal;
}

.account-choice-list button .account-choice-action {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    float: none;
}

.account-choice-list button:focus-visible,
.mobile-account-switcher .button:focus-visible {
    outline: 3px solid var(--kyuplus-brand);
    outline-offset: 2px;
}

.phone-nav-details {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Shared responsive data tables */
.responsive-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.responsive-data-table th,
.responsive-data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--kyuplus-border);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

/* Membership and blocked-job actions */
.members-table th:first-child {
    width: 29%;
}

.members-table th:nth-child(2) {
    width: 13%;
}

.members-table th:last-child {
    width: 58%;
}

.member-email {
    overflow-wrap: anywhere;
}

.member-status {
    display: block;
    margin-top: 4px;
    color: var(--kyuplus-muted);
    font-size: 12px;
}

.member-role {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    background: #edf2f7;
    color: #33465b;
    font-weight: 600;
}

.member-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
}

.member-action,
.blocked-job-cancel {
    width: min(100%, 280px);
    border: 1px solid #cbd4dd;
    border-radius: var(--kyuplus-radius-sm);
    background: var(--kyuplus-surface);
}

.member-action > summary {
    padding: 8px 10px;
    color: var(--kyuplus-brand);
    cursor: pointer;
    font-weight: 600;
}

.blocked-job-cancel > summary {
    padding: 8px 10px;
    color: var(--kyuplus-danger);
    cursor: pointer;
    font-weight: 600;
}

.member-action[open] > summary,
.blocked-job-cancel[open] > summary {
    border-bottom: 1px solid var(--kyuplus-border);
    background: #f5f8fa;
}

.member-action form,
.blocked-job-cancel form {
    display: grid;
    gap: var(--kyuplus-space-2);
    padding: 10px;
}

.member-action form input,
.member-action form select {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.member-action form button,
.blocked-job-cancel form button {
    justify-self: start;
}

.blocked-job-cancel form button:focus-visible {
    outline: 2px solid var(--kyuplus-brand);
    outline-offset: 2px;
}

.member-action > p,
.blocked-job-cancel > p {
    margin: 10px 10px 0;
    line-height: 1.45;
}

.member-action--danger > summary {
    color: var(--kyuplus-danger);
}

.membership-action-note {
    margin: 0;
    color: var(--kyuplus-muted);
    line-height: 1.45;
}

/* Account access and suspension notices */
.account-access-message {
    max-width: 48em;
    line-height: 1.5;
}

.suspended-account-list {
    display: grid;
    gap: var(--kyuplus-space-3);
    margin: 18px 0;
}

.suspended-account-card,
.account-status-notice {
    padding: 14px 16px;
    border: 1px solid var(--kyuplus-border);
    border-left: 4px solid #b67813;
    border-radius: var(--kyuplus-radius-sm);
    background: #fffaf0;
}

.suspended-account-card h2 {
    margin: 0 0 var(--kyuplus-space-2);
    font-size: 16px;
}

.suspended-account-card p,
.account-status-notice {
    line-height: 1.5;
}

.suspended-account-card p {
    margin: 0 0 12px;
}

.blocked-jobs-account {
    margin-top: -10px;
    color: #475569;
    font-weight: 600;
}

.blocked-jobs-guidance,
.blocked-jobs-context {
    line-height: 1.5;
}

.blocked-jobs-guidance {
    max-width: 52em;
}

/* Blocked-job table details */
.blocked-jobs-table {
    width: 100%;
    border-collapse: collapse;
}

.blocked-jobs-table th,
.blocked-jobs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--kyuplus-border);
    text-align: left;
    vertical-align: top;
}

.blocked-jobs-table th {
    background: #f5f8fa;
}

.blocked-jobs-table td form {
    margin: 0;
}

/* Template management and modal component styles */
.template-success-message {
    padding: 15px;
    margin-bottom: var(--kyuplus-space-5);
    border: 1px solid #d6e9c6;
    border-radius: var(--kyuplus-radius-sm);
    background: #dff0d8;
    color: #3c763d;
}

.template-success-message ul {
    margin-bottom: 0;
    list-style: none;
}

.template-management-form {
    margin-bottom: 30px;
}

.template-management-form a.template-cancel-link {
    padding: 6px 14px;
    text-decoration: none;
}

.template-list-table td[data-label="Actions"] .template-edit-link {
    margin-right: 6px;
    padding: 2px 8px;
    text-decoration: none;
}

.template-list-table td[data-label="Actions"] .template-delete-form {
    display: inline;
    margin: 0;
}

.template-list-table .template-delete-button {
    padding: 2px 6px;
    color: red;
    cursor: pointer;
}

.modal-content.modal-content--job-summary {
    width: 450px;
}

.modal-title {
    margin: 0;
    font-size: 18px;
}

.modal-body {
    padding: var(--kyuplus-space-5) 0;
}

.modal-body--summary {
    font-size: 14px;
    line-height: 1.6;
}

.modal-divider {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.modal-help {
    color: #666;
    font-size: 13px;
}

.modal-footer {
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: right;
}

.modal-cancel-button {
    margin-right: var(--kyuplus-space-2);
}

.template-modal-actions {
    margin-top: 15px;
    text-align: right;
}

.rcs-preview-controls {
    display: flex;
    flex-direction: column;
    gap: var(--kyuplus-space-2);
    width: 100%;
    margin-bottom: var(--kyuplus-space-4);
}

.rcs-preview-title {
    color: var(--kyuplus-text);
    font-size: 14px;
}

.rcs-preview-device-select {
    box-sizing: border-box;
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: var(--kyuplus-radius-sm);
    font-size: 13px;
}

/* KyuPlus send and template forms */
#content>h1 {
    font-size: 22px;
    margin-bottom: 18px;
}

#content>h1:after {
    display: none;
}

form.no-box {
    font-size: 14px;
}

form.no-box legend {
    font-size: 15px;
    font-weight: bold;
    padding: 10px 18px;
}

/* Rows and Two-Column Alignment */
form:where(.no-box) .row {
    padding: 2px 20px;
}

form:where(.no-box) .row>div {
    overflow: hidden;
    padding-left: 20px;
}

form:where(.no-box) .row>label {
    width: 220px;
    padding: 16px 0;
    font-size: 14px;
    line-height: 1.4;
}

form:where(.no-box) .row label strong {
    font-size: 14px;
}

form:where(.no-box) .row label small {
    font-size: 12px;
    color: #777;
}

/* General Inputs, Selects & Textareas Sizing */
form:where(.no-box) .row>div>*:not(.icon):not(label) {
    margin: 14px 0;
}

form:where(.no-box) .row>div input[type=text],
form:where(.no-box) .row>div input[type=url],
form:where(.no-box) .row>div input[type=datetime-local],
form:where(.no-box) .row>div input[type=file],
form:where(.no-box) .row>div select,
form:where(.no-box) .row>div textarea {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--kyuplus-radius-sm);
    box-sizing: border-box;
}

form:where(.no-box) .row>div select {
    height: 38px;
    line-height: 1.4;
}

form:where(.no-box) .row>div textarea {
    min-height: 140px;
    line-height: 1.5;
    font-size: 14px;
    padding: 10px 12px;
}

form:where(.no-box) .row>div input[type=url] {
    margin: 6px 0;
}

/* Inline radio / checkbox groups */
:where(form.no-box) .row-inline>div>*:not(.icon):not(label) {
    width: auto !important;
    margin: 0 8px 0 0 !important;
    display: inline-block !important;
    vertical-align: middle;
}

:where(form.no-box) .row-inline>div {
    padding-top: 16px;
    padding-bottom: 16px;
}

:where(form.no-box) .row-inline>div input[type=radio],
:where(form.no-box) .row-inline>div input[type=checkbox] {
    transform: scale(1.2);
    margin: 0 4px 0 0 !important;
    cursor: pointer;
}

:where(form.no-box) .row-inline>div label {
    display: inline !important;
    width: auto !important;
    margin: 0 16px 0 4px !important;
    vertical-align: middle;
    font-size: 14px;
    cursor: pointer;
}

/* Insert shortcut buttons wrap spacing */
form.no-box a.button {
    display: inline-block !important;
    width: auto !important;
    margin: 0 8px 8px 0 !important;
    white-space: nowrap !important;
}

/* Character counter */
small.char-count {
    display: block;
    font-size: 12px;
    color: #888;
    margin: -6px 0 12px;
}

/* Actions Bar & Buttons */
form.no-box .actions {
    padding: 12px 20px;
}

form.no-box .actions input[type=submit],
form.no-box .actions input[type=reset] {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--kyuplus-radius-sm);
    cursor: pointer;
}

h1:after {
    background: None;
}

/* RCS job form structure and validation */

/* Two-column table-like row layout for .no-box forms */
.no-box .row {
  display: flex;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e0e4e8;
}
.no-box fieldset .row:last-child {
  border-bottom: none;
}
.no-box .row > label {
  flex-shrink: 0;
  width: 240px;
  padding: 16px 20px;
  background: var(--kyuplus-surface-subtle);
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.4;
}
.no-box .row > div {
  flex: 1;
  padding: 16px 20px;
  box-sizing: border-box;
}

/* Template Selector & Validation Errors */
.no-box .row-template .template-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.no-box .row-template .template-controls > * {
  width: auto;
  margin: 0;
}
.no-box .row-template .template-controls select {
  flex: 1;
  min-width: 0;
}
.no-box .field-errors,
.no-box .row-inline > div > .field-errors,
.no-box .row-template .template-controls > .field-errors {
  display: block !important;
  flex-basis: 100%;
  width: 100% !important;
  margin: 0 0 10px !important;
  color: var(--kyuplus-error);
}
.no-box .field-errors ul,
.no-box .form-errors ul {
  margin: 0;
  padding-left: 18px;
}
.no-box .field-errors small,
.no-box .file-reselect-note {
  display: block;
  margin-top: 4px;
  color: #666;
}
.no-box .form-errors {
  margin: 10px 20px;
  color: var(--kyuplus-error);
}

/* File input button */
.no-box .row > div input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  background: var(--kyuplus-action);
  border: 0;
  border-radius: var(--kyuplus-radius-sm);
  color: var(--kyuplus-surface);
  font: inherit;
  cursor: pointer;
}
.no-box .row > div input[type="file"]::file-selector-button:hover {
  background: var(--kyuplus-action-hover);
}

/* Preview toggle button in legend */
.btn-toggle-preview {
  float: right;
  margin: -6px 0 -6px 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  padding: 6px 16px !important;
  box-sizing: content-box;
  white-space: nowrap !important;
}

/* Carrier routing matrix (horizontal table) */
.carrier-table-wrapper {
  padding: 0;
  overflow-x: auto;
}
.carrier-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}
.carrier-table th,
.carrier-table td {
  padding: 12px 10px;
  border: 1px solid #e0e4e8;
  vertical-align: middle;
}
.carrier-table th {
  background: var(--kyuplus-surface);
  font-weight: normal;
}
.carrier-table .row-header {
  width: 140px;
  background: var(--kyuplus-surface-subtle);
  font-size: 13px;
  font-weight: bold;
  text-align: left;
}
.carrier-table td select {
  box-sizing: border-box;
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: var(--kyuplus-radius-sm);
}
.carrier-table td input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

/* Device previews and rich cards */
.rcs-preview-column {
  flex-shrink: 0;
  background: var(--kyuplus-surface-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}
.rcs-device-frame {
  display: flex;
  flex-direction: column;
  width: 260px;
  height: 500px;
  background: var(--kyuplus-surface);
  border: 1px solid #d1d5da;
  border-radius: var(--kyuplus-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.rcs-device-header {
  padding: 12px;
  background: #f6f8fa;
  border-bottom: 1px solid #e1e4e8;
  color: #24292e;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.rcs-preview-chat {
  flex: 1;
  padding: 16px;
  background: #f0f2f5;
  overflow-y: auto;
}
.rcs-preview-chat--ios {
  background: #f5f5f7;
}
.rcs-preview-message {
  width: 100%;
}
.rcs-rich-card {
  max-height: 344px;
  background: var(--kyuplus-surface);
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}
.rcs-preview-message--ios .rcs-rich-card {
  border-color: #dedee3;
  border-radius: 16px;
}
.rcs-rich-card-media {
  height: 168px;
  overflow: hidden;
}
.rcs-rich-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.rcs-rich-card-content {
  padding: 12px;
  color: #24292e;
  font-size: 16px;
  line-height: 1.35;
  white-space: normal;
}
.rcs-rich-card-content strong {
  display: block;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.rcs-rich-card-content p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rcs-preview-empty {
  color: #6a737d;
  font-size: 13px;
  white-space: normal;
}
.rcs-preview-sms {
  padding: 12px;
  background: #e6e6eb;
  border-radius: 14px;
  color: #24292e;
  font-size: 15px;
  line-height: 1.4;
  white-space: normal;
}
.rcs-preview-sms p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rcs-preview-note {
  display: block;
  width: 260px;
  margin-top: 10px;
  color: #6a737d;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

/* Dialogs and image editor */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
}

dialog.modal-overlay:not([open]) {
    display: none;
}

.modal-content {
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 20px;
  background: var(--kyuplus-surface);
  border-radius: var(--kyuplus-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.modal-content form select,
.modal-content form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.btn-close-icon {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
}
.btn-close-icon:hover {
  color: var(--kyuplus-text);
}
.modal-form-group {
  margin-bottom: 16px;
}
.modal-form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--kyuplus-text);
  font-size: 14px;
  font-weight: 600;
}
.modal-form-group input,
.modal-form-group textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  border: 1px solid #dcdcdc;
  border-radius: var(--kyuplus-radius-sm);
  font-size: 14px;
}
.modal-form-group input:focus,
.modal-form-group textarea:focus {
  border-color: var(--kyuplus-action);
  box-shadow: 0 0 0 2px rgba(77, 124, 190, 0.2);
  outline: none;
}
.btn-primary {
  padding: 8px 16px;
  background: var(--kyuplus-action);
  border: none;
  border-radius: var(--kyuplus-radius-sm);
  color: var(--kyuplus-surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--kyuplus-action-hover);
}
.btn-secondary {
  padding: 8px 16px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: var(--kyuplus-radius-sm);
  color: var(--kyuplus-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #e0e0e0;
}
.rcs-image-canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 16px 0;
}
.modal-content label {
  display: block;
  margin: 12px 0;
}
.modal-content input[type="range"] {
    display: block;
    width: 100%;
}

/* Responsive overrides */
@media screen and (max-width: 650px) {
    #toolbar .container_12 .phone {
        display: flex;
        justify-content: flex-end;
    }

    #toolbar .phone-nav-details {
        position: relative;
        display: block;
        width: max-content;
    }

    #toolbar .phone-nav-details > summary {
        display: block;
        width: max-content;
        padding: 3px 10px;
        border-radius: 3px;
        background: var(--kyuplus-brand);
        box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255, 255, 255, 0.31);
        color: var(--kyuplus-surface);
        cursor: pointer;
        font-size: 16px;
        list-style: none;
        text-shadow: 0 1px 0 #000;
    }

    #toolbar .phone-nav-details > summary::-webkit-details-marker {
        display: none;
    }

    #toolbar .phone-nav-details > nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 1000;
        width: min(84vw, 320px);
        padding: 6px 0;
        border: 1px solid #bfc5cb;
        border-radius: var(--kyuplus-radius-sm);
        background: var(--kyuplus-surface);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    #toolbar .phone-nav-details ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #toolbar .phone-nav-details nav li {
        float: none;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
    }

    #toolbar .phone-nav-details nav li a {
        display: block;
        padding: 10px 14px;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none;
        color: #2a3644;
        line-height: 1.4;
        text-decoration: none;
    }

    #toolbar .phone-nav-details nav li a:hover,
    #toolbar .phone-nav-details nav li.current a {
        background: #ecf1f4;
    }

    .mobile-account-switcher {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px;
        background: var(--kyuplus-surface);
        border-bottom: 1px solid #c8d0d8;
    }

    #main .toolbar .user.account-context-switchable {
        display: none;
    }

    .mobile-account-switcher span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .mobile-account-switcher .button {
        flex: 0 0 auto;
    }

    .invitation-panel {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .rcs-job-intro {
        margin: 0 0 12px;
        padding: 0 12px;
    }

    .rcs-job-form {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .rcs-job-form .row {
        flex-wrap: wrap;
    }

    .rcs-job-form .row > label,
    .rcs-job-form .row > div {
        box-sizing: border-box;
        flex: 0 0 100%;
        width: 100%;
    }

    .rcs-job-form .row > label {
        padding: 12px 16px 4px;
        background: transparent;
    }

    .rcs-job-form .row > div {
        min-width: 0;
        padding: 8px 16px 12px;
    }

    .rcs-job-form .rcs-message-layout {
        display: block !important;
    }

    .rcs-job-form .rcs-message-layout > div:first-child {
        display: none;
    }

    .rcs-job-form .rcs-message-form {
        min-width: 0;
    }

    .rcs-job-form .rcs-preview-column.rcs-preview-visible {
        box-sizing: border-box;
        width: 100% !important;
        padding: 12px !important;
        border-left: 0 !important;
        white-space: normal;
    }

    .rcs-job-form .carrier-table-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
    }

    .rcs-job-form .carrier-table {
        min-width: 520px;
    }

    .responsive-data-table,
    .responsive-data-table tbody,
    .responsive-data-table tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .responsive-data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .responsive-data-table tr:not(.empty-row) {
        margin: 0 0 12px;
        padding: 8px 12px;
        border: 1px solid var(--kyuplus-border);
        border-radius: var(--kyuplus-radius-sm);
        background: var(--kyuplus-surface);
    }

    .responsive-data-table td {
        display: grid;
        grid-template-columns: minmax(82px, 30%) minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 0;
        border: 0;
        overflow-wrap: anywhere;
    }

    .responsive-data-table td::before {
        content: attr(data-label) ":";
        font-weight: bold;
    }

    .members-table td form,
    .invitations-table td form,
    .notifications-table td form,
    .blocked-jobs-table td form {
        min-width: 0;
        margin: 0;
    }

    .members-table td label,
    .members-table td select,
    .members-table td input,
    .invitations-table td form,
    .notifications-table td form,
    .blocked-jobs-table td form,
    .members-table td form button,
    .invitations-table td form button,
    .notifications-table td form button {
        max-width: 100%;
        box-sizing: border-box;
    }

    .members-table td label,
    .notifications-table td form,
    .blocked-jobs-table td form {
        display: block;
        margin-bottom: 8px;
    }

    .members-table td input[type="password"],
    .members-table td select {
        width: 100%;
    }

    .members-table td[data-label="Actions"] {
        display: block;
        padding-top: 10px;
        border-top: 1px solid #e1e5e9;
    }

    .members-table td[data-label="Actions"]::before {
        display: block;
        margin-bottom: 8px;
    }

    .members-table td[data-label="Actions"] .member-actions {
        display: grid;
        gap: 8px;
    }

    .members-table td[data-label="Actions"] .member-action {
        width: 100%;
    }

    .members-table .member-status {
        grid-column: 2;
        margin-top: 0;
    }

    .responsive-data-table .empty-row td {
        display: block;
        border: 0;
    }

    .responsive-data-table .empty-row td::before {
        content: none;
    }

    .template-management-form .row {
        display: flex;
        flex-wrap: wrap;
    }

    .template-management-form .row > label,
    .template-management-form .row > div {
        box-sizing: border-box;
        flex: 0 0 100%;
        width: 100%;
    }

    .template-management-form .row > label {
        padding: 12px 16px 4px;
        background: transparent;
    }

    .template-management-form .row > div {
        min-width: 0;
        padding: 8px 16px 12px;
    }

    .template-management-form .row input,
    .template-management-form .row select,
    .template-management-form .row textarea {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .template-list-table td[data-label="Actions"] a,
    .template-list-table td[data-label="Actions"] form {
        display: inline-block;
        margin: 0 8px 6px 0;
        vertical-align: middle;
    }

    .notifications-table td[data-label="Action"] form {
        grid-column: 2;
        display: inline-block;
        margin: 0 8px 6px 0;
    }

    .invitations-table td[data-label="Actions"] .invitation-resend,
    .invitations-table td[data-label="Actions"] .invitation-revoke {
        grid-column: 2;
        min-width: 0;
        max-width: 100%;
    }

    .blocked-jobs-table td[data-label="Action"] form {
        grid-column: 2;
    }
}
