body{
    margin:0;
    background:#F5F6F8;
    font-family:Segoe UI, Arial, sans-serif;
    color:#172b4d;
}

.container{
    max-width:1180px;
    margin:26px auto;
    padding:0 24px;
	background-color: white;
}

.breadcrumbs{
    color:#2f7d3b;
    font-size:14px;
    margin-bottom:10px;
}

.layout{
    display:grid;
    grid-template-columns:1fr 300px;
    gap:70px;
	padding:20px 25px 25px;
}

h1{
    font-size:30px;
    margin:0 0 28px 0;
    color:#08204a;
}

.request-box{
    border:1px solid #dfe1e6;
    border-radius:4px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:28px;
}

.avatar{
    width:34px;
    height:34px;
    border-radius:50%;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    flex-shrink:0;
}

.avatar.user{
    background:#2f7d3b;
}

.avatar.admin{
    background:#ff8a00;
}

.avatar.small{
    width:38px;
    height:38px;
}

.avatar.tiny{
    width:28px;
    height:28px;
    font-size:12px;
}

.muted{
    color:#6b778c;
    font-size:14px;
    margin-top:4px;
}

.section{
    margin-top:30px;
}

.section h2{
    font-size:16px;
    margin-bottom:18px;
    color:#172b4d;
}

.description{
    line-height:1.55;
    font-size:15px;
    white-space:normal;
}

.activity-item{
    display:grid;
    grid-template-columns:48px 1fr;
    gap:12px;
    margin-bottom:24px;
}

.activity-header{
    font-size:15px;
    margin-bottom:8px;
}

.activity-header span{
    color:#6b778c;
    margin-left:6px;
}

.activity-label{
    padding:4px 0;
    line-height:1.55;
    font-size:15px;
    background:transparent;
    border:0;
}

.sidebar{
    padding-top:72px;
}

.side-section{
    margin-bottom:30px;
}

.side-section h3{
    font-size:15px;
    margin:0 0 12px 0;
    color:#172b4d;
}

.badge{
    display:inline-block;
    padding:4px 8px;
    border-radius:3px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
}

.status{
    background:#dff3e5;
    color:#2f7d3b;
}

.priority{
    background:#fff0c2;
    color:#8a5a00;
}

.action-button{
    display:block;
    width:100%;
    background:#2f7d3b;
    color:#fff;
    border:0;
    padding:10px 12px;
    border-radius:4px;
    font-weight:600;
    margin-bottom:10px;
    cursor:pointer;
}

.link-button{
    background:none;
    border:0;
    color:#2f7d3b;
    padding:8px 0;
    font-weight:600;
    cursor:pointer;
}

.user-row{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
}

.comment-form{
    margin-top:28px;
}

.comment-form textarea{
    width:100%;
    min-height:96px;
    border:1px solid #dfe1e6;
    border-radius:4px;
    padding:12px;
    font-family:Segoe UI, Arial, sans-serif;
    font-size:15px;
    resize:vertical;
    box-sizing:border-box;
}

.comment-form textarea:focus{
    outline:none;
    border-color:#2f7d3b;
    box-shadow:0 0 0 2px rgba(47,125,59,.15);
}

.comment-form button{
    margin-top:10px;
    background:#2f7d3b;
    color:white;
    border:0;
    padding:10px 18px;
    border-radius:4px;
    font-weight:600;
    cursor:pointer;
}

.comment-form button:hover,
.action-button:hover{
    background:#256a31;
}

@media(max-width:900px){
    .layout{
        grid-template-columns:1fr;
        gap:20px;
    }

    .sidebar{
        padding-top:0;
    }
}
.comment-attachments{
    margin-top:10px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.attachment-link{
    color:#2f7d3b;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.attachment-link:hover{
    text-decoration:underline;
}

.author-badge{
    background:#ff8a00;
    color:white;
    font-size:11px;
    padding:2px 6px;
    border-radius:3px;
    margin-left:6px;
    font-weight:600;
}

.comment-actions{
    display:flex;
    align-items:center;
    gap:16px;
    margin-top:10px;
}

.cancel-link{
    color:#2f7d3b;
    text-decoration:none;
    font-weight:600;
}
.priority-form{
    margin-top:12px;
}

.priority-form select{
    width:100%;
    padding:9px;
    border:1px solid #dfe1e6;
    border-radius:4px;
    font-family:Segoe UI, Arial, sans-serif;
    font-size:14px;
    margin-bottom:8px;
}

.priority-form button{
    width:100%;
    background:#2f7d3b;
    color:white;
    border:0;
    padding:9px 12px;
    border-radius:4px;
    font-weight:600;
    cursor:pointer;
}
.file-row{
    margin-top:12px;
}

.file-row input[type="file"]{
    width:100%;
    border:1px solid #dfe1e6;
    border-radius:4px;
    padding:10px;
    background:#fafbfc;
    box-sizing:border-box;
    cursor:pointer;
}

.file-row input[type="file"]:hover{
    border-color:#2f7d3b;
}

.form-error{
    background:#ffebe6;
    color:#bf2600;
    border:1px solid #ffbdad;
    padding:12px;
    border-radius:4px;
    margin-bottom:16px;
    font-size:14px;
}

.comment-form{
    border-top:1px solid #dfe1e6;
    padding-top:20px;
}

.comment-form button{
    margin-top:0;
}

.comment-actions{
    display:flex;
    justify-content:flex-end;
    margin-top:12px;
}

.priority-form button:hover{
    background:#256a31;
}

.priority-form select:focus,
.file-row input[type="file"]:focus{
    outline:none;
    border-color:#2f7d3b;
    box-shadow:0 0 0 2px rgba(47,125,59,.15);
}
.breadcrumbs{
    padding:20px 25px 0;
}
.header{
	height: 80px;
	background-color: #fff;
	color: white;
	padding-left: 25px;
	padding-right: 25px;
	padding-bottom: 10px;
	padding-top: 10px;
	display: flex;
	justify-content: space-between;
}
.maincontainer hr{
    border:none;
    height:3px;
    background:#098C41;

    margin:0 -24px;
}
.text-header{
	color: #098C41;
}
.text-header p{
	margin: 0;
	color: #098C41;
	font-size: 18px;
}
.text-header h2{
	margin: 2px 2px 0 0;
	color: #098C41;
	font-size: 32px;
}
.img-header img{
    max-height:60px;
    width:auto;
    display:block;
}
.maincontainer{
    border-radius:15px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
}
.sending-toast {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #172b4d;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    font-size: 14px;
    font-weight: 600;
}

.sending-toast.show {
    display: block;
}

form.is-sending {
    pointer-events: none;
    opacity: .7;
}

button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.brand{
    color:inherit;
    text-decoration:none;
}

.header-actions,
.img-header{
    display:flex;
    align-items:center;
    gap:14px;
}

.header-actions img,
.img-header img{
    max-height:58px;
    width:auto;
    display:block;
}

.signed-user{
    display:flex;
    flex-direction:column;
    text-align:right;
    font-size:13px;
    color:#172b4d;
}

.signed-user span{
    color:#6b778c;
    font-size:12px;
}

.primary-button,
.secondary-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    padding:10px 16px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    box-sizing:border-box;
}

.primary-button{
    color:#fff;
    background:#098c41;
    border:1px solid #098c41;
}

.primary-button:hover{
    background:#077436;
}

.secondary-button{
    color:#176b3a;
    background:#fff;
    border:1px solid #cbd6cf;
}

.auth-shell{
    min-height:620px;
    display:grid;
    place-items:center;
    padding:50px 24px;
    background:linear-gradient(135deg,#f7faf8 0%,#eef5f1 100%);
}

.auth-card{
    width:100%;
    max-width:460px;
    padding:36px;
    border:1px solid #dfe7e2;
    border-radius:12px;
    background:#fff;
    box-shadow:0 16px 44px rgba(8,52,29,.09);
}

.auth-intro h1{
    margin:8px 0 12px;
    font-size:30px;
}

.auth-intro p,
.dashboard-heading p{
    color:#5b6b62;
    line-height:1.55;
}

.eyebrow{
    color:#098c41;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.microsoft-button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    width:100%;
    margin-top:26px;
    padding:12px 16px;
    border:1px solid #8c98a4;
    border-radius:6px;
    color:#172b4d;
    background:#fff;
    font-weight:700;
    text-decoration:none;
    box-sizing:border-box;
}

.microsoft-mark{
    display:grid;
    grid-template-columns:repeat(2,8px);
    gap:2px;
}

.microsoft-mark i{
    width:8px;
    height:8px;
    background:#f25022;
}

.microsoft-mark i:nth-child(2){background:#7fba00}
.microsoft-mark i:nth-child(3){background:#00a4ef}
.microsoft-mark i:nth-child(4){background:#ffb900}

.auth-hint{
    margin:8px 0 0;
    color:#6b778c;
    font-size:12px;
    text-align:center;
}

.separator{
    display:flex;
    align-items:center;
    gap:12px;
    margin:24px 0;
    color:#7b887f;
    font-size:12px;
}

.separator::before,
.separator::after{
    content:"";
    height:1px;
    flex:1;
    background:#dfe7e2;
}

.auth-form{
    display:grid;
    gap:16px;
}

.auth-form label{
    display:grid;
    gap:7px;
    color:#273b30;
    font-size:14px;
    font-weight:700;
}

.auth-form input{
    width:100%;
    padding:11px 12px;
    border:1px solid #cbd6cf;
    border-radius:6px;
    font:inherit;
    box-sizing:border-box;
}

.auth-form input:focus{
    outline:none;
    border-color:#098c41;
    box-shadow:0 0 0 3px rgba(9,140,65,.12);
}

.auth-form small{
    color:#6b778c;
    font-weight:400;
}

.auth-form button{
    width:100%;
    font:inherit;
}

.auth-footer{
    margin:24px 0 0;
    text-align:center;
    color:#6b778c;
}

.auth-footer a{
    color:#08783a;
    font-weight:700;
}

.alert{
    margin:18px 0;
    padding:12px 14px;
    border-radius:6px;
    font-size:14px;
}

.alert.error{
    color:#9f2417;
    background:#fff0ed;
    border:1px solid #ffc9c0;
}

.alert.success{
    color:#075f30;
    background:#e9f8ef;
    border:1px solid #b9e4c9;
}

.alert.info{
    color:#234c6b;
    background:#eef7ff;
    border:1px solid #c9e3f7;
}

.dashboard{
    padding:42px 36px 56px;
}

.dashboard-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:30px;
}

.dashboard-heading h1{
    margin:8px 0;
}

.ticket-list{
    display:grid;
    gap:14px;
}

.ticket-card{
    display:flex;
    justify-content:space-between;
    gap:28px;
    padding:20px;
    border:1px solid #dfe7e2;
    border-radius:9px;
    color:inherit;
    text-decoration:none;
    transition:border-color .15s,box-shadow .15s,transform .15s;
}

.ticket-card:hover{
    border-color:#69ad83;
    box-shadow:0 8px 24px rgba(8,52,29,.08);
    transform:translateY(-1px);
}

.ticket-main h2{
    margin:7px 0;
    color:#08204a;
    font-size:19px;
}

.ticket-main p{
    margin:0;
    color:#637169;
    line-height:1.45;
}

.ticket-meta{
    display:flex;
    gap:14px;
    color:#6b778c;
    font-size:12px;
}

.ticket-aside{
    min-width:150px;
    display:flex;
    align-items:flex-end;
    flex-direction:column;
    gap:8px;
}

.empty-state{
    padding:60px 24px;
    border:1px dashed #b9c9bf;
    border-radius:10px;
    text-align:center;
    background:#fbfdfc;
}

@media(max-width:700px){
    .container{
        margin:0;
        padding:0;
        border-radius:0;
    }

    .header{
        height:auto;
        gap:18px;
        align-items:flex-start;
    }

    .text-header h2{
        font-size:23px;
    }

    .header-actions,
    .img-header{
        flex-wrap:wrap;
        justify-content:flex-end;
    }

    .header-actions img,
    .img-header img{
        display:none;
    }

    .signed-user{
        width:100%;
    }

    .auth-shell{
        padding:24px 16px;
    }

    .auth-card{
        padding:26px 20px;
    }

    .dashboard{
        padding:30px 20px;
    }

    .dashboard-heading,
    .ticket-card{
        flex-direction:column;
    }

    .ticket-aside{
        min-width:0;
        align-items:flex-start;
        flex-direction:row;
    }
}

.form-success {
    background: #e3fcef;
    color: #006644;
    border: 1px solid #abf5d1;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Portal shell */
:root{
    --brand:#07883f;
    --brand-dark:#056b32;
    --brand-soft:#eaf7f0;
    --navy:#0d2344;
    --text:#24364b;
    --muted:#68778a;
    --line:#dce5e0;
    --surface:#ffffff;
    --page:#f3f6f5;
}

*{
    box-sizing:border-box;
}

body{
    min-height:100vh;
    background:
        radial-gradient(circle at 8% 5%,rgba(9,140,65,.10),transparent 26rem),
        radial-gradient(circle at 92% 90%,rgba(13,35,68,.07),transparent 30rem),
        var(--page);
    color:var(--text);
    font-family:"Segoe UI",Inter,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
}

.maincontainer{
    width:calc(100% - 48px);
    max-width:1230px;
    margin:24px auto;
    padding:0;
    border:1px solid rgba(12,57,34,.08);
    border-radius:18px;
    box-shadow:0 18px 55px rgba(24,49,38,.10);
}

.header{
    height:104px;
    padding:20px 34px;
    align-items:center;
}

.maincontainer hr{
    height:3px;
    margin:0;
    background:linear-gradient(90deg,var(--brand),#43ae6f);
}

.text-header p{
    font-size:12px;
    font-weight:800;
    letter-spacing:.18em;
    text-transform:uppercase;
}

.text-header h2{
    margin-top:5px;
    color:var(--brand);
    font-size:27px;
    line-height:1.1;
    letter-spacing:-.025em;
}

.header-actions img,
.img-header img{
    max-height:48px;
}

/* Authentication */
.auth-shell{
    position:relative;
    min-height:630px;
    padding:58px 32px 68px;
    overflow:hidden;
    background:
        linear-gradient(135deg,rgba(250,253,251,.98),rgba(235,245,239,.96));
}

.auth-shell::before,
.auth-shell::after{
    position:absolute;
    content:"";
    border-radius:50%;
    pointer-events:none;
}

.auth-shell::before{
    width:390px;
    height:390px;
    top:-220px;
    right:-100px;
    border:72px solid rgba(9,140,65,.07);
}

.auth-shell::after{
    width:270px;
    height:270px;
    left:-145px;
    bottom:-155px;
    border:52px solid rgba(13,35,68,.045);
}

.auth-card{
    position:relative;
    z-index:1;
    width:100%;
    max-width:490px;
    padding:42px 44px 36px;
    border:1px solid rgba(27,79,51,.12);
    border-radius:18px;
    background:rgba(255,255,255,.97);
    box-shadow:
        0 24px 70px rgba(20,62,41,.13),
        0 2px 8px rgba(20,62,41,.05);
}

.auth-intro{
    text-align:center;
}

.auth-intro .eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    border-radius:999px;
    background:var(--brand-soft);
    color:var(--brand-dark);
    font-size:11px;
}

.auth-intro .eyebrow::before{
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--brand);
    content:"";
}

.auth-intro h1{
    margin:16px 0 10px;
    color:var(--navy);
    font-size:31px;
    line-height:1.18;
    letter-spacing:-.035em;
}

.auth-intro p{
    max-width:370px;
    margin:0 auto;
    color:var(--muted);
    font-size:15px;
    line-height:1.6;
}

.microsoft-button{
    min-height:50px;
    margin-top:28px;
    border-color:#cbd5df;
    border-radius:9px;
    box-shadow:0 2px 5px rgba(15,35,60,.04);
    color:#172b4d;
    font-size:14px;
    transition:border-color .18s,box-shadow .18s,transform .18s,background .18s;
}

.microsoft-button:hover{
    border-color:#8b9bad;
    background:#f8fafc;
    box-shadow:0 6px 16px rgba(15,35,60,.08);
    transform:translateY(-1px);
}

.microsoft-mark{
    grid-template-columns:repeat(2,9px);
    gap:2px;
}

.microsoft-mark i{
    width:9px;
    height:9px;
}

.auth-hint{
    margin-top:9px;
    color:#7a8795;
}

.separator{
    margin:25px 0 22px;
    color:#7a8795;
    font-size:11px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.auth-form{
    gap:17px;
}

.auth-form label{
    gap:8px;
    color:#35485d;
    font-size:13px;
}

.auth-form input{
    min-height:47px;
    padding:11px 13px;
    border:1px solid #cbd6d0;
    border-radius:8px;
    background:#fbfcfc;
    color:var(--navy);
    font-size:15px;
    transition:border-color .18s,box-shadow .18s,background .18s;
}

.auth-form input:hover{
    border-color:#a8b8af;
    background:#fff;
}

.auth-form input:focus{
    border-color:var(--brand);
    background:#fff;
    box-shadow:0 0 0 4px rgba(9,140,65,.11);
}

.auth-form .primary-button{
    min-height:49px;
    margin-top:3px;
    border:0;
    border-radius:9px;
    background:linear-gradient(135deg,#099348,var(--brand-dark));
    box-shadow:0 9px 20px rgba(7,136,63,.20);
    font-size:14px;
    transition:box-shadow .18s,transform .18s,filter .18s;
}

.auth-form .primary-button:hover{
    filter:brightness(1.04);
    box-shadow:0 12px 24px rgba(7,136,63,.27);
    transform:translateY(-1px);
}

.auth-footer{
    padding-top:22px;
    margin-top:26px;
    border-top:1px solid #edf1ef;
    font-size:14px;
}

.auth-footer a{
    color:var(--brand-dark);
    text-underline-offset:3px;
}

.alert{
    border-radius:9px;
    line-height:1.45;
}

/* Dashboard polish */
.dashboard{
    min-height:590px;
    padding:46px 42px 60px;
    background:#fbfcfb;
}

.dashboard-heading h1{
    color:var(--navy);
    letter-spacing:-.035em;
}

.ticket-card{
    border-radius:12px;
    background:#fff;
    box-shadow:0 3px 12px rgba(22,52,37,.035);
}

.badge{
    border-radius:999px;
    padding:5px 10px;
    letter-spacing:.025em;
}

.priority-hint{
    position:relative;
    cursor:help;
    outline:none;
}

.priority-hint .hint-text{
    position:absolute;
    z-index:20;
    right:0;
    bottom:calc(100% + 10px);
    width:260px;
    padding:11px 13px;
    border-radius:8px;
    background:#172b4d;
    box-shadow:0 10px 28px rgba(10,28,52,.22);
    color:#fff;
    font-size:12px;
    font-weight:500;
    line-height:1.45;
    text-align:left;
    text-transform:none;
    letter-spacing:0;
    opacity:0;
    visibility:hidden;
    transform:translateY(4px);
    transition:opacity .15s,transform .15s,visibility .15s;
    pointer-events:none;
}

.priority-hint .hint-text::after{
    position:absolute;
    top:100%;
    right:18px;
    border:6px solid transparent;
    border-top-color:#172b4d;
    content:"";
}

.priority-hint:hover .hint-text,
.priority-hint:focus .hint-text{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.status.status-new{
    background:#e3f0ff;
    color:#175ea8;
}

.status.status-progress{
    background:#eee7ff;
    color:#6741b6;
}

.status.status-done{
    background:#dff5e7;
    color:#16733b;
}

.status.status-cancelled{
    background:#ffe4e1;
    color:#b42318;
}

.status.status-paused{
    background:#e9edf1;
    color:#526170;
}

.priority.priority-critical{
    background:#ffdcd8;
    color:#b42318;
}

.priority.priority-high{
    background:#ffe6cd;
    color:#a34700;
}

.priority.priority-medium{
    background:#fff0bd;
    color:#805700;
}

.priority.priority-low{
    background:#e4f0ff;
    color:#245f9e;
}

.priority.priority-minor{
    background:#e8edf2;
    color:#566574;
}

.priority.priority-unset{
    background:#f0f2f4;
    color:#697785;
}

.user-name-hint{
    position:relative;
    display:inline-block;
    cursor:help;
    outline:none;
}

.user-email-hint{
    position:absolute;
    z-index:30;
    left:0;
    bottom:calc(100% + 9px);
    width:max-content;
    max-width:280px;
    padding:7px 10px;
    border-radius:6px;
    background:#172b4d;
    box-shadow:0 8px 22px rgba(10,28,52,.20);
    color:#fff !important;
    font-size:12px !important;
    font-weight:500;
    line-height:1.35;
    white-space:normal;
    opacity:0;
    visibility:hidden;
    transform:translateY(4px);
    transition:opacity .15s,visibility .15s,transform .15s;
    pointer-events:none;
}

.user-email-hint::after{
    position:absolute;
    top:100%;
    left:14px;
    border:5px solid transparent;
    border-top-color:#172b4d;
    content:"";
}

.user-name-hint:hover .user-email-hint,
.user-name-hint:focus .user-email-hint{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.create-ticket-page{
    background:
        linear-gradient(180deg,#fbfdfc 0%,#f5f9f7 100%);
}

.ticket-flash{
    margin:18px 25px 0;
}

.page-back{
    max-width:780px;
    margin:0 auto 18px;
}

.page-back a{
    color:#4d6658;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}

.page-back a:hover{
    color:var(--brand);
}

.create-ticket-card{
    max-width:780px;
    margin:0 auto;
    padding:38px 42px 42px;
    border:1px solid #dce6e0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 16px 45px rgba(19,62,40,.08);
}

.create-ticket-heading{
    margin-bottom:30px;
}

.create-ticket-heading h1{
    margin:12px 0 8px;
    color:var(--navy);
    letter-spacing:-.035em;
}

.create-ticket-heading p{
    margin:0;
    color:var(--muted);
    line-height:1.55;
}

.create-ticket-form{
    display:grid;
    gap:22px;
}

.create-ticket-form label{
    display:grid;
    gap:8px;
    color:#34495d;
    font-size:14px;
    font-weight:700;
}

.create-ticket-form .field-label{
    display:block;
    color:#34495d;
}

.create-ticket-form .field-label b{
    color:#c43226;
}

.create-ticket-form input,
.create-ticket-form textarea,
.create-ticket-form select{
    width:100%;
    border:1px solid #cbd7d0;
    border-radius:9px;
    background:#fbfcfc;
    color:var(--navy);
    font:inherit;
    font-weight:400;
    transition:border-color .18s,box-shadow .18s,background .18s;
}

.create-ticket-form input,
.create-ticket-form select{
    min-height:48px;
    padding:10px 13px;
}

.create-ticket-form textarea{
    min-height:170px;
    padding:13px;
    line-height:1.55;
    resize:vertical;
}

.create-ticket-form input[type="file"]{
    padding:9px;
}

.create-ticket-form input:focus,
.create-ticket-form textarea:focus,
.create-ticket-form select:focus{
    outline:none;
    border-color:var(--brand);
    background:#fff;
    box-shadow:0 0 0 4px rgba(9,140,65,.11);
}

.create-ticket-form small{
    color:var(--muted);
    font-size:12px;
    font-weight:400;
}

.create-ticket-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    padding-top:6px;
}

.create-ticket-actions button{
    font:inherit;
}

.create-ticket-feedback{
    display:none;
    align-items:flex-start;
    gap:14px;
    margin:0 0 24px;
    padding:16px 18px;
    border-radius:11px;
}

.create-ticket-feedback.is-visible{
    display:flex;
}

.create-ticket-feedback strong{
    display:block;
    color:var(--navy);
    font-size:15px;
}

.create-ticket-feedback p{
    margin:5px 0 0;
    color:#5f6f7e;
    font-size:13px;
    line-height:1.45;
}

.create-ticket-feedback.is-loading{
    border:1px solid #c8ddeb;
    background:#f0f8fd;
}

.create-ticket-feedback.is-pending{
    border:1px solid #b7dfc6;
    background:#f2faf5;
}

.create-ticket-feedback.is-success{
    padding:24px;
    border:1px solid #afe0c2;
    background:#effaf3;
}

.create-ticket-feedback.is-error{
    border:1px solid #ffc1b8;
    background:#fff0ed;
    color:#a52a1c;
}

.loading-spinner{
    width:22px;
    height:22px;
    flex:0 0 22px;
    border:3px solid #b8d5e8;
    border-top-color:#2474a6;
    border-radius:50%;
    animation:helpdesk-spin .8s linear infinite;
}

.success-check{
    width:32px;
    height:32px;
    flex:0 0 32px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#168344;
    color:#fff;
    font-size:18px;
    font-weight:800;
}

.success-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.optimistic-ticket{
    width:100%;
}

.optimistic-ticket-header{
    display:flex;
    align-items:center;
    gap:13px;
}

.optimistic-ticket-header p{
    margin-top:3px;
}

.pending-label{
    color:#48705a !important;
}

.pending-label::after{
    display:inline-block;
    width:1.4em;
    overflow:hidden;
    vertical-align:bottom;
    content:"...";
    animation:pending-dots 1.2s steps(4,end) infinite;
}

.optimistic-ticket-content{
    margin-top:18px;
    padding:18px;
    border:1px solid #d9e6de;
    border-radius:10px;
    background:#fff;
}

.optimistic-ticket-content h2{
    margin:0 0 8px;
    color:var(--navy);
    font-size:19px;
}

.optimistic-ticket-content > p{
    margin:0;
    color:#607064;
    line-height:1.5;
}

.optimistic-ticket-meta{
    display:flex;
    gap:8px;
    margin-top:16px;
}

.optimistic-attachment{
    margin-top:14px;
    color:#3d654d;
    font-size:13px;
    font-weight:600;
}

@keyframes helpdesk-spin{
    to{transform:rotate(360deg)}
}

@keyframes pending-dots{
    0%{width:0}
    100%{width:1.4em}
}

@media(max-width:700px){
    .create-ticket-card{
        padding:28px 20px 30px;
    }

    .create-ticket-actions{
        flex-direction:column-reverse;
    }

    .create-ticket-actions .primary-button,
    .create-ticket-actions .secondary-button{
        width:100%;
    }
}

@media(max-width:700px){
    .maincontainer{
        width:100%;
        min-height:100vh;
        margin:0;
        border:0;
    }

    .header{
        min-height:84px;
        padding:17px 20px;
    }

    .auth-shell{
        min-height:calc(100vh - 87px);
        padding:32px 16px 44px;
    }

    .auth-card{
        padding:31px 22px 27px;
        border-radius:14px;
    }

    .auth-intro h1{
        font-size:27px;
    }
}
