/* P176 shared Mahya Tools icon chooser; all styling uses common theme tokens. */
#settings-tools-v42194 .mh176-icon-trigger{position:relative;cursor:pointer;border:1px solid var(--border,#e2e8f0);color:var(--text,#172033);padding:0;transition:border-color .14s,background .14s,box-shadow .14s}
#settings-tools-v42194 .mh176-icon-trigger:hover{border-color:var(--primary,#2563eb);background:var(--primary-weak,#f1f6ff)}
#settings-tools-v42194 .mh176-icon-trigger:focus-visible{outline:2px solid var(--primary,#2563eb);outline-offset:2px}
#settings-tools-v42194 .mh176-icon-trigger [data-mh176-render]{display:grid;place-items:center;width:100%;height:100%}
#settings-tools-v42194 .mh176-icon-pencil{position:absolute;bottom:-4px;inset-inline-end:-4px;background:var(--surface,#fff);color:var(--primary,#2563eb);border:1px solid var(--border,#e2e8f0);border-radius:50%;width:16px;height:16px;display:grid;place-items:center;box-shadow:0 1px 4px #15213b14}
#settings-tools-v42194 .mh176-icon-pencil svg{width:10px;height:10px;stroke-width:2.5}
#settings-tools-v42194 .mh176-row-file{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important}
.mh176-picker-layer[hidden],.mh176-picker-error[hidden]{display:none!important}
.mh176-picker-layer{position:fixed;inset:0;z-index:100050;display:grid;place-items:center;padding:16px;box-sizing:border-box;direction:rtl}
.mh176-picker-shade{position:absolute;inset:0;background:rgba(19,30,52,.44)}
.mh176-picker-panel{position:relative;background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:16px;width:min(100%,488px);max-height:min(92dvh,720px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 72px rgba(18,33,58,.22);color:var(--text,#172033)}
.mh176-picker-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 20px 16px;border-bottom:1px solid var(--border,#e2e8f0)}
.mh176-picker-head h2{font-size:16px;line-height:1.5;margin:0;font-weight:700}
.mh176-picker-head p{font-size:11px;line-height:1.8;color:var(--muted,#64748b);margin:5px 0 0}
.mh176-picker-x{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;border:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);color:var(--muted,#64748b);font-size:22px;cursor:pointer}
.mh176-picker-body{padding:16px 20px;overflow-y:auto;min-height:0}
.mh176-picker-title{font-size:12px;font-weight:700;margin-bottom:12px}
.mh176-picker-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.mh176-icon-option{min-width:0;min-height:68px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border:1px solid var(--border,#e2e8f0);border-radius:10px;background:var(--surface,#fff);color:var(--text,#172033);cursor:pointer;padding:8px 3px;font-size:10.5px;font-weight:400}
.mh176-icon-option svg{width:23px;height:23px;flex:none}
.mh176-icon-option:hover{background:var(--surface-2,#f5f8fc)}
.mh176-icon-option[aria-pressed=true]{background:var(--primary-weak,#ebf3ff);border-color:var(--primary,#2563eb);color:var(--primary,#2563eb);box-shadow:inset 0 0 0 1px var(--primary,#2563eb)}
.mh176-upload-heading{margin:20px 0 10px}
.mh176-upload-button{display:flex;justify-content:center;align-items:center;gap:9px;width:100%;min-height:43px;border-radius:10px;border:1px dashed var(--primary,#2563eb);background:var(--primary-weak,#f1f7ff);color:var(--primary,#2563eb);padding:9px;cursor:pointer;font:inherit;font-size:12px;font-weight:600}
.mh176-upload-button svg{width:19px;height:19px;stroke-width:1.8}
.mh176-upload-button.is-selected{border-style:solid;background:var(--surface-2,#f8fafc)}
.mh176-upload-hint{font-size:10.5px;line-height:1.8;color:var(--muted,#64748b);margin:8px 0 0}
.mh176-modal-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)!important}
.mh176-picker-error{font-size:11px;color:var(--danger,#b42335);line-height:1.7;padding:9px;margin:10px 0 0;border-radius:9px;background:var(--danger-weak,#fff3f4)}
.mh176-picker-foot{padding:12px 20px;display:flex;align-items:center;gap:8px;border-top:1px solid var(--border,#e2e8f0);flex-wrap:wrap}
.mh176-picker-spacer{flex:1}
.mh176-picker-foot button{height:38px;min-width:68px;border:1px solid var(--border,#e2e8f0);border-radius:9px;background:var(--surface,#fff);color:var(--text,#172033);padding:0 12px;cursor:pointer;font:inherit;font-size:11px}
.mh176-picker-foot .mh176-reset{color:var(--primary,#2563eb);border-color:transparent;padding:0 6px}
.mh176-picker-foot .mh176-apply{background:var(--primary,#2563eb);border-color:var(--primary,#2563eb);color:#fff;font-weight:600}
.mh176-picker-panel button:focus-visible{outline:2px solid var(--primary,#2563eb);outline-offset:2px}
@media(max-width:520px){.mh176-picker-layer{padding:10px}.mh176-picker-panel{max-height:92dvh}.mh176-picker-head{padding:14px}.mh176-picker-body{padding:14px}.mh176-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mh176-picker-foot{padding:10px;gap:5px}.mh176-picker-foot button{padding:0 9px}.mh176-picker-foot .mh176-reset{width:100%;text-align:right;margin-bottom:2px}.mh176-picker-spacer{display:none}}

/* Ensure the real file fields never become visible via legacy settings input styles. */
#settings-tools-v42194 input.mh176-row-file,
.mh176-picker-layer input.mh176-modal-file{display:none!important;visibility:hidden!important;min-height:0!important;padding:0!important;border:0!important;}
